Bluetooth power control method, device and equipment
By calculating the target signal strength average and sending power adjustment requests, the existing Bluetooth power control strategy has solved the problem of slow response speed and large power consumption, and achieved faster and more energy-saving power control.
Patent Information
- Application Number
- CN202210748130.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2042-06-29
AI Technical Summary
Existing Bluetooth power control strategies cannot guarantee the response speed, and it is easy to cause excessive power consumption.
By receiving the signal strength of the current data packet and calculating the target signal strength mean based on the historical signal strength mean and the target weight, a power adjustment request is sent if the preset threshold is exceeded.
The response speed of power control is improved, the problem of excessive power adjustment is avoided, and the power loss is reduced.
Smart Images

Figure CN115278846B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Bluetooth communication technology, and in particular to a Bluetooth power control method, device and equipment. Background Art
[0002] With the continuous development of technologies such as Bluetooth low energy, Bluetooth has become a popular short-range wireless communication technology and is widely used in electronic products such as smart wearable devices, mobile terminals, and audio equipment.
[0003] After the current terminal device establishes a Bluetooth connection with the peer device, the terminal device can receive data packets sent from the peer device. Based on its own actual needs, the terminal device often needs to adjust the transmission power of the peer device to ensure the stability and accuracy of data reception.
[0004] In the related art, when controlling the power of the peer device, it is often determined whether the transmission power of the peer device needs to be adjusted based on the signal strength value (RSSI) of the data packet after receiving a certain amount of data packets. This power control strategy cannot guarantee the response speed of power control and is also prone to cause more power consumption. Summary of the invention
[0005] The present application provides a Bluetooth power control method, device and equipment, which can avoid excessive power consumption while ensuring the response speed.
[0006] In a first aspect, an embodiment of the present application provides a Bluetooth power control method, comprising:
[0007] Receive a current data packet and determine a current signal strength corresponding to the current data packet;
[0008] When the current data packet is not the first data packet, determining a target weight corresponding to the current signal strength according to a historical signal strength average and the current signal strength;
[0009] Determine a target signal strength mean based on the current signal strength, the target weight, and the historical signal strength mean;
[0010] When the target signal strength average exceeds a preset threshold, a power adjustment request is sent to the opposite device.
[0011] In a possible implementation manner, determining the target weight corresponding to the current signal strength according to the historical signal strength average and the current signal strength includes:
[0012] Obtaining the historical signal strength average, and determining a first signal strength difference between the current signal strength and the historical signal strength average;
[0013] A target weight corresponding to the current signal strength is determined according to the first signal strength difference.
[0014] In a possible implementation manner, determining the target weight corresponding to the current signal strength according to the first signal strength difference includes:
[0015] Determine a ratio of the first signal strength difference to a preset signal strength jump value;
[0016] The target weight is obtained by subtracting a preset constant from the ratio.
[0017] In a possible implementation manner, determining the target weight corresponding to the current signal strength according to the first signal strength difference includes:
[0018] Obtaining a preset weight list; wherein the preset weight list stores a correspondence between signal strength differences and weight values;
[0019] According to the first signal strength difference, the weight value corresponding to the first signal strength difference is searched in the preset weight list to obtain the target weight.
[0020] In a possible implementation manner, determining the target signal strength mean based on the current signal strength, the target weight, and the historical signal strength mean includes:
[0021] Based on the target weight, the current signal strength and the historical signal strength mean are weighted and summed to obtain the target signal strength mean; wherein the weight corresponding to the historical signal strength mean is the difference between the target weight and a preset constant.
[0022] In a possible implementation manner, the preset threshold includes a first preset threshold and a second preset threshold; and when the target signal strength average exceeds the preset threshold, sending a power adjustment request to the opposite end device includes:
[0023] When the target signal strength mean is greater than a first preset threshold, sending a power adjustment request to reduce the transmission power to the opposite end device;
[0024] When the target signal strength mean value is less than the second preset threshold, a power adjustment request for increasing the transmission power is sent to the opposite end device.
[0025] In a possible implementation, the method further includes:
[0026] Determine whether the current data packet is the first data packet;
[0027] In the case that the current data packet is the first data packet, the current signal strength is determined as the target signal strength mean.
[0028] In a second aspect, an embodiment of the present application provides a Bluetooth power control device, comprising:
[0029] A receiving module, used to receive a current data packet and determine a current signal strength corresponding to the current data packet;
[0030] A first determination module, configured to determine, when the current data packet is not the first data packet, a target weight corresponding to the current signal strength according to a historical signal strength average and the current signal strength;
[0031] A second determination module is used to determine a target signal strength mean based on the current signal strength, the target weight and the historical signal strength mean;
[0032] The sending module is used to send a power adjustment request to the opposite device when the target signal strength average exceeds a preset threshold.
[0033] In a possible implementation manner, the first determining module includes:
[0034] A first determination submodule, configured to obtain the historical signal strength average and determine a first signal strength difference between the current signal strength and the historical signal strength average;
[0035] The second determination submodule is used to determine the target weight corresponding to the current signal strength according to the first signal strength difference.
[0036] In a possible implementation manner, the second determining submodule is specifically configured to:
[0037] Determine a ratio of the first signal strength difference to a preset signal strength jump value;
[0038] The target weight is obtained by subtracting a preset constant from the ratio.
[0039] In a possible implementation manner, the second determining submodule is specifically configured to:
[0040] Obtaining a preset weight list; wherein the preset weight list stores a correspondence between signal strength differences and weight values;
[0041] According to the first signal strength difference, the weight value corresponding to the first signal strength difference is searched in the preset weight list to obtain the target weight.
[0042] In a possible implementation manner, the second determining module is specifically configured to:
[0043] Based on the target weight, the current signal strength and the historical signal strength mean are weighted and summed to obtain the target signal strength mean; wherein the weight corresponding to the historical signal strength mean is the difference between the target weight and a preset constant.
[0044] In a possible implementation manner, the preset threshold includes a first preset threshold and a second preset threshold; and the sending module is specifically configured to:
[0045] When the target signal strength mean is greater than a first preset threshold, sending a power adjustment request to reduce the transmission power to the opposite end device;
[0046] When the target signal strength mean value is less than the second preset threshold, a power adjustment request for increasing the transmission power is sent to the opposite end device.
[0047] In a possible implementation manner, the device is further used for:
[0048] Determine whether the current data packet is the first data packet;
[0049] In the case that the current data packet is the first data packet, the current signal strength is determined as the target signal strength mean.
[0050] In a third aspect, an embodiment of the present application provides a device, including: a processor and a memory;
[0051] The memory stores computer-executable instructions;
[0052] The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method as described in any one of the first aspects.
[0053] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in any one of the first aspects.
[0054] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the method described in any one of the first aspects.
[0055] In a sixth aspect, an embodiment of the present application provides a chip, on which a computer program is stored, and when the computer program is executed by the chip, the method described in any one of the first aspects is implemented.
[0056] The Bluetooth power control method, device and equipment provided in the embodiments of the present application determine the target weight corresponding to the current data packet, obtain the target signal strength mean based on the target weight and the historical signal strength mean, and implement power control of the peer device based on the target signal strength mean. In this way, the target signal strength mean is calculated for each current data packet, which can improve the response speed of power control; at the same time, the target weight and the historical signal strength mean are introduced for calculation, which can avoid the problem of too frequent power adjustment and avoid causing excessive power loss. Therefore, the embodiments of the present application can not only ensure the response speed of power control, but also avoid causing more power loss. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;
[0058] Figure 2 A schematic diagram of a flow chart of a Bluetooth power control method provided in an embodiment of the present application;
[0059] Figure 3 A schematic diagram of a flow chart of another Bluetooth power control method provided in an embodiment of the present application;
[0060] Figure 4 A schematic diagram of the execution logic of a Bluetooth power control method provided in an embodiment of the present application;
[0061] Figure 5 A schematic diagram of the structure of a Bluetooth power control device provided in an embodiment of the present application;
[0062] Figure 6 A schematic diagram of the structure of a Bluetooth power control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0063] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0064] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0065] Figure 1 This is a schematic diagram of an application scenario provided by the embodiment of this application. Figure 1 , including a terminal device 101 and a peer device 102. The terminal device 101 includes a first Bluetooth module 1011, and the peer device 102 includes a second Bluetooth module 1021. The terminal device 101 and the peer device 102 may be of the same type or different types, and may specifically be various user terminals, such as mobile phones, computers, smart wearable devices, audio devices, etc.; they may also be Bluetooth chips or Bluetooth chip modules, such as low-power Bluetooth controller chips (BLE Controller) or Bluetooth controller chips (BT Controller), etc., which are not limited in the embodiments of the present application.
[0066] When the terminal device 101 establishes a Bluetooth connection with the peer device 102, data can be sent and received between the first Bluetooth module 1011 and the second Bluetooth module 1021. In the Bluetooth 5.2 standard protocol (Specification 5.2), a new two-way power control function (LE Power Control) is added, which can actively apply to modify the transmit power size (Tx Power) of the peer device. The specific implementation process of the power control function can be: when the data receiving end determines that the received received signal strength value RSSI (unit: decibel milliwatt dBm) is too large or too small, it can request the peer device to reduce or increase the transmit power so that the RSSI value of the data packet received by the data receiving end is just within the acceptable range. Among them, a too small received signal strength RSSI value will cause signal distortion, increase the bit error rate, and affect the accuracy of the data packet; a too large received signal strength RSSI value will increase the unnecessary power consumption of the peer device. However, the Specification 5.2 protocol does not specify when the RSSI value is specific, and the transmit power of the peer device needs to be modified, so there are different power control strategies.
[0067] In related technologies, power control strategies mainly include the following two methods:
[0068] First, the terminal device receives a fixed number of data packets (for example, 150 packets), then takes the average of the RSSI of the fixed number of data packets, and determines whether to modify the transmission power of the peer device based on the size of the average. Since the time interval between the fixed number of data packets is long, this power control strategy is not sensitive enough to RSSI, and the reaction speed is slow. In addition, the RSSI value with large deviation in the data packet has a greater impact on the average, resulting in inaccurate power control.
[0069] Second, each time the terminal device receives a data packet, it determines whether to modify the transmission power of the opposite device according to the RSSI value of the received signal strength of the data packet. This power control strategy has a fast response speed, but the power control is more frequent, which increases power consumption. In addition, this power control strategy is prone to unnecessary power adjustment requests. For example, if there is a short signal interference, that is, the RSSI value suddenly decreases or increases but quickly returns to a normal value, such as a person walking between the terminal device 101 and the opposite device 102, or a wall passing between the two devices. At this time, it is meaningless for the terminal device to send a request to modify the transmission power of the opposite device, which is obviously an unnecessary power adjustment request. The execution of these unnecessary power adjustment processes consumes adjustment time, causes unnecessary power consumption, and wastes air interface resources.
[0070] Therefore, the power control strategy in the related art cannot achieve the goal of ensuring the response speed of power control while avoiding excessive power consumption.
[0071] In an embodiment of the present application, by determining the target weight corresponding to the current data packet, the target signal strength mean is obtained based on the target weight and the historical signal strength mean, and the power control of the opposite device is implemented based on the target signal strength mean of the current data packet. In this way, the target signal strength mean is calculated for each current data packet, which can improve the reaction speed of power control; at the same time, the target weight and the historical signal strength mean are introduced for calculation, which can avoid the problem of too frequent requests when power adjustment is performed based on the signal strength value of a single data packet, and avoid causing excessive power loss. Therefore, the embodiment of the present application can not only ensure the reaction speed of power control, but also avoid causing more power loss.
[0072] The scheme shown in the present application is described in detail below through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or similar contents will not be repeated in different embodiments.
[0073] Next, combine Figure 2 The illustrated embodiment illustrates the process of Bluetooth power control.
[0074] Figure 2 A flowchart of a Bluetooth power control method provided in an embodiment of the present application. Figure 2 , the method may include:
[0075] S201. Receive a current data packet and determine a current signal strength corresponding to the current data packet.
[0076] In the embodiment of the present application, the current data packet may refer to the data packet received by the terminal device at the current moment, and the data packet received before the current moment is the historical data packet. The current signal strength may refer to the RSSI value carried by the current data packet. After receiving the current data packet, the terminal device can directly read the current signal strength corresponding to the current data packet.
[0077] S202: When the current data packet is not the first data packet, determine a target weight corresponding to the current signal strength according to the historical signal strength average and the current signal strength.
[0078] In an embodiment of the present application, the first data packet may be the first data packet received after the terminal device establishes a connection with the opposite device. The historical signal strength mean may refer to the RSSI mean corresponding to the historical data packets stored in the terminal device. The target weight may refer to the proportion corresponding to the current signal strength. The target weight may reflect the variation of the current signal strength of the current data packet. The larger the variation, the smaller the target weight. In this way, in subsequent calculations, the current signal strength with a large variation can occupy a smaller proportion, thereby avoiding the situation where the final mean calculation deviation is large due to a sudden change in the current signal strength, and improving the accuracy of the power adjustment request transmission.
[0079] In the embodiment of the present application, since the first data packet is usually a packet with good signal quality and there is no historical signal strength mean when the first data packet is received, the target signal strength mean can be calculated separately for the first data packet subsequently.
[0080] S203: Determine a target signal strength mean based on the current signal strength, the target weight, and the historical signal strength mean.
[0081] In the embodiment of the present application, the target signal strength mean may refer to the RSSI mean corresponding to the current data packet. After determining the target weight corresponding to the current data packet, the target signal strength mean may be determined based on the historical signal strength mean corresponding to the previous historical data packet, the current signal strength corresponding to the current data packet, and the target weight. The specific calculation method may be weighted summation, etc., so that the RSSI mean of the current data packet and the historical data packet can be combined based on the target weight, thereby improving the rationality and accuracy of the RSSI mean calculation and avoiding the situation where the RSSI value suddenly changes and has a greater impact on the mean calculation.
[0082] S204: When the target signal strength average exceeds a preset threshold, send a power adjustment request to the opposite device.
[0083] In an embodiment of the present application, the preset threshold may be a preset acceptable range of signal strength, and may specifically include a first preset threshold and a second preset threshold, wherein the first preset threshold is the maximum acceptable signal strength, and the second preset threshold is the minimum acceptable signal strength. After calculating the target signal strength mean of the current data packet, the terminal device may determine whether the target signal strength mean is within the range corresponding to the preset threshold. If the target signal strength mean exceeds the preset threshold, the terminal device may send a power adjustment request to the opposite device, so that the opposite device reduces or increases the transmission power to ensure the accuracy and reliability of data transmission. If the target signal strength mean does not exceed the preset threshold, the terminal device may continue to receive the next data packet, and use the target signal strength mean of the current data packet as the historical signal strength mean required for the next data packet, and continue to execute the above calculation and judgment process to achieve real-time and accurate control of the transmission power of the opposite device.
[0084] The Bluetooth power control method provided in the embodiment of the present application determines the target weight corresponding to the current data packet, obtains the target signal strength mean based on the target weight and the historical signal strength mean, and implements power control of the peer device based on the target signal strength mean. In this way, the target signal strength mean is calculated for each current data packet, which can improve the response speed of power control; at the same time, the target weight and the historical signal strength mean are introduced for calculation, which can avoid the problem of too frequent power adjustment and avoid causing excessive power loss. Therefore, the embodiment of the present application can not only ensure the response speed of power control, but also avoid causing more power loss.
[0085] Based on the above embodiments, Figure 3 The embodiment shown provides a detailed description of the Bluetooth power control process.
[0086] Figure 3A flowchart of another Bluetooth power control method provided in an embodiment of the present application. Figure 3 , the method may include:
[0087] S301: Receive a current data packet and determine a current signal strength corresponding to the current data packet.
[0088] S302: Determine whether the current data packet is the first data packet.
[0089] In an embodiment of the present application, when receiving the current data packet, the terminal device can first determine whether the terminal device stores the historical signal strength average. If not, it determines that the current data packet is the first data packet; if so, it determines that the current data packet is not the first data packet.
[0090] S303: When the current data packet is the first data packet, determine the current signal strength as the target signal strength mean.
[0091] In the embodiment of the present application, when the current data packet received is the first packet, the terminal device can directly use the current signal strength of the current data packet as the target signal strength average. In this way, after receiving the next data packet, the historical signal strength average corresponding to the next data packet is the target signal strength average of the current data packet, providing a data basis for the subsequent calculation of the RSSI average.
[0092] S304: When the current data packet is not the first data packet, obtain a historical signal strength average, and determine a first signal strength difference between the current signal strength and the historical signal strength average.
[0093] In the embodiment of the present application, the first signal strength difference may refer to the difference between the current signal strength of the current data packet and the historical signal strength average. The larger the first signal strength difference, the greater the change in the current signal strength of the current data packet.
[0094] In this step, when the terminal device determines that the current data packet is not the first data packet, it can read the historical signal strength average, and subtract the historical signal strength average from the current signal strength to obtain the first signal strength difference.
[0095] S305: Determine a target weight corresponding to the current signal strength according to the first signal strength difference.
[0096] In a possible implementation manner, step 305 may include the following two implementation manners:
[0097] Implementation method 1: determine the ratio of the first signal strength difference value to the preset signal strength jump value; and subtract a preset constant from the ratio to obtain a target weight.
[0098] In the embodiment of the present application, the preset signal strength jump value may refer to a preset maximum signal strength jump value acceptable to the terminal device. The preset signal strength jump value may be a value obtained in advance through experiments, tests, etc., or may be an experience value of the user. The embodiment of the present application does not limit the specific size of the preset signal strength jump value. The preset constant may refer to a preset fixed constant, which may be 1.
[0099] In this step, after determining the first signal strength difference, the terminal device can calculate the target weight a based on the following formula (1):
[0100] a=1-(first signal strength difference / preset signal strength jump value) (1)
[0101] Specifically, taking the first signal strength difference value as 30dB and the preset signal strength jump value as 50dB as an example, the target weight corresponding to the current data packet is a=1-(30 / 50)=0.4. In this way, by determining the ratio of the first signal strength difference value to the preset signal strength jump value, and subtracting the preset constant from the ratio, the target weight can be determined quickly and accurately, thereby improving the accuracy of data calculation.
[0102] Implementation method 2: obtaining a preset weight list; the preset weight list stores the correspondence between signal strength differences and weight values; according to the first signal strength difference, searching the preset weight list for the weight value corresponding to the first signal strength difference to obtain the target weight.
[0103] In the embodiment of the present application, the preset weight list may refer to a list or list of correspondences between preset signal strength difference values and weight values. Since the preset signal strength jump value is usually a fixed value, the terminal device can pre-calculate the weight values corresponding to different signal strength difference values based on the above formula (1) and form a preset weight list. For example, Table 1 is a preset weight list of the embodiment of the present application, which is as follows:
[0104] Signal strength difference (dB) Weight value 5 0.9 10 0.8 15 0.7 20 0.6 25 0.5 30 0.4
[0105] Table 1
[0106] It should be noted that the above preset weight list is only an example. Based on actual needs, more correspondences between signal strength differences and weight values can be calculated to facilitate subsequent direct searches. In this way, in the embodiment of the present application, after obtaining the first signal strength difference, the weight value corresponding to the first signal strength difference can be directly determined by looking up the table in the preset weight list, and then the target weight is obtained without calculation, which improves the efficiency of determining the target weight.
[0107] S306. Based on the target weight, perform weighted summation on the current signal strength and the mean of the historical signal strength to obtain the mean of the target signal strength; wherein the weight corresponding to the mean of the historical signal strength is the difference between the target weight and a preset constant.
[0108] In the embodiment of the present application, the specific calculation process of the target signal strength mean may be a process of weighted summing the current signal strength and the historical signal strength mean. The weight of the current signal strength is the target weight, and the weight corresponding to the historical signal strength mean is the difference between the target weight and the preset constant. In this way, the larger the first signal strength difference, the smaller the target weight, and the smaller the proportion of the current signal strength in the target signal strength mean calculation process, which can ensure the accuracy and rationality of the target signal strength mean calculation when the current signal strength changes suddenly.
[0109] In this step, the target signal strength mean can be calculated by the following formula (2):
[0110]
[0111] Among them, R n is the mean value of the target signal strength, n represents the nth data packet, R curr is the current signal strength of the current data packet, R n-1 is the mean value of historical signal strength, and a is the target weight. Specifically, if the current data packet is the first data packet, n is equal to 0, and the target signal strength mean can be directly assigned to the current signal strength of the first data packet. If the current data packet is not the first data packet, n is greater than 0, and the target signal strength mean can be the weighted sum of the historical signal strength mean and the current signal strength, where the weight of the current signal strength is the target weight, and the weight of the historical signal strength mean is the difference between the target weight and the preset constant 1.
[0112] S307. When the target signal strength mean is greater than a first preset threshold, send a power adjustment request to the opposite device to reduce the transmit power; when the target signal strength mean is less than a second preset threshold, send a power adjustment request to the opposite device to increase the transmit power.
[0113] In the embodiment of the present application, the preset threshold may refer to a range that is less than or equal to the first preset threshold and greater than or equal to the second preset threshold. When the mean value of the target signal strength is greater than the first preset threshold, it means that the Bluetooth transmission power of the opposite device is too large and the power loss is large. At this time, the terminal device can send a power adjustment request to the opposite device to reduce the transmission power of the opposite device. When the mean value of the target signal strength is less than the second preset threshold, it means that the Bluetooth transmission power of the opposite device is too small, the data transmission signal is distorted, and the accuracy of the data packet is low. At this time, the terminal device can send a power adjustment request to the opposite device to increase the transmission power.
[0114] In this step, specifically when sending a power adjustment request, the terminal device can send a protocol data unit (PDU) to the peer device, which includes bytes for increasing or decreasing the transmission power. After receiving the PDU, the peer device can normally return a PDU response to the terminal device to accept the power modification and perform the modification of the transmission power. When the peer device does not support power adjustment or the power value indicated by the power adjustment request is outside the adjustable range of the peer device, the peer device can return a PDU response to reject the power modification.
[0115] exist Figure 3 In the illustrated embodiment, by determining the target weight corresponding to the current data packet, a target signal strength mean is obtained by weighted summing based on the target weight and the historical signal strength mean, and power control of the opposite device is implemented based on the target signal strength mean. In this way, the target signal strength mean is calculated for each current data packet, which can improve the reaction speed of power control; at the same time, the target weight and the historical signal strength mean are introduced for calculation, which can avoid the problem of too frequent power adjustment and avoid causing excessive power loss. Therefore, the embodiment of the present application can not only ensure the reaction speed of power control, but also avoid causing more power loss.
[0116] For example, Figure 4 FIG. 1 shows a schematic diagram of the execution logic of a Bluetooth power control according to an embodiment of the present application. Figure 4As shown, after receiving the current data packet and determining the current signal strength corresponding to the current data packet, the terminal device first determines whether the current data packet is the first data packet. If so, the current signal strength corresponding to the current data packet is directly determined as the target signal strength mean. If the current data packet is not the first data packet, the target weight is determined according to the historical signal strength mean and the current signal strength. Then, the target signal strength mean is determined according to the historical signal strength mean, the current signal strength and the target weight. The terminal device determines whether the target signal strength mean exceeds the preset threshold. If so, a power adjustment request is sent to the opposite device to implement power control for the opposite device. If not, the next data packet is continued to be received, and the target signal strength mean is used as the historical signal strength mean of the next data packet, and the above process is repeated to determine whether the transmission power of the opposite device needs to be adjusted. In this way, the embodiment of the present application can avoid excessive power loss while ensuring a faster response speed to changes in signal strength.
[0117] Figure 5 This is a schematic diagram of the structure of a Bluetooth power control device provided in an embodiment of the present application. Figure 5 , the Bluetooth power control device 10 may include:
[0118] The receiving module 11 is used to receive a current data packet and determine a current signal strength corresponding to the current data packet;
[0119] A first determination module 12 is used to determine a target weight corresponding to the current signal strength according to the historical signal strength mean and the current signal strength when the current data packet is not the first data packet;
[0120] A second determination module 13 is used to determine a target signal strength mean value based on the current signal strength, the target weight and the historical signal strength mean value;
[0121] The sending module 14 is used to send a power adjustment request to the opposite device when the target signal strength average exceeds a preset threshold.
[0122] The Bluetooth power control device 10 provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0123] In a possible implementation, the first determining module 12 includes:
[0124] A first determination submodule, configured to obtain a historical signal strength average and determine a first signal strength difference between the current signal strength and the historical signal strength average;
[0125] The second determination submodule is used to determine a target weight corresponding to the current signal strength according to the first signal strength difference.
[0126] In a possible implementation manner, the second determining submodule is specifically configured to:
[0127] Determine a ratio of the first signal strength difference to a preset signal strength jump value;
[0128] Subtract the preset constant from the ratio to get the target weight.
[0129] In a possible implementation manner, the second determining submodule is specifically configured to:
[0130] Obtain a preset weight list; the preset weight list stores the corresponding relationship between the signal strength difference and the weight value;
[0131] According to the first signal strength difference, a weight value corresponding to the first signal strength difference is searched in a preset weight list to obtain a target weight.
[0132] In a possible implementation manner, the second determining module 13 is specifically configured to:
[0133] Based on the target weight, the current signal strength and the historical signal strength mean are weighted and summed to obtain the target signal strength mean; wherein the weight corresponding to the historical signal strength mean is the difference between the target weight and the preset constant.
[0134] In a possible implementation manner, the preset threshold includes a first preset threshold and a second preset threshold; The sending module 14 is specifically configured to:
[0135] When the target signal strength mean is greater than a first preset threshold, sending a power adjustment request to reduce the transmit power to the opposite end device;
[0136] When the target signal strength mean value is less than the second preset threshold, a power adjustment request for increasing the transmission power is sent to the opposite end device.
[0137] In a possible implementation manner, the device 10 is further used for:
[0138] Determine whether the current data packet is the first data packet;
[0139] When the current data packet is the first data packet, the current signal strength is determined as the target signal strength mean.
[0140] The Bluetooth power control device 10 provided in the embodiment of the present application can implement the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here. The Bluetooth power control device 10 can be specifically a chip, a chip module, etc., which is not limited in the embodiment of the present application.
[0141] Figure 6 This is a schematic diagram of the structure of a Bluetooth power control device provided in an embodiment of the present application. Figure 6 The Bluetooth power control device 20 may include: a memory 21 and a processor 22. Exemplarily, the memory 21 and the processor 22 are interconnected via a bus 23.
[0142] The memory 21 is used to store program instructions;
[0143] The processor 22 is used to execute the program instructions stored in the memory, so as to enable the processor to execute the Bluetooth power control method shown in the above embodiment.
[0144] Figure 6 The Bluetooth power control device shown in the embodiment can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0145] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the above-mentioned Bluetooth power control method.
[0146] The embodiment of the present application may also provide a computer program product, including a computer program, which, when executed by a processor, may implement the above-mentioned Bluetooth power control method.
[0147] An embodiment of the present application provides a chip having a computer program stored thereon. When the computer program is executed by the chip, the above-mentioned Bluetooth power control method can be implemented.
[0148] All or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions. The above-mentioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the above-mentioned memory (storage medium) includes: read-only memory (English: read-only memory, abbreviated: ROM), RAM, flash memory, hard disk, solid state drive, magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.
[0149] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0150] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0151] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0152] Regarding the various modules / units contained in the various devices and products described in the above embodiments, they may be software modules / units, or hardware modules / units, or they may be partially software modules / units and partially hardware modules / units. Each device and product may be applied to or integrated in a chip, a chip module or a terminal. Exemplarily, for each device and product applied to or integrated in a chip, each module / chip contained therein may be implemented in the form of hardware such as circuits, or at least some modules / units may be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining modules / units may be implemented in the form of hardware such as circuits.
[0153] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
[0154] In the present application, the term "include" and its variations may refer to non-restrictive inclusion; the term "or" and its variations may refer to "and / or". The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In the present application, "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship.
Claims
1. A Bluetooth power control method, It is characterized in that include: Receive a current data packet and determine a current signal strength corresponding to the current data packet; When the current data packet is not the first data packet, obtaining a historical signal strength average, and determining a first signal strength difference between the current signal strength and the historical signal strength average; Determine a ratio of the first signal strength difference to a preset signal strength jump value; Subtracting a preset constant from the ratio to obtain a target weight; Determine a target signal strength mean based on the current signal strength, the target weight, and the historical signal strength mean; When the target signal strength average exceeds a preset threshold, a power adjustment request is sent to the opposite device.
2. The method according to claim 1, It is characterized in that The determining the target signal strength mean based on the current signal strength, the target weight and the historical signal strength mean includes: Based on the target weight, the current signal strength and the historical signal strength mean are weighted and summed to obtain the target signal strength mean; wherein the weight corresponding to the historical signal strength mean is the difference between the target weight and a preset constant.
3. The method according to claim 1 or 2, It is characterized in that The preset threshold includes a first preset threshold and a second preset threshold; when the target signal strength average exceeds the preset threshold, sending a power adjustment request to the opposite device includes: When the target signal strength mean is greater than a first preset threshold, sending a power adjustment request to reduce the transmission power to the opposite end device; When the target signal strength mean value is less than the second preset threshold, a power adjustment request for increasing the transmission power is sent to the opposite end device.
4. The method according to claim 1 or 2, It is characterized in that The method further comprises: Determine whether the current data packet is the first data packet; In the case that the current data packet is the first data packet, the current signal strength is determined as the target signal strength mean.
5. A Bluetooth power control device, It is characterized in that include: A receiving module, used to receive a current data packet and determine a current signal strength corresponding to the current data packet; A first determination module, configured to obtain a historical signal strength average value and determine a first signal strength difference between the current signal strength and the historical signal strength average value when the current data packet is not the first data packet; Determine a ratio of the first signal strength difference to a preset signal strength jump value; Subtracting a preset constant from the ratio to obtain a target weight; A second determination module is used to determine a target signal strength mean based on the current signal strength, the target weight and the historical signal strength mean; The sending module is used to send a power adjustment request to the opposite device when the target signal strength average exceeds a preset threshold.
6. A Bluetooth power control device, It is characterized in that include: Processor, memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 4 when executed by a processor.
8. A computer program product, It is characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 4 when being executed by a processor.
9. A chip, It is characterized in that A computer program is stored on the chip, and when the computer program is executed by the chip, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Bluetooth power adjustment method and device, storage medium and terminal
CN111093259A
Signal processing method, communication device, chip and module equipment thereof
CN113890646A
Wireless transmitting power control method, system and device
CN114630408A