Compensation method and device of Bluetooth transmitting power, electronic equipment and storage medium

By obtaining the channel status information of the WiFi communication channel and mapped to the Bluetooth communication channel, the compensation value of the Bluetooth transmitting power is determined, the problem of the accuracy of the traditional Bluetooth device's launch power is low, and the reliability of data transmission is improved and the power consumption reduces power consumption. Essence

CN119383708APending Publication Date: 2025-01-28GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310924011.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-25
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

The transmission power compensation method of traditional Bluetooth devices has low accuracy and cannot effectively ensure the reliability of data transmission.

Method used

By obtaining the channel status information of the WiFi communication channel, and using the channel status information mapped to the Bluetooth communication channel, the compensation value of the Bluetooth transmitting power is determined to perform accurate power compensation.

Benefits of technology

The accuracy of the Bluetooth transmission power compensation is improved, the reliability of data transmission is ensured, and power consumption is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119383708A_ABST
    Figure CN119383708A_ABST
Patent Text Reader

Abstract

The invention relates to a Bluetooth transmitting power compensation method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring first channel state information of a WiFi communication channel used for wireless fidelity WiFi communication with second equipment; acquiring second channel state information of a Bluetooth communication channel according to the first channel state information; and determining a compensation value of the Bluetooth transmitting power according to the second channel state information, and compensating the Bluetooth transmitting power according to the compensation value. By adopting the method, the compensation accuracy of the transmitting power of the Bluetooth equipment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, electronic device and storage medium for compensating Bluetooth transmission power. Background Art

[0002] With the widespread application of Bluetooth devices in the field of wireless communications, in order to ensure the reliability of data transmission, the transmission power control of Bluetooth devices becomes particularly important.

[0003] In the conventional technology, the method for compensating the transmission power of the Bluetooth device mainly comprises judging the signal strength of the received data packet and compensating the transmission power of the Bluetooth device.

[0004] However, in the conventional technology, there is a problem of low accuracy in compensating the transmission power of the Bluetooth device. Summary of the invention

[0005] The embodiments of the present application provide a method, device, electronic device and storage medium for compensating Bluetooth transmission power, which can improve the compensation accuracy of the transmission power of a Bluetooth device.

[0006] In a first aspect, an embodiment of the present application provides a method for compensating Bluetooth transmission power, which is applied to a first device and includes:

[0007] Acquire first channel state information of a WiFi communication channel used for wireless fidelity WiFi communication with a second device;

[0008] Acquire second channel state information of the Bluetooth communication channel according to the first channel state information;

[0009] A compensation value of Bluetooth transmission power is determined according to the second channel state information, and the Bluetooth transmission power is compensated according to the compensation value.

[0010] In a second aspect, an embodiment of the present application provides a Bluetooth transmission power compensation device, which is applied to a first device, including:

[0011] A first acquisition module, used to acquire first channel state information of a WiFi communication channel used for wireless fidelity WiFi communication with a second device;

[0012] A second acquisition module, configured to acquire second channel state information of a Bluetooth communication channel according to the first channel state information;

[0013] The compensation module is used to determine a compensation value of the Bluetooth transmission power according to the second channel state information, and compensate the Bluetooth transmission power according to the compensation value.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the Bluetooth transmission power compensation method as described in the first aspect.

[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0016] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the steps of the method described in the first aspect when executed by a processor.

[0017] With the above-mentioned method, device, electronic device and storage medium for compensating Bluetooth transmission power, the first device can accurately obtain the first channel state information of the WiFi communication channel used for WiFi communication with the second device. Since the 2.4G frequency band of the wireless fidelity WiFi network is the same as the frequency band of the Bluetooth communication, the second channel state information of the Bluetooth communication channel can be accurately obtained based on the first channel state information obtained with higher accuracy. Then, the compensation value of the Bluetooth transmission power can be accurately determined based on the second channel state information of the Bluetooth communication channel, and the Bluetooth transmission power can be compensated with higher accuracy based on the determined compensation value of the Bluetooth transmission power, thereby improving the accuracy of the Bluetooth transmission power compensation. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 A diagram showing an application environment of a method for compensating Bluetooth transmission power in an embodiment;

[0020] Figure 2 is a flow chart of a method for compensating Bluetooth transmission power in one embodiment;

[0021] Figure 3 is a flow chart of a method for compensating Bluetooth transmission power in another embodiment;

[0022] Figure 4 is a flow chart of a method for compensating Bluetooth transmission power in another embodiment;

[0023] Figure 5is a flow chart of a method for compensating Bluetooth transmission power in another embodiment;

[0024] Figure 6 is a structural block diagram of a Bluetooth transmission power compensation device in one embodiment;

[0025] Figure 7 It is a structural block diagram of a device for compensating Bluetooth transmission power in another embodiment;

[0026] Figure 8 It is a structural block diagram of a device for compensating Bluetooth transmission power in another embodiment;

[0027] Fig. 9 It is a structural block diagram of a device for compensating Bluetooth transmission power in another embodiment;

[0028] Fig.10 It is a structural block diagram of a device for compensating Bluetooth transmission power in another embodiment;

[0029] Fig.11 It is a structural block diagram of a device for compensating Bluetooth transmission power in another embodiment;

[0030] Fig.12 It is a structural block diagram of a device for compensating Bluetooth transmission power in another embodiment;

[0031] Fig.13 FIG. 1 is a schematic diagram of the structure of an electronic device in an embodiment. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0033] The Bluetooth transmission power compensation method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, wireless communication can be performed between the first device 102 and the second device 104, including WiFi communication, Bluetooth communication, etc. The first device 102 and the second device 104 can be, but not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc.

[0034] With the widespread application of Bluetooth devices in the field of wireless communications, the transmission power control of Bluetooth devices has become particularly important. The Bluetooth master device and the slave device are paired and connected to be able to send and receive data packets. In traditional technology, the received signal strength indication (RSSI) of the received data packet is mainly used to determine whether Bluetooth transmission power compensation is required. However, since the transmission and reception of data packets requires interaction between the Bluetooth master and slave devices, the method of compensating Bluetooth transmission power through the RSSI of the data packet cannot ensure the response speed of Bluetooth power compensation. The transmission and reception of data packets will also increase the power consumption of the Bluetooth device. Moreover, the RSSI of the data packet is easily affected by the environment and varies greatly, and it is impossible to accurately compensate the transmission power of the Bluetooth device. Since current electronic devices support WiFi's 2.4GHz communication and Bluetooth communication, and the WiFi's 2.4GHz communication frequency band is the same as the working frequency band of Bluetooth communication, the CSI estimation of the Bluetooth communication channel can be achieved through WiFi's 2.4GHz channel state information (CSI). Based on this, the present application proposes a method for compensating Bluetooth transmit power, which uses the 2.4GHz CSI of WiFi communication to estimate the CSI of the Bluetooth communication channel to compensate for the Bluetooth transmit power, thereby improving the accuracy of Bluetooth transmit power compensation.

[0035] In one embodiment, Figure 2 As shown, a method for compensating Bluetooth transmission power is provided, and the method is applied to Figure 1 Taking the first device in the example as an example, the method includes the following steps:

[0036] S201: Acquire first channel state information of a WiFi communication channel used for performing wireless fidelity WiFi communication with a second device.

[0037] Among them, Wireless Fidelity (WiFi) is a technology that connects terminals to each other wirelessly. WiFi signals are transmitted through radio waves. 2.4G and 5G are two different frequency bands, and WiFi signals are transmitted within such frequency bands. It should be noted that in this application, the compensation for Bluetooth transmission power is achieved by using the same principle as the 2.4GHz communication frequency band of WiFi and the working frequency band of Bluetooth communication. Therefore, the transmission frequency band of the WiFi signal in the embodiment of the present application is the 2.4G frequency band.

[0038] Channel State Information (CSI) is a channel property of a communication link. It describes the attenuation factor of a signal on each transmission path. CSI can adapt the communication system to the current channel conditions and provide a guarantee for high-reliability and high-speed communication in a multi-antenna system.

[0039] In this embodiment, after the first device establishes a WiFi communication connection with the second device, the first device can measure the WiFi communication channel used for WiFi communication with the second device to obtain first channel state information of the WiFi communication channel used for WiFi communication with the second device, or the first device can send a measurement indication to the second device, instructing the second device to send the first channel state information of the WiFi communication channel used for WiFi communication with the first device to the first device.

[0040] S202: Acquire second channel state information of the Bluetooth communication channel according to the first channel state information.

[0041] Among them, Bluetooth is a short-range wireless communication technology with 79 frequency bands. The operating frequency range is 2402-2480MHZ. The transmission distance is usually about 10 meters. The Bluetooth communication channel in this embodiment is the path for Bluetooth data transmission.

[0042] In this embodiment, the principle that the 2.4 GHz communication frequency band of WiFi and the working frequency band of Bluetooth communication are the same can be used to map the first channel state information of the WiFi communication channel to the Bluetooth communication channel to obtain the second channel state information of the Bluetooth communication channel. Optionally, in this embodiment, according to the mapping relationship between the WiFi communication channel and the Bluetooth communication channel, the first channel state information of the WiFi communication channel can be mapped to the Bluetooth communication channel to obtain the second channel state information of the Bluetooth communication channel.

[0043] S203: Determine a compensation value of the Bluetooth transmission power according to the second channel state information, and compensate the Bluetooth transmission power according to the compensation value.

[0044] Since the second channel status information of the Bluetooth communication channel can reflect the quality of the Bluetooth communication channel, in this embodiment, the compensation value of the Bluetooth transmission power can be determined based on the second channel status information of the Bluetooth communication channel. As an optional implementation, the first device can determine the compensation value of the Bluetooth transmission power based on the status information of the Bluetooth communication channel in the case of no interference with the second device Bluetooth communication and the above-mentioned second channel status information. Alternatively, as another optional implementation, the first device can also determine the compensation value of the Bluetooth transmission power based on the channel status information corresponding to the standard Bluetooth transmission power and the above-mentioned second channel status information.

[0045] Further, after determining the compensation value of the Bluetooth transmission power, the first device may compensate the Bluetooth transmission power according to the determined compensation value, and use the compensated Bluetooth transmission power to perform Bluetooth communication with the second device.

[0046] In the above-mentioned Bluetooth transmission power compensation method, the first device can accurately obtain the first channel state information of the WiFi communication channel used for WiFi communication with the second device. Since the 2.4G frequency band of the wireless fidelity WiFi network is the same as the frequency band of the Bluetooth communication, the second channel state information of the Bluetooth communication channel can be accurately obtained based on the first channel state information obtained with higher accuracy. Then, the compensation value of the Bluetooth transmission power can be accurately determined based on the second channel state information of the Bluetooth communication channel, and the Bluetooth transmission power can be compensated with higher accuracy based on the determined compensation value of the Bluetooth transmission power, thereby improving the accuracy of the Bluetooth transmission power compensation.

[0047] In this embodiment, the process of obtaining the second channel state information of the Bluetooth communication channel according to the first channel state information of the WiFi communication channel is described in detail. In one embodiment, the above S202 includes: step A, mapping the first channel state information according to the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel to obtain the second channel state information.

[0048] Among them, the frequency range of the 2.4GHz frequency band of WiFi communication is 2.4~2.4835GHz, which is divided into 14 partially overlapping wireless carrier channels. That is to say, in this embodiment, the first frequency range can be any frequency range of 2.4~2.4835GHz, and the working frequency band of Bluetooth communication is also 2.4GHz, and the frequency range is also 2.4~2.4835GHz, that is, the second frequency range in this embodiment can also be any frequency range of 2.4~2.4835GHz.

[0049] Optionally, in this embodiment, the first channel state information of the WiFi communication channel can be directly mapped to the second channel state information of the Bluetooth communication channel according to the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel; or, the first channel state information of the WiFi communication channel can be mapped according to the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel, and the mapping value of the first channel state information of the WiFi communication channel can be compensated according to a preset channel compensation value to obtain the second channel state information of the Bluetooth communication channel.

[0050] In this embodiment, according to the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel, the process of mapping the first channel state information of the WiFi communication channel is relatively simple, the amount of calculation is small, and the second channel state information of the Bluetooth communication channel can be obtained relatively quickly, thereby improving the efficiency of obtaining the second channel state information of the Bluetooth communication channel.

[0051] In the above scenario where the first channel state information of the WiFi communication channel is mapped based on the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel to obtain the second channel state information of the Bluetooth communication channel, the first channel state information can be mapped based on the difference between the first frequency range and the second frequency range to obtain the second channel state information of the Bluetooth communication channel. In one embodiment, the above step A includes:

[0052] Step B: If the difference between the first frequency range and the second frequency range is less than a preset difference threshold, the first channel state information is used as the second channel state information.

[0053] In this embodiment, if the difference between the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel is less than the preset difference threshold, it means that the first frequency range of the WiFi communication channel is relatively close to the second frequency range of the Bluetooth communication channel, the difference value is small, and the channel state information of the two is also relatively close, then the first channel state information of the WiFi communication channel can be directly used as the second channel state information of the Bluetooth communication channel.

[0054] In this embodiment, if the difference between the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel is less than the preset difference threshold, it means that the channel state information of the WiFi communication channel and the channel state information of the Bluetooth communication channel are relatively close, and the first channel state information of the WiFi communication channel can be directly used as the second channel state information of the Bluetooth communication channel. The determination process is relatively simple and the amount of calculation is small, ensuring that the second channel state information of the Bluetooth communication channel can be obtained in a timely manner.

[0055] In another embodiment, the above step A comprises:

[0056] Step C: If the difference between the first frequency range and the second frequency range is greater than or equal to a preset difference threshold, a channel state compensation value is determined according to the difference between the first frequency range and the second frequency range, and the first channel state information is compensated according to the channel state compensation value to obtain the second channel state information.

[0057] In this embodiment, if the difference between the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel is greater than or equal to the preset difference threshold, it means that the difference between the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel is large, and the difference between the channel state information of the WiFi communication channel and the state information of the Bluetooth communication channel is also large. At this time, the channel compensation value can be determined according to the difference between the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel. For example, the difference between the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel can be directly determined as the channel state compensation value, or the channel compensation value can be determined according to the correspondence between the difference between the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel and the channel state compensation value. Further, the first channel state information of the WiFi communication channel can be compensated according to the determined channel compensation value, and the state information after compensation is determined as the second channel state information of the Bluetooth communication channel.

[0058] In this embodiment, if the difference between the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel is greater than or equal to a preset difference threshold, it means that the difference between the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel is large. At this time, the channel state compensation value is first determined according to the difference between the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel, and then the first channel state information is compensated according to the determined channel state compensation value. The relatively accurate channel state information obtained can be determined as the second channel state information of the Bluetooth communication channel, thereby improving the accuracy of the obtained second channel state information of the Bluetooth communication channel.

[0059] In the above scenario where the compensation value of the Bluetooth transmission power is determined based on the second channel state information of the Bluetooth communication channel, the compensation value of the Bluetooth transmission power can be determined based on the second channel state information of the Bluetooth communication channel and the channel threshold when the Bluetooth communication channel is free of interference. In one embodiment, the above S203 includes: determining the compensation value based on the second channel state information and a preset channel threshold, where the channel threshold is obtained when the Bluetooth communication channel is free of interference.

[0060] Among them, the preset channel threshold is obtained by measuring the Bluetooth communication channel when there is no interference in the Bluetooth communication channel. As an optional implementation, the difference between the second channel state information of the Bluetooth communication channel and the preset channel threshold can be determined as the compensation value of the Bluetooth transmission power; or, as another optional implementation, the ratio of the second channel state information of the Bluetooth communication channel to the preset channel threshold can be determined as the compensation value of the Bluetooth transmission power. Since the compensation value compensates for the Bluetooth transmission power, and the difference between the second channel state information of the Bluetooth communication channel and the preset channel threshold represents the difference between the second channel state information of the Bluetooth communication channel and the channel state information of the Bluetooth communication channel in the absence of interference, therefore, in this embodiment, as a preferred implementation, the difference between the second channel state information of the Bluetooth communication channel and the preset channel threshold can be determined as the compensation value of the Bluetooth transmission power.

[0061] In this embodiment, since the process of determining the compensation value of the Bluetooth transmission power is relatively simple based on the second channel state information of the Bluetooth communication channel and the preset channel threshold, the compensation value of the Bluetooth transmission power can be determined relatively quickly, thereby improving the efficiency of determining the compensation value of the Bluetooth transmission power.

[0062] It can be understood that the Bluetooth communication channel includes multiple Bluetooth communication channels, and therefore, the acquired second channel state information of the Bluetooth communication channel may be the second channel state information of multiple Bluetooth communication channels. In this embodiment, the Bluetooth communication channel is multiple Bluetooth communication channels, and the above S202 includes: acquiring the second channel state information of each Bluetooth communication channel according to the first channel state information.

[0063] Typically, a Bluetooth communication channel includes multiple Bluetooth communication channels. Therefore, the above-mentioned Bluetooth communication channel may include multiple Bluetooth communication channels, and the determined second channel state information of the Bluetooth communication channel is also the second channel state information of the multiple Bluetooth communication channels. That is to say, in this embodiment, the second channel state information of each Bluetooth communication channel in the multiple Bluetooth communication channels can be obtained according to the first channel state information of the WiFi communication channel, so as to obtain the second channel state information of each Bluetooth communication channel.

[0064] In this embodiment, the second channel state information of each Bluetooth communication channel in the plurality of Bluetooth communication channels can be acquired according to the first channel state information of the WiFi communication channel, thereby ensuring the integrity of the acquired second channel state information of the Bluetooth communication channel.

[0065] When performing Bluetooth communication, not all Bluetooth communication channels may be in use, but some Bluetooth communication channels may be in use. Therefore, in the above scenario where the Bluetooth transmission power is compensated according to the compensation value of the Bluetooth transmission power, the compensation may be performed on the Bluetooth transmission power of the used Bluetooth communication channels. Figure 3 As shown, the above S203 includes:

[0066] S301, determining a target Bluetooth communication channel used by current Bluetooth communication; the target Bluetooth communication channel is any one of a plurality of Bluetooth communication channels.

[0067] The Bluetooth communication channel used for Bluetooth communication may be part of the multiple Bluetooth communication channels, so in this embodiment, the first device can determine the target Bluetooth communication channel used for the current Bluetooth communication from the multiple Bluetooth communication channels. Optionally, the target Bluetooth communication channel in this embodiment can be one of the multiple Bluetooth communication channels, or multiple Bluetooth communication channels in the multiple Bluetooth communication channels, which is not limited in this embodiment.

[0068] S302: Compensate the Bluetooth transmission power of the target Bluetooth communication channel according to the compensation value of the target Bluetooth communication channel.

[0069] In this embodiment, after the first device determines the target Bluetooth communication channel used for the current Bluetooth communication, it can determine the compensation value of the target Bluetooth communication channel based on the compensation value of the Bluetooth communication channel determined above, and then compensate the Bluetooth transmission power of the target Bluetooth communication channel according to the determined compensation value of the target Bluetooth communication channel, and use the compensated Bluetooth transmission power for Bluetooth communication.

[0070] In this embodiment, the first device can determine the target Bluetooth communication channel used for Bluetooth communication from multiple Bluetooth communication channels. Since the determined target Bluetooth communication channel is the Bluetooth communication channel used for Bluetooth communication, when compensating the transmission power of the Bluetooth communication channel, the transmission power compensation is performed on the Bluetooth communication channel used for Bluetooth communication, rather than compensating the transmission power of all Bluetooth communication channels. This reduces the power consumption of the first device caused by compensating the transmission power of other Bluetooth communication channels, and reduces the power consumption of the first device while ensuring the compensation of the Bluetooth transmission power of the Bluetooth communication channel used for Bluetooth communication.

[0071] In the above scenario of obtaining the first channel state information of the WiFi communication channel used for WiFi communication with the second device, it is necessary to first establish WiFi communication between the first device and the second device. In one embodiment, Figure 4 As shown, the above method also includes:

[0072] S401, receiving a hotspot activation instruction triggered by a user.

[0073] In this embodiment, since it is necessary to obtain the first channel state information of the WiFi communication channel used by the first device and the second device for WiFi communication, it is necessary to first ensure that WiFi communication is established between the first device and the second device. As an optional implementation, the user can trigger a hotspot opening instruction in the first device, and establish WiFi communication with the second device through the hotspot opening instruction. Optionally, the user can trigger the hotspot opening instruction through voice, or can also trigger the hotspot opening instruction through a triggering operation, etc. This embodiment does not limit the way in which the user triggers the hotspot opening instruction.

[0074] S402, in response to the hotspot opening instruction, establish WiFi communication with the second device.

[0075] In this embodiment, the first device can respond to the received hotspot activation instruction, turn on the personal hotspot switch of the first device, share its own mobile network or the connected wireless local area network (Wireless Local Area Networks, WLAN) with the second device in the form of a hotspot, and establish WiFi communication with the second device.

[0076] In this embodiment, the first device receives a hotspot activation instruction triggered by a user, and by responding to the hotspot activation instruction, the process of establishing WiFi communication with the second device is relatively simple and does not involve complicated operations. This enables the first device to quickly establish WiFi communication with the second device, thereby improving the efficiency of establishing WiFi communication between the two devices.

[0077] In the above scenario of obtaining the first channel state information of the WiFi communication channel used for WiFi communication with the second device, the first device can obtain the first channel state information of the WiFi communication channel used for WiFi communication between the first device and the second device by sending a detection signal to the second device. Figure 5 As shown, the above S201 includes:

[0078] S501, sending a WiFi communication channel detection signal to a second device.

[0079] In this embodiment, the first device can send a WiFi communication channel detection signal to the second device through the WiFi communication connection between the first device and the second device, so that the second device can detect the WiFi communication channel used for WiFi communication between the first device and the second device based on the WiFi communication channel detection signal, and obtain the first channel status information of the WiFi communication channel used.

[0080] S502: Receive first channel state information sent by a second device based on a WiFi communication channel detection signal.

[0081] In this embodiment, after the second device receives the WiFi communication channel detection signal sent by the first device and responds to the WiFi communication channel detection signal, the second device can obtain the first channel state information of the WiFi communication channel used for WiFi communication between the first device and the second device, and then the second device can send the obtained first channel state information to the first device based on the WiFi communication channel detection signal, so that the first device obtains the first channel state information of the WiFi communication channel used for WiFi communication between the first device and the second device.

[0082] In this embodiment, the first device sends a WiFi communication channel detection signal to the second device, so that the second device responds to the WiFi communication channel detection signal and accurately detects the first channel state information of the WiFi communication channel used for WiFi communication between the first device and the second device, thereby sending the acquired first channel state information to the first device, so that the first device can obtain first channel state information with higher accuracy.

[0083] To facilitate the understanding of those skilled in the art, the Bluetooth transmission power compensation method provided by the present application is described in detail below in combination with a complete embodiment:

[0084] S1, receiving a hotspot activation instruction triggered by a user.

[0085] S2, in response to the hotspot opening instruction, establishing WiFi communication with the second device.

[0086] S3, sending a WiFi communication channel detection signal to the second device.

[0087] S4, receiving first channel state information sent by the second device based on the WiFi communication channel detection signal.

[0088] S5: If the difference between the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel is less than a preset difference threshold, the first channel state information is used as the second channel state information of the Bluetooth communication channel.

[0089] S6, if the difference between the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel is greater than or equal to a preset difference threshold, a channel state compensation value is determined according to the difference between the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel, and the first channel state information is compensated according to the channel state compensation value to obtain the second channel state information of the Bluetooth communication channel.

[0090] S7, determining a compensation value of the Bluetooth transmission power according to the second channel state information of the Bluetooth communication channel and a preset channel threshold, wherein the channel threshold is obtained when there is no interference in the Bluetooth communication channel.

[0091] S8, determining the target Bluetooth communication channel used by the current Bluetooth communication.

[0092] S9, compensating the Bluetooth transmission power of the target Bluetooth communication channel according to the compensation value of the target Bluetooth communication channel.

[0093] It should be noted that for the descriptions in the above S1-S9, reference may be made to the relevant descriptions in the above embodiments, and the effects are similar, so this embodiment will not be repeated here.

[0094] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0095] Based on the same inventive concept, the embodiment of the present application also provides a Bluetooth transmission power compensation device for implementing the Bluetooth transmission power compensation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more Bluetooth transmission power compensation devices provided below can refer to the limitations of the Bluetooth transmission power compensation method above, and will not be repeated here.

[0096] In one embodiment, Figure 6 As shown, a compensation device for Bluetooth transmission power is provided, comprising: a first acquisition module 10, a second acquisition module 11 and a compensation module 12, wherein:

[0097] A first acquisition module 10 is used to acquire first channel state information of a WiFi communication channel used for wireless fidelity WiFi communication with a second device;

[0098] A second acquisition module 11 is used to acquire second channel state information of the Bluetooth communication channel according to the first channel state information;

[0099] The compensation module 12 is used to determine a compensation value of the Bluetooth transmission power according to the second channel state information, and compensate the Bluetooth transmission power according to the compensation value.

[0100] The Bluetooth transmission power compensation device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0101] Based on the above embodiments, Figure 7 As shown, optionally, the second acquisition module 11 includes: a first acquisition unit 111, wherein:

[0102] The first acquisition unit 111 is used to map the first channel state information according to the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel to obtain the second channel state information.

[0103] The Bluetooth transmission power compensation device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0104] On the basis of the above embodiment, optionally, the above first acquisition unit 111 is configured to use the first channel state information as the second channel state information if the difference between the first frequency range and the second frequency range is less than a preset difference threshold.

[0105] The Bluetooth transmission power compensation device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0106] On the basis of the above embodiment, optionally, the above-mentioned first acquisition unit 111 is used to determine a channel state compensation value according to the difference between the first frequency range and the second frequency range if the difference between the first frequency range and the second frequency range is greater than or equal to a preset difference threshold, and compensate the first channel state information according to the channel state compensation value to obtain the second channel state information.

[0107] The Bluetooth transmission power compensation device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0108] Based on the above embodiments, Figure 8 As shown, optionally, the compensation module 12 includes: a first determination unit 121, wherein:

[0109] The first determining unit 121 is configured to determine a compensation value according to the second channel state information and a preset channel threshold, where the channel threshold is obtained when there is no interference in the Bluetooth communication channel.

[0110] The Bluetooth transmission power compensation device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0111] Based on the above embodiments, Fig. 9 As shown, optionally, the Bluetooth communication channel is a plurality of Bluetooth communication channels, and the second acquisition module 11 includes: a second acquisition unit 112, wherein:

[0112] The second acquiring unit 112 is configured to acquire second channel state information of each Bluetooth communication channel according to the first channel state information.

[0113] The Bluetooth transmission power compensation device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0114] Based on the above embodiments, Fig.10 As shown, optionally, the compensation module 12 includes: a second determination unit 122 and a compensation unit 123, wherein:

[0115] The second determining unit 122 is configured to determine a target Bluetooth communication channel used by the current Bluetooth communication; the target Bluetooth communication channel is any one of the multiple Bluetooth communication channels.

[0116] The compensation unit 123 is configured to compensate the Bluetooth transmission power of the target Bluetooth communication channel according to the compensation value of the target Bluetooth communication channel.

[0117] The Bluetooth transmission power compensation device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0118] Based on the above embodiments, Fig.11 As shown, optionally, the above device further includes: a receiving module 13 and a responding module 14, wherein:

[0119] The receiving module 13 is used to receive a hotspot activation instruction triggered by a user.

[0120] The response module 14 is used to establish WiFi communication with the second device in response to the hotspot opening instruction.

[0121] The Bluetooth transmission power compensation device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0122] Based on the above embodiments, Fig.12 As shown, optionally, the first acquisition module 10 includes: a sending unit 101 and a receiving unit 102, wherein:

[0123] The sending unit 101 is configured to send a WiFi communication channel detection signal to a second device.

[0124] The receiving unit 102 is configured to receive first channel state information sent by a second device based on a WiFi communication channel detection signal.

[0125] The Bluetooth transmission power compensation device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0126] Each module in the above-mentioned Bluetooth transmission power compensation device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0127] In one embodiment, an electronic device is provided, whose internal structure diagram can be as follows: Fig.13As shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WiFi, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for compensating Bluetooth transmission power is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0128] Those skilled in the art will understand that Fig.13 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0129] In one embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0130] Acquire first channel state information of a WiFi communication channel used for wireless fidelity WiFi communication with a second device;

[0131] Acquire second channel state information of the Bluetooth communication channel according to the first channel state information;

[0132] A compensation value of the Bluetooth transmission power is determined according to the second channel state information, and the Bluetooth transmission power is compensated according to the compensation value.

[0133] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0134] According to the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel, the first channel state information is mapped to obtain the second channel state information.

[0135] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0136] If the difference between the first frequency range and the second frequency range is smaller than a preset difference threshold, the first channel state information is used as the second channel state information.

[0137] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0138] If the difference between the first frequency range and the second frequency range is greater than or equal to a preset difference threshold, a channel state compensation value is determined according to the difference between the first frequency range and the second frequency range, and the first channel state information is compensated according to the channel state compensation value to obtain second channel state information.

[0139] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0140] A compensation value is determined according to the second channel state information and a preset channel threshold, where the channel threshold is obtained when there is no interference in the Bluetooth communication channel.

[0141] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0142] According to the first channel state information, second channel state information of each Bluetooth communication channel is acquired.

[0143] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0144] Determine a target Bluetooth communication channel used by the current Bluetooth communication; the target Bluetooth communication channel is any one of the multiple Bluetooth communication channels;

[0145] The Bluetooth transmission power of the target Bluetooth communication channel is compensated according to the compensation value of the target Bluetooth communication channel.

[0146] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0147] Receive hotspot activation instructions triggered by the user;

[0148] In response to the hotspot activation instruction, WiFi communication is established with the second device.

[0149] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0150] Sending a WiFi communication channel detection signal to the second device;

[0151] Receive first channel state information sent by the second device based on the WiFi communication channel detection signal.

[0152] The embodiment of the present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, the processors execute the steps of the method for compensating Bluetooth transmission power.

[0153] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0154] Acquire first channel state information of a WiFi communication channel used for wireless fidelity WiFi communication with a second device;

[0155] Acquire second channel state information of the Bluetooth communication channel according to the first channel state information;

[0156] A compensation value of the Bluetooth transmission power is determined according to the second channel state information, and the Bluetooth transmission power is compensated according to the compensation value.

[0157] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0158] According to the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel, the first channel state information is mapped to obtain the second channel state information.

[0159] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0160] If the difference between the first frequency range and the second frequency range is smaller than a preset difference threshold, the first channel state information is used as the second channel state information.

[0161] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0162] If the difference between the first frequency range and the second frequency range is greater than or equal to a preset difference threshold, a channel state compensation value is determined according to the difference between the first frequency range and the second frequency range, and the first channel state information is compensated according to the channel state compensation value to obtain second channel state information.

[0163] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0164] A compensation value is determined according to the second channel state information and a preset channel threshold, where the channel threshold is obtained when there is no interference in the Bluetooth communication channel.

[0165] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0166] According to the first channel state information, second channel state information of each Bluetooth communication channel is acquired.

[0167] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0168] Determine a target Bluetooth communication channel used by the current Bluetooth communication; the target Bluetooth communication channel is any one of the multiple Bluetooth communication channels;

[0169] The Bluetooth transmission power of the target Bluetooth communication channel is compensated according to the compensation value of the target Bluetooth communication channel.

[0170] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0171] Receive hotspot activation instructions triggered by the user;

[0172] In response to the hotspot activation instruction, WiFi communication is established with the second device.

[0173] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0174] Sending a WiFi communication channel detection signal to the second device;

[0175] Receive first channel state information sent by the second device based on the WiFi communication channel detection signal.

[0176] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute a method for compensating Bluetooth transmission power.

[0177] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0178] Acquire first channel state information of a WiFi communication channel used for wireless fidelity WiFi communication with a second device;

[0179] Acquire second channel state information of the Bluetooth communication channel according to the first channel state information;

[0180] A compensation value of the Bluetooth transmission power is determined according to the second channel state information, and the Bluetooth transmission power is compensated according to the compensation value.

[0181] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0182] According to the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel, the first channel state information is mapped to obtain the second channel state information.

[0183] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0184] If the difference between the first frequency range and the second frequency range is smaller than a preset difference threshold, the first channel state information is used as the second channel state information.

[0185] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0186] If the difference between the first frequency range and the second frequency range is greater than or equal to a preset difference threshold, a channel state compensation value is determined according to the difference between the first frequency range and the second frequency range, and the first channel state information is compensated according to the channel state compensation value to obtain second channel state information.

[0187] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0188] A compensation value is determined according to the second channel state information and a preset channel threshold, where the channel threshold is obtained when there is no interference in the Bluetooth communication channel.

[0189] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0190] According to the first channel state information, second channel state information of each Bluetooth communication channel is acquired.

[0191] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0192] Determine a target Bluetooth communication channel used by the current Bluetooth communication; the target Bluetooth communication channel is any one of the multiple Bluetooth communication channels;

[0193] The Bluetooth transmission power of the target Bluetooth communication channel is compensated according to the compensation value of the target Bluetooth communication channel.

[0194] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0195] Receive hotspot activation instructions triggered by the user;

[0196] In response to the hotspot activation instruction, WiFi communication is established with the second device.

[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0198] Sending a WiFi communication channel detection signal to the second device;

[0199] Receive first channel state information sent by the second device based on the WiFi communication channel detection signal.

[0200] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0201] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0202] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for compensating Bluetooth transmission power, characterized in that: Applied to a first device, comprising: Acquire first channel state information of a WiFi communication channel used for wireless fidelity WiFi communication with a second device; Acquire second channel state information of the Bluetooth communication channel according to the first channel state information; A compensation value of Bluetooth transmission power is determined according to the second channel state information, and the Bluetooth transmission power is compensated according to the compensation value.

2. The method according to claim 1, characterized in that The acquiring, according to the first channel state information, second channel state information of the Bluetooth communication channel comprises: According to the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel, the first channel state information is mapped to obtain the second channel state information.

3. The method according to claim 2, characterized in that The mapping process of the first channel state information according to the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel to obtain the second channel state information includes: If the difference between the first frequency range and the second frequency range is smaller than a preset difference threshold, the first channel state information is used as the second channel state information.

4. The method according to claim 2, characterized in that: The mapping process of the first channel state information according to the first frequency range of the WiFi communication channel and the second frequency range of the Bluetooth communication channel to obtain the second channel state information includes: If the difference between the first frequency range and the second frequency range is greater than or equal to a preset difference threshold, a channel state compensation value is determined according to the difference between the first frequency range and the second frequency range, and the first channel state information is compensated according to the channel state compensation value to obtain the second channel state information.

5. The method according to any one of claims 1 to 4, characterized in that: The determining, according to the second channel state information, a compensation value of the Bluetooth transmission power includes: The compensation value is determined according to the second channel state information and a preset channel threshold, where the channel threshold is obtained when there is no interference on the Bluetooth communication channel.

6. The method according to any one of claims 1 to 4, characterized in that: The Bluetooth communication channel is a plurality of Bluetooth communication channels, and acquiring second channel state information of the Bluetooth communication channel according to the first channel state information includes: The second channel state information of each of the Bluetooth communication channels is acquired according to the first channel state information.

7. The method according to claim 6, characterized in that The compensating the Bluetooth transmission power according to the compensation value includes: Determine a target Bluetooth communication channel used by the current Bluetooth communication; the target Bluetooth communication channel is any one of the multiple Bluetooth communication channels; The Bluetooth transmission power of the target Bluetooth communication channel is compensated according to the compensation value of the target Bluetooth communication channel.

8. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Receive hotspot activation instructions triggered by the user; In response to the hotspot activation instruction, WiFi communication is established with the second device.

9. The method according to claim 1, characterized in that: The obtaining of first channel state information of a WiFi communication channel used for wireless fidelity WiFi communication with a second device includes: Sending a WiFi communication channel detection signal to the second device; Receive the first channel state information sent by the second device based on the WiFi communication channel detection signal.

10. A Bluetooth transmission power compensation device, characterized in that: Applied to a first device, comprising: A first acquisition module, used to acquire first channel state information of a WiFi communication channel used for wireless fidelity WiFi communication with a second device; A second acquisition module, configured to acquire second channel state information of a Bluetooth communication channel according to the first channel state information; The compensation module is used to determine a compensation value of the Bluetooth transmission power according to the second channel state information, and compensate the Bluetooth transmission power according to the compensation value.

11. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor executes the steps of the method for compensating Bluetooth transmission power according to any one of claims 1 to 9.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.