Search

CN-122028153-A - Electric quantity management method and system for Bluetooth equipment

CN122028153ACN 122028153 ACN122028153 ACN 122028153ACN-122028153-A

Abstract

The invention relates to the technical field of Bluetooth equipment electric quantity management, in particular to an electric quantity management method and system of Bluetooth equipment, comprising the steps of collecting a plurality of operation parameters of Bluetooth master equipment and slave equipment in a connection state, and calculating a link quality index which comprehensively reflects signal loss and interference according to the parameter set; the method comprises the steps of comparing an index with a preset threshold, dynamically adjusting a broadcasting interval of a master device and a scanning window of a slave device, simultaneously obtaining the residual capacity of a battery of the slave device and a task queue with a priority mark, and finally generating a personalized electric quantity distribution strategy for each slave device in a component period by combining the adjusted communication parameters, electric quantity states and task demands. The invention realizes the dynamic optimization of the link parameters according to the communication environment and the fine energy scheduling based on the battery state and the task priority, thereby effectively considering the connection stability and the equipment endurance in the complex wireless environment.

Inventors

  • CHEN HAIWEN
  • HE XIAOMEI
  • DONG YULONG
  • LIU ZHIYI

Assignees

  • 深圳市乾海芯联科技有限公司
  • 深圳市龙芯薇科技有限公司

Dates

Publication Date
20260512
Application Date
20260225

Claims (10)

  1. 1. A method for power management of a bluetooth device, the method comprising: Collecting an operation parameter set of a Bluetooth master device and at least one Bluetooth slave device in a connection state, wherein the operation parameter set comprises signal transmitting power of the master device, signal receiving strength of the slave device, data transmission rate between devices and error rate of a communication link; Calculating a link quality index of the current communication environment based on the operation parameter set, wherein the link quality index comprehensively reflects the influence of signal propagation loss and channel interference degree on the stability of Bluetooth connection; According to the comparison result of the link quality index and a preset quality threshold, dynamically adjusting the broadcasting interval period of the Bluetooth master device and the duration of the scanning window of the Bluetooth slave device; Acquiring the residual capacity percentage of a battery of the Bluetooth slave device and a preset task execution queue, wherein the task execution queue comprises Bluetooth operation instructions to be executed and priority marks of the instructions; And generating a time-sharing electric quantity allocation strategy for each Bluetooth slave device by combining the adjusted broadcasting interval period, the scanning window duration, the battery residual capacity percentage and the task execution queue.
  2. 2. The power management method of a bluetooth device according to claim 1, wherein calculating a link quality index of a current communication environment based on the set of operation parameters, comprises: Extracting the transmission power of the main equipment signal and the receiving intensity of the slave equipment signal from the operation parameter set, and calculating the difference value of the transmission power of the main equipment signal and the signal of the slave equipment as a path loss estimated value; analyzing the ratio of the data transmission rate to the nominal maximum rate to obtain a rate attenuation coefficient; Counting the times that the error rate of the communication link exceeds a specified threshold value in a preset time window, and generating the frequency of interference events; And inputting the path loss estimated value, the rate attenuation coefficient and the interference event frequency into a pre-constructed weighted evaluation model, and calculating the quantized link quality index.
  3. 3. The power management method of a bluetooth device according to claim 2, wherein dynamically adjusting a broadcast interval period of the bluetooth master device and a scan window duration of the bluetooth slave device according to a comparison result of the link quality index and a preset quality threshold value, comprises: setting a plurality of link quality index intervals, wherein each interval is associated with a group of preset broadcasting interval period parameters and scanning window duration parameters; Matching the calculated link quality index with the plurality of link quality index intervals, and determining a target interval to which the link quality index belongs; selecting a new broadcasting interval period from the broadcasting interval period parameters associated with the target interval; selecting a new scan window duration from the scan window duration parameters associated with the target interval; updating the current broadcasting interval period of the Bluetooth master device into the new broadcasting interval period; updating the current scanning window duration of the Bluetooth slave device to the new scanning window duration.
  4. 4. The power management method of a bluetooth device according to claim 3, wherein after obtaining the remaining battery capacity percentage of the bluetooth slave device and a preset task execution queue, further comprising preprocessing the task execution queue: analyzing each Bluetooth operation instruction in the task execution queue, identifying the instruction type and extracting the priority mark; Splitting the task execution queue into a high-priority instruction subset and a conventional priority instruction subset according to the type and the priority mark of the Bluetooth operation instruction; The units of energy consumption required to execute the subset of high priority instructions and the units of energy consumption required to execute the subset of normal priority instructions are estimated.
  5. 5. The power management method according to claim 4, wherein the generating a time-share power allocation policy for each bluetooth slave device in combination with the adjusted broadcast interval period, the scanning window duration, the percentage of remaining battery capacity, and the task execution queue includes: Dividing a future complete management period into a plurality of continuous time slices; Calculating the total budget of available energy based on the percentage of the remaining capacity of the battery and the preset total capacity of the battery; Distributing the instructions to specific time slices for execution according to the energy consumption estimated units of the high-priority instruction subsets and the conventional priority instruction subsets and the time dependency relationship of the instructions; For each time slice, calculating the expected energy consumption of the time slice according to the type of the instruction to be executed and combining the broadcasting interval period and the scanning window duration which are effective in the time slice; And matching the expected energy consumption of the time slices with the total available energy budget, and if the expected energy consumption exceeds the budget, adjusting the execution sequence of instructions in the subsequent time slices or modifying the duration of the scanning window to finally form the time-sharing electric quantity allocation strategy comprising the energy budget of each time slice and the instruction execution plan.
  6. 6. The method of power management for a bluetooth device according to claim 5, further comprising generating a supplemental power harvesting instruction after matching the expected energy consumption of the time slice with the total available energy budget: generating an idle time period when the expected energy consumption sum of all time slices in the time-division electric quantity allocation strategy is smaller than a specific proportion of the total available energy budget; In the idle time period, issuing a low-power consumption environment parameter acquisition instruction to the Bluetooth slave device, wherein the low-power consumption environment parameter acquisition instruction is used for acquiring sensor data in the device except communication, and the execution energy consumption of the low-power consumption environment parameter acquisition instruction is lower than a preset threshold; And inserting the low-power consumption environment parameter acquisition instruction into a corresponding idle time period of the time-division electric quantity distribution strategy.
  7. 7. The method of power management for a bluetooth device according to claim 6, further comprising dynamically modifying based on actual energy consumption feedback during execution of the time-lapse power allocation policy: After each time slice of executing the time-sharing electric quantity distribution strategy is finished, acquiring an actual energy consumption value and a battery voltage variation of the Bluetooth slave device; Comparing the actual energy consumption value of the time slice with the expected energy consumption of the time slice in the strategy, and calculating the energy consumption deviation rate; If the energy consumption deviation rate continuously exceeds the allowable deviation range, updating an energy consumption estimated unit under the same type of instruction or the same parameter configuration by using the actual energy consumption value; And re-calculating and adjusting the time-sharing electric quantity distribution strategy of the time slice which is not executed by utilizing the updated energy consumption estimated unit.
  8. 8. The power management method according to claim 7, wherein updating the estimated unit of energy consumption under the same kind of instruction or same parameter configuration using the actual energy consumption value, comprises: Recording the type of the instruction executed in the time slice generating the energy consumption deviation rate and the specific numerical values of the effective broadcasting interval period and the duration of the scanning window to form an energy consumption correction record; Collecting a plurality of energy consumption correction records, and performing classified aggregation according to instruction types and parameter configuration; for each type of combination of instruction and parameter configuration, calculating the average value of the actual energy consumption values in all records of the combination, and taking the average value as a new energy consumption estimation unit; And replacing the original data with a new energy consumption estimation unit for subsequent strategy generation and correction.
  9. 9. The power management method of a bluetooth device according to claim 8, further comprising performing cooperative power saving management on the bluetooth master device side: monitoring battery states reported by all connected Bluetooth slave devices and the executing time-sharing electric quantity allocation strategy; Predicting a time point when a plurality of Bluetooth slave devices initiate high-energy communication requests simultaneously in a future period of time; For the predicted time point of simultaneously initiating the high-energy consumption communication request, actively coordinating by the Bluetooth master device, and carrying out peak-shifting scheduling on the high-energy consumption communication request in time by adjusting the communication time sequence of part of slave devices so as to avoid that a plurality of slave devices are in a high-power consumption state in the same time slice; The active coordination by the bluetooth master device for the predicted time point of the simultaneous initiation of the high-energy communication request includes: the Bluetooth master device analyzes the time-period electric quantity distribution strategy of all the slave devices and finds out a time period scheduled to carry out large data quantity transmission or continuous signal scanning; If the high-energy time-consuming time periods of two or more slave devices are found to be overlapped, the Bluetooth master device sends a time sequence adjustment request to part of the slave devices related to the overlapped time periods; The time sequence adjustment request comprises a suggested new execution time window, and the new execution time window is comprehensively calculated by the Bluetooth master device according to the task priority and the battery state of each slave device; the Bluetooth slave device receiving the time sequence adjustment request decides whether to adopt the new execution time window according to the situation of the Bluetooth slave device and feeds back the decision result to the Bluetooth master device; And the Bluetooth master device updates the device cooperation schedule in the Bluetooth master device according to the received feedback.
  10. 10. A power management system for a bluetooth device, comprising a memory, a processor and a computer program stored in the memory and running on the processor, characterized in that the processor, when executing the computer program, realizes the steps of a power management method for a bluetooth device according to any of the preceding claims 1 to 9.

Description

Electric quantity management method and system for Bluetooth equipment Technical Field The invention relates to the technical field of electric quantity management of Bluetooth equipment, in particular to an electric quantity management method and system of Bluetooth equipment. Background Conventional bluetooth devices, particularly in low-power bluetooth networks composed of master and slave devices, often have a relatively simple power management strategy. Most methods rely on a single parameter, the received signal strength indication, to determine the connection condition and adjust the device duty cycle based on fixed thresholds or empirical rules, such as extending the broadcast interval or going into deep sleep. Other schemes focus on the battery power level of the device itself, and when the power is lower than a specific value, the communication frequency or the functional performance of the device is uniformly reduced to prolong the endurance. These methods form the basic practice of current bluetooth device power saving designs. The prior art solutions described above have drawbacks. Depending on a single signal strength parameter, the dynamically changing communication environment cannot be comprehensively reflected, so that an adjustment strategy may be misaligned, or necessary connection stability is sacrificed, or unnecessary waste of electric quantity is caused. Meanwhile, the actual requirements of the tasks to be executed by the equipment are completely ignored only based on rough management of the residual electric quantity, and the equipment cannot respond in time because the electric quantity management strategy enters a low-power-consumption state when the tasks with high priority are needed to be executed, or unnecessary power consumption limitation is still executed when the electric quantity is sufficient, so that the user experience and the system efficiency are affected. There is a need for a method that can more finely and intelligently manage the power of bluetooth devices. The method should be able to comprehensively evaluate multiple environmental factors affecting connection stability and dynamically optimize communication behavior based thereon. According to the method, task scheduling logic is integrated in a power saving design, so that electric quantity distribution can be matched with the work content required to be completed by equipment and the importance of the work content, and the whole energy consumption is minimized on the premise of ensuring reliable execution of a key task. Disclosure of Invention The invention aims to solve the defects in the prior art, and provides a power management method and a power management system for Bluetooth equipment. In order to achieve the purpose, the invention adopts the following technical scheme that the electric quantity management method of the Bluetooth equipment comprises the following steps: Collecting an operation parameter set of a Bluetooth master device and at least one Bluetooth slave device in a connection state, wherein the operation parameter set comprises signal transmitting power of the master device, signal receiving strength of the slave device, data transmission rate between devices and error rate of a communication link; Calculating a link quality index of the current communication environment based on the operation parameter set, wherein the link quality index comprehensively reflects the influence of signal propagation loss and channel interference degree on the stability of Bluetooth connection; According to the comparison result of the link quality index and a preset quality threshold, dynamically adjusting the broadcasting interval period of the Bluetooth master device and the duration of the scanning window of the Bluetooth slave device; Acquiring the residual capacity percentage of a battery of the Bluetooth slave device and a preset task execution queue, wherein the task execution queue comprises Bluetooth operation instructions to be executed and priority marks of the instructions; And generating a time-sharing electric quantity allocation strategy for each Bluetooth slave device by combining the adjusted broadcasting interval period, the scanning window duration, the battery residual capacity percentage and the task execution queue. As a further aspect of the present invention, calculating a link quality index of a current communication environment based on the set of operation parameters includes: Extracting the transmission power of the main equipment signal and the receiving intensity of the slave equipment signal from the operation parameter set, and calculating the difference value of the transmission power of the main equipment signal and the signal of the slave equipment as a path loss estimated value; analyzing the ratio of the data transmission rate to the nominal maximum rate to obtain a rate attenuation coefficient; Counting the times that the error rate of the communication link exceeds