WO2023185213A1 - Bluetooth power adjustment method, and terminal device and storage medium - Google Patents

Bluetooth power adjustment method, and terminal device and storage medium Download PDF

Info

Publication number
WO2023185213A1
WO2023185213A1 PCT/CN2023/071885 CN2023071885W WO2023185213A1 WO 2023185213 A1 WO2023185213 A1 WO 2023185213A1 CN 2023071885 W CN2023071885 W CN 2023071885W WO 2023185213 A1 WO2023185213 A1 WO 2023185213A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
terminal device
bluetooth protocol
protocol
target
Prior art date
Application number
PCT/CN2023/071885
Other languages
French (fr)
Chinese (zh)
Inventor
潘静雅
王志明
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023185213A1 publication Critical patent/WO2023185213A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/0413MIMO systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present disclosure relates to the technical field of application development, and specifically, to a Bluetooth power adjustment method, terminal equipment and storage medium.
  • Bluetooth technology is an open global specification for wireless data and voice communications. It is a special short-range wireless technology connection that establishes a communication environment for fixed and mobile devices based on low-cost short-range wireless connections.
  • Bluetooth technology is applicable to many devices, does not require cables, and allows computers and telecommunications to communicate wirelessly.
  • Bluetooth technology products are easy to use. You can use a Bluetooth device to search for another Bluetooth technology product, quickly establish a connection between the two devices, and automatically transmit data under the control of the control software.
  • Bluetooth technology has strong security and anti-interference capabilities. Because Bluetooth technology has a frequency hopping function, it effectively avoids interference sources in the ISM band. Bluetooth technology has better compatibility and shorter transmission distance.
  • the main working range of related Bluetooth technology is about 10 meters. After increasing the radio frequency power, Bluetooth technology can work within a range of 100 meters. Only in this way can the working quality and efficiency of Bluetooth transmission be guaranteed and the transmission speed of Bluetooth be improved. In addition, during the Bluetooth technology connection process, the interference between the technology and other electronic products can be effectively reduced, thereby ensuring that Bluetooth technology can operate normally.
  • Bluetooth technology not only has high propagation quality and efficiency, but also has high propagation security characteristics.
  • Embodiments of the present disclosure provide a Bluetooth power adjustment method, terminal equipment, and storage media.
  • a Bluetooth power adjustment method is provided, which is suitable for terminal equipment.
  • the terminal equipment is configured with at least one Bluetooth protocol and transmission parameters corresponding to each of the Bluetooth protocols; the adjustment The method includes: obtaining the current working parameters of the access device and the terminal device; wherein the access device is a device that establishes Bluetooth communication with the terminal device; according to the current working parameters, from at least one Bluetooth protocol, And select a target Bluetooth protocol and target transmission parameters from the corresponding transmission parameters of each Bluetooth protocol; and the terminal device and the access device perform Bluetooth communication according to the target Bluetooth protocol and the target transmission parameters.
  • a terminal device is also provided, the terminal device is configured with at least one Bluetooth protocol, and the corresponding transmission parameters of each Bluetooth protocol; the terminal device is used to obtain the current working parameters of the access device and the terminal device; wherein the access device is the same as the terminal device A device that establishes Bluetooth communication; selects a target Bluetooth protocol and target transmission parameters from at least one Bluetooth protocol and corresponding transmission parameters of each Bluetooth protocol according to the current working parameters; the terminal device and the The access device performs Bluetooth communication according to the target Bluetooth protocol and the target transmission parameters.
  • a storage medium is also provided, and a computer program is stored in the storage medium, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
  • Figure 1 is a hardware structure block diagram of a mobile terminal provided according to an embodiment of the present disclosure
  • Figure 2 is a schematic structural diagram of a terminal device with Bluetooth MIMO function provided according to an embodiment of the present disclosure
  • Figure 3 is a schematic flowchart of a Bluetooth power adjustment method provided according to an embodiment of the present disclosure
  • Figure 4 is a flow chart of a method for automatically adjusting Bluetooth power according to an embodiment of the present disclosure
  • Figure 5 is a flow chart of a method for manual adjustment of Bluetooth power according to an embodiment of the present disclosure.
  • Figure 6 is a structural block diagram of a Bluetooth power adjustment device according to an embodiment of the present disclosure.
  • FIG. 1 is a hardware structure block diagram of a mobile terminal to which a Bluetooth power adjustment method according to an embodiment of the present disclosure is applied.
  • the mobile terminal may include one or more (only one is shown in FIG. 1) processors 102 (the processor 102 may include but is not limited to a microprocessor MCU or may Programming logic device (FPGA, etc.) and a memory 104 for storing data.
  • processors 102 the processor 102 may include but is not limited to a microprocessor MCU or may Programming logic device (FPGA, etc.) and a memory 104 for storing data.
  • the above-mentioned mobile terminal may also include a transmission device 106 and an input and output device 108 for communication functions.
  • a transmission device 106 may also include a transmission device 106 and an input and output device 108 for communication functions.
  • the structure shown in Figure 1 is only illustrative, and it does not limit the structure of the above-mentioned mobile terminal.
  • the mobile terminal may also include more or fewer components than shown in FIG. 1 , or have a different configuration than shown in FIG. 1 .
  • the memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the Bluetooth power adjustment method in the embodiment of the present disclosure.
  • the processor 102 executes the computer program by running the computer program stored in the memory 104.
  • Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 104 may further include memory located remotely relative to the processor 102, and these remote memories may be connected to the mobile terminal 10 through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
  • the transmission device 106 is used to receive or send data via a network.
  • the above-mentioned network examples may include a wireless network provided by a communication provider of the mobile terminal 10 .
  • the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet wirelessly.
  • NIC Network Interface Controller
  • the Bluetooth power adjustment method provided by the embodiment of the present disclosure can be run on a terminal device.
  • the terminal device is configured with a Bluetooth module.
  • the Bluetooth module consists of a wireless transceiver (RF), a baseband controller (BB) of the Bluetooth protocol stack. ) and link management layer (LMP), in which the wireless transceiver is configured with an antenna port.
  • RF wireless transceiver
  • BB baseband controller
  • LMP link management layer
  • SOC System-On-Chip
  • CPU central processing unit
  • RF wireless transceiver
  • BB baseband controller
  • SRAM static random access memory
  • Flash memory flash program memory
  • USB universal asynchronous receiver-receiver
  • USB universal serial It is composed of interface (USB), voice coder/decoder (CODEC) and Bluetooth test module.
  • a terminal device can only connect to one access device for Bluetooth communication.
  • Bluetooth MIMO multiple-in multipleout, multiple-in, multiple-out
  • the device can communicate via Bluetooth with multiple access devices.
  • the embodiment of the present disclosure mainly uses a set of baseband controller (BB) + multiple sets of wireless transceivers (RF) +Multiple antenna ports.
  • At least two groups of wireless transceivers are connected to the baseband controller; and each group of wireless transceivers is connected to a wireless port in one-to-one correspondence; where different groups of wireless transceivers and wireless ports are used to establish a connection between terminal equipment and different access devices.
  • Bluetooth connection between; and the terminal device through each set of wireless transceivers infrared and antenna When the line port performs Bluetooth communication with each access device, it selects the Bluetooth protocol and the transmission parameters corresponding to the Bluetooth protocol from at least one Bluetooth protocol and the transmission parameters corresponding to each Bluetooth protocol to work.
  • the audio sharing part multiple audio circuits can be designed to complete the functions of the sharing part.
  • the audio circuits can be set in one-to-one correspondence with the wireless transceiver.
  • the selection and layout are based on the actual number of channels used. The layout and antenna design will not be described in detail here.
  • Bluetooth MIMO technology can be implemented.
  • MIMO technology refers to a technology that can exponentially increase the capacity and spectrum utilization of communication systems without increasing bandwidth.
  • MIMO technology can be defined as the existence of multiple independent channels between the transmitter and the receiver, which means that there is sufficient spacing between antenna units. Therefore, the correlation of signals between antennas is eliminated, the link performance of the signal is improved, and the data throughput.
  • WIFI MIMO technology Bluetooth MIMO technology can also achieve the same link design.
  • multi-antenna technology can also be used to increase channel capacity.
  • a channel to transmit or receive at the same time there is no need to fix or specify a channel to transmit or receive at the same time.
  • Choosing a certain channel as the transmitting working state or the receiving working state mainly depends on the user's working scenario of using Bluetooth and the status of the antenna. , the power consumption of terminal equipment, etc.
  • corresponding diversity methods can also be used in the wireless system according to different transmission channel types.
  • the main related diversity methods include: time diversity (different time slots and channel coding), frequency diversity (different channels, spreading and OFDM), and space diversity.
  • Multi-antenna systems utilize spatial methods, and MIMO, as a typical multi-antenna system, can significantly increase the transmission rate.
  • the Bluetooth solution uses multiple transceiver modes to work together or in combination.
  • one or more transceiver modes are enabled according to the status and number of access devices to perform multi-application allocation operations.
  • SISO simple input simple output
  • multiple transceiver modes can be enabled. Enable MIMO mode to share task content and threads, increasing Bluetooth throughput and user experience.
  • the number of access devices and the throughput rate are increased, and different types of Bluetooth devices can be connected in different categories.
  • different Bluetooth channels so that each function will not interfere with each other and can operate normally; at the same time, in the selection of transceiver methods, there is no need to fix or specify a channel to transmit or receive at the same time, and the channel function selection method is completely free. This enhances the overall user experience.
  • users use terminal equipment if the antenna is blocked or fails, they can also switch to other channels to ensure that the efficiency of the antenna will not cause disconnection or noise or intermittent sound during use. Wait for phenomena that affect user experience to occur.
  • Embodiments of the present disclosure also provide a Bluetooth power adjustment method.
  • the Bluetooth power adjustment method can be applied to the above-mentioned terminal device.
  • the terminal device is configured with at least one Bluetooth protocol and corresponding transmission parameters for each Bluetooth protocol. ;
  • the transmission parameters at least include: at least one transmission level, and at least one transmission power corresponding to each transmission level.
  • the terminal device is configured with: at least two Bluetooth protocols, the transmission levels corresponding to each Bluetooth protocol are greater than or equal to 2, and the transmission power corresponding to each transmission level is greater than or equal to 2.
  • At least one Bluetooth protocol and the corresponding transmission parameters of each Bluetooth protocol can be configured in the storage module of the terminal device, or can be configured in the microprocessor, baseband controller or at least two sets of wireless transceivers of the terminal device. in the server; it can also be configured in the terminal device in the form of a hardware configuration file, which is not limited here.
  • the embodiment of the present disclosure takes a hardware configuration file as an example for description.
  • the hardware configuration file includes: Bluetooth chip channel activation status, Bluetooth chip power settings, Bluetooth protocol mode settings, Bluetooth receiving RSSI parameter settings, and other settings of the Bluetooth chip; the embodiments of this disclosure focus on: the Bluetooth chip channel Activation status, Bluetooth chip’s transmission power and transmission level settings, and Bluetooth chip’s protocol mode settings. Among them, the most important thing to pay attention to is the transmission power and transmission level settings of the Bluetooth chip, and the protocol mode setting of the Bluetooth chip.
  • the transmission format and transmission power of relevant Bluetooth chips are in one-to-one correspondence.
  • the power levels of traditional Bluetooth technology are divided into Class1, Class2, and Class3.
  • the power of each level is different. Although there are overlaps, the intervals are different. to ensure that its test indicators can meet relevant requirements.
  • the transmission power configured for different transmission levels is unchanged, and it maintains one channel and is unique.
  • the transmission power configured for each Bluetooth protocol is not unique, but is configured in an array mode, based on the calling requirements and whether Bluetooth is enabled. MIMO, adjust the transmission level, extract the corresponding transmission power value, and map it to the Bluetooth chip transmission format configuration. This can make the transmission power configuration in each transmission format selectable, providing both automatic and manual setting adjustments for subsequent The implementation of this model provides an important foundation.
  • the hardware configuration file mainly focuses on parameters such as Bluetooth protocol version, transmission power, and transmission level.
  • parameters such as Bluetooth protocol version, transmission power, and transmission level.
  • transmission power corresponding to each transmission level is also a set of values, not a unique value.
  • Bluetooth protocol version A there are three Bluetooth protocol versions: Bluetooth protocol version A, Bluetooth protocol version B and Bluetooth protocol version C.
  • each Bluetooth protocol version has three emission levels, each The emission levels have different transmission power ranges. Within the respective transmission power ranges, the transmission power range can be divided into a set of values at preset power intervals, such as 1dBm. Each value in the set of values can be used as Transmit power.
  • Table 1 shows the correspondence between parameters such as Bluetooth protocol version A, transmission level, and transmission power.
  • Bluetooth protocol version A please refer to Bluetooth protocol version A.
  • the beginning and end numbers of the transmission power array corresponding to each transmission level are pre-configured, and the power interval is set to determine the available transmission power.
  • the hardware configuration file can also include: emission level calibration parameters corresponding to each Bluetooth protocol version. The main function of this parameter is to determine which emission level the circuit is configured at, and what the amplification level is.
  • the emission level calibration parameters are also an array.
  • the appropriate transmission power and transmission level calibration parameters can be selected according to the actual situation, so that the transmission parameters can be flexibly adjusted and optimized to reduce the internal transmission current and release some resources to reduce the power consumption of the entire terminal equipment. Purpose.
  • the Bluetooth power adjustment method is suitable for terminal equipment.
  • the terminal equipment is configured with at least one Bluetooth protocol and corresponding transmission parameters for each Bluetooth protocol.
  • the Bluetooth power adjustment method includes the following steps.
  • Step 301 Obtain the current working parameters of the access device and the terminal device; where the access device is a device that establishes Bluetooth communication with the terminal device.
  • the working parameters mainly include two categories: hardware-side indicator parameter values and software-side indicator parameter values.
  • the function of the hardware side indicators is to analyze and judge the hardware indicators of the terminal equipment that is responsible for the connection function using traditional Bluetooth technology.
  • the main indicators on the hardware side include bit error rate, EVM (Error Vector Magnitude), reception Sensitivity, throughput rate, etc.
  • the reference standard tables are documents related to indicator thresholds in 3GPP and BT SIG alliance standards.
  • the standard table can be stored in the memory of the terminal device or in the microprocessor in advance.
  • the standard table stores the above Standard preset threshold values for each indicator.
  • the standard table is directly called for analysis and judgment, so that the target Bluetooth protocol and target transmission parameters can be selected based on the judgment results.
  • the main function is to analyze and judge the relevant indicators and request application types reported by the access device paired with the terminal device Bluetooth.
  • the indicators include: receiving sensitivity, throughput rate, bit error rate, request application Type, MIMO antenna status, traffic statistics, etc.
  • the request application type mainly includes: data transmission, audio sharing, multi-device connection, separate transmission and other interactive types.
  • the reference standard tables are documents related to indicator thresholds in the 3GPP and BT SIG protocols.
  • the standard tables are pre-stored in the memory of the terminal device or in the microprocessor.
  • the standard tables store the standard preset thresholds for each of the above indicators. limit.
  • the working status of the access equipment and terminal equipment is determined, and the judgment results are obtained. Based on the judgment results, it is determined which Bluetooth protocol and transmission parameters are selected for subsequent development. Do the work.
  • Step 302 Select the target Bluetooth protocol and the target transmission parameters from at least one Bluetooth protocol and the corresponding transmission parameters of each Bluetooth protocol according to the current working parameters.
  • Step 303 The terminal device and the access device conduct Bluetooth communication according to the target Bluetooth protocol and target transmission parameters.
  • the terminal device works in the Bluetooth multiple-input multiple-output MIMO mode and the terminal device communicates with multiple access devices via Bluetooth
  • the current working parameters of the access device and terminal device are obtained; according to the current
  • the working parameters include selecting the target Bluetooth protocol and the target transmission parameters from at least one Bluetooth protocol and the corresponding transmission parameters of each Bluetooth protocol; the terminal device and the access device conduct Bluetooth communication according to the target Bluetooth protocol and the target transmission parameters.
  • the target Bluetooth protocol and target transmission parameters used for Bluetooth communication between different access devices and terminal devices may be the same or different.
  • a terminal device uses MIMO technology to implement a Bluetooth module, multiple devices can be accessed and work together, and at the same time, the power consumption of the overall terminal device can be reduced.
  • the first adjustment method is automatic setting adjustment.
  • the automatic setting adjustment part is responsible for adjusting the transmission parameters and hardware status (transmitting working status or receiving working status) in the hardware configuration file in real time based on the above judgment results when the traditional Bluetooth pairing of the terminal device is turned on, and configuring the hardware circuit part. And maintain the optimized parameters and hardware status in the hardware configuration file, while counting the data traffic used by the access device. Once the set conditions and thresholds are exceeded, the alarm mechanism is activated and the Bluetooth transmission work or other programs are ended. On the interface of the terminal device Display information and wait for the user's next action.
  • the access device when it establishes Bluetooth communication with the terminal device, it can perform Bluetooth communication according to the initial Bluetooth protocol and initial transmission parameters.
  • the Bluetooth transmission format and Bluetooth transmission parameters with relatively small power consumption can be used to reduce power consumption in the early stage of operation.
  • the access device and the terminal device after the access device and the terminal device are paired, the number of access devices connected to the terminal device via Bluetooth can also be counted, and the initial Bluetooth protocol and initial transmission parameters can be determined based on the number of access devices. If the number of accessed devices is relatively small, for example, less than the preset number, you can select the appropriate initial Bluetooth protocol and initial transmission parameters when the traffic is relatively small. If the number is relatively large (greater than or equal to the preset number), in order to ensure Bluetooth communication performance, you can choose larger traffic The initial Bluetooth protocol and initial transmission parameters are suitable for the case.
  • the terminal device and the access device conduct Bluetooth communication according to the initial Bluetooth protocol and initial transmission parameters. That is, after the access device successfully connects to the terminal device, the access device can communicate according to the actual current working parameters of the access device, such as: request application type, traffic estimation and Receiving status and other parameters determine the working status of access equipment and terminal equipment to enable the optimization of the number of radio frequency channels in the hardware configuration file, optimize the corresponding transmission protocol selection, power level, transmission power configuration, etc., and maintain the optimized parameters in the hardware configuration file. , and at the same time collect statistics on the traffic used by the access device.
  • the actual current working parameters of the access device such as: request application type, traffic estimation and Receiving status and other parameters determine the working status of access equipment and terminal equipment to enable the optimization of the number of radio frequency channels in the hardware configuration file, optimize the corresponding transmission protocol selection, power level, transmission power configuration, etc., and maintain the optimized parameters in the hardware configuration file.
  • the received signal power can be determined based on the stable received signal.
  • Power value from the hardware configuration file, determine the corresponding target Bluetooth protocol, target transmit power level, and target transmit power. According to the current working parameters, it is determined that the working status between the access device and the terminal device has changed, and the corresponding target Bluetooth protocol, target transmission power level, and target transmission power are determined from the hardware configuration file according to the changed working status. For example: If the traffic suddenly increases, you can choose to switch to the Bluetooth protocol with larger traffic and the corresponding transmission level, transmission power and other parameters.
  • the second adjustment method is manual setting adjustment.
  • the overall idea of manual setting adjustment is: the user manually configures the Bluetooth working information of the terminal device through the Bluetooth connection setting APP pre-installed in the terminal device based on the actual situation and usage scenarios of traditional Bluetooth. After the configuration is completed, the Bluetooth pairing is opened, and based on judgment As a result, the transmission parameters and hardware status in the hardware configuration file module are adjusted, the hardware circuit part is configured, and the optimized parameters in the hardware configuration file are maintained. At the same time, the traffic used by the access device is counted. Once the set conditions and thresholds are exceeded, an alarm is initiated. mechanism to end the Bluetooth connection work or other programs, display information on the terminal interface, and wait for the user's next operation.
  • the user can select the Bluetooth working mode according to the actual situation.
  • the initial Bluetooth working mode is determined from at least one Bluetooth working mode; the designated Bluetooth protocol and the matching initial Bluetooth working mode are determined. Specify the transmission parameters; use the specified Bluetooth protocol as the initial Bluetooth protocol, and use the specified transmission parameters as the initial transmission parameters.
  • the terminal device and the access device conduct Bluetooth communication according to the initial Bluetooth protocol and initial transmission parameters.
  • the second selection operation input by the user can be obtained, and in response to the second selection operation, the initial Bluetooth working mode is determined from at least one Bluetooth working mode.
  • Bluetooth working modes include: single device connection mode and multi-device connection mode. These two modes are respectively set to use a large data traffic mode (such as WIFI sharing hotspot, etc.), and a medium data traffic mode (such as voice navigation, car Bluetooth devices, etc.). Listening to music, etc.), using low data traffic mode (such as listening to music with headphones, making and receiving calls, monitoring whether there are calls on the mobile phone, etc.), a total of 6 Bluetooth working modes.
  • a large data traffic mode such as WIFI sharing hotspot, etc.
  • a medium data traffic mode such as voice navigation, car Bluetooth devices, etc.
  • Listening to music, etc. using low data traffic mode (such as listening to music with headphones, making and receiving calls, monitoring whether there are calls on the mobile phone, etc.), a total of 6 Bluetooth working modes.
  • the user knows that there are two access devices to establish Bluetooth communication with the terminal device, one for listening to music, If one is used to transmit data, and the data traffic is not particularly large, you can choose multi-device connection - medium data traffic mode from the many Bluetooth working modes.
  • the corresponding Bluetooth working parameters can be configured in advance for each Bluetooth working mode.
  • the initial Bluetooth protocol and initial transmission parameters corresponding to the multi-device connection-medium data traffic mode can be determined. .
  • the working status of the access device and the terminal device can be determined based on the actual current working parameters of the access device to enable the optimized number of radio frequency channels in the hardware configuration file.
  • Optimize the corresponding transmission protocol selection, power level, and transmission power configuration maintain the optimized parameters in the hardware configuration file, and collect statistics on the traffic used by the access device.
  • the working status of the access device and the terminal device is determined based on the current working parameters. If it is determined that the current Bluetooth protocol and transmission parameters are no longer suitable for the current working status and it is necessary to optimize the Bluetooth working parameters, from at least one In the Bluetooth working mode, select the target Bluetooth working mode; select the target Bluetooth protocol and target transmission parameters corresponding to the target Bluetooth working mode, and continue working with the target Bluetooth protocol and target transmission parameters.
  • a change operation prompt can be output on the display module of the terminal device to remind the user to change the current Bluetooth working mode.
  • modify Bluetooth working parameters Obtain the first selection operation of the input; in response to the first selection operation, select the target Bluetooth working mode from at least one Bluetooth working mode, select the target Bluetooth protocol and target transmission parameters corresponding to the target Bluetooth working mode, and use the target Bluetooth protocol and Target launch parameters continue to work.
  • the working status of the access device and terminal device will be monitored and the status will be updated in real time.
  • the paired device changes due to the receiving status, or the feedback request protocol changes and the traffic of the application used increases, , or when the hardware environment conditions of the two devices change, it will be enabled again to optimize the number of radio frequency channels, optimize the corresponding transmission protocol selection, power level, and transmission power configuration, and maintain the optimized parameters in the hardware configuration file, while counting access The traffic used by the device.
  • the connection duration, traffic usage, and power consumption of the terminal device between the access device and the terminal device are counted, and the preset connection duration, Preset traffic upper limit and preset power consumption; if the preset conditions are met, disconnect the Bluetooth communication between the access device and the terminal device, and save the current Bluetooth protocol and current transmission parameters used by the access device and the terminal device; preset
  • the conditions include at least one of the following conditions: the connection duration exceeds the preset connection duration; the traffic usage exceeds the preset traffic limit; the power consumption of the terminal device exceeds the preset power consumption; the power consumption of the terminal device exceeds the preset power consumption for a period of time Exceeded the preset time.
  • different preset power consumption can be set according to different Bluetooth protocols.
  • one of the conditions can be met, that is, the connection is disconnected, or at least two or three of them can be met, or the connection can be disconnected only when all conditions are met.
  • the method further includes: obtaining an unlocking password; wherein , the unlocking password is used to reactivate the Bluetooth communication between the terminal device and the access device; and if the unlocking password is consistent with the preset unlocking password, the access device and the terminal device continue Bluetooth communication according to the current Bluetooth protocol and current transmission parameters. .
  • the unlocking password can be input by the user after disconnecting the Bluetooth connection between the terminal device and the access device. If the unlocking password is verified, the Bluetooth communication between the terminal device and the access device can be continued.
  • the access device uses the Bluetooth connection function, resulting in the terminal device being at the maximum limit in the protocol for a long time.
  • the system software starts the alarm mode, forces the access device to disconnect, and sets Bluetooth to be invisible, ends the Bluetooth pairing of the access device and the terminal device, and saves the relevant Bluetooth configuration at the last moment. If the access device still wants to pair with the Bluetooth of this terminal device, it needs to reset the Bluetooth of this terminal device, or enter a specially designed password in the system dialing interface to unlock and clear the relevant data.
  • an automatic setting adjustment method provided by an embodiment of the present disclosure mainly includes the following three steps.
  • Step 1 Open the Bluetooth connection setting interface in the interface settings of the terminal device, and set the Bluetooth MIMO mode selection, Bluetooth connection name, PIN code and other relevant upper-layer information. Based on the determination of the transmitting status and receiving status of the terminal device, The initial transmission level, protocol type and transmission power configuration predetermined in the hardware configuration file are enabled, and the Bluetooth connection function of the terminal device is turned on.
  • the second step is to wait for other devices to pair with the Bluetooth of the terminal device. If no other device is paired with the Bluetooth of the terminal device, close the Bluetooth connection setting option and display relevant information on the interface to remind the user that the Bluetooth connection has been closed. If The existing device is paired with the Bluetooth of the terminal device.
  • the hardware configuration file is enabled to optimize the number of radio frequency channels and optimize the corresponding transmission protocol. Select, power level, transmit power configuration, and maintain the optimized parameters in the hardware configuration file, while counting the traffic used by the access device.
  • the third step is to monitor the Bluetooth working status of the access device and the paired device, and update the working status in real time.
  • the paired device changes the receiving status, or the feedback request protocol changes and the traffic of the application used increases, or two mobile terminals If the hardware environment conditions change, re-enable the optimized number of radio frequency channels in the hardware configuration file, optimize the corresponding transmission protocol selection, power level, and transmission power configuration, and maintain the optimized parameters in the hardware configuration file, while counting the traffic used by the access device.
  • connection function causes the terminal device to be in the maximum power generation state in the protocol for a long time.
  • the system software starts the alarm mode, forces the access device and the terminal device to disconnect the Bluetooth connection, and sets Bluetooth to be invisible, ending the communication between the access device and the terminal device.
  • Bluetooth pairing save the last moment Bluetooth related configuration. If the access device still wants to pair with the Bluetooth of this terminal device, you need to reset the Bluetooth of this terminal device, or enter a specially designed password in the system dialing interface to unlock and clear the relevant data, and continue to the second step.
  • the implementation of the manual setting adjustment method is described in conjunction with Figure 5.
  • the implementation of this method is based on the user side.
  • the user configures the Bluetooth working status of the terminal device, it can be based on the Bluetooth working status and working status. , select the status of Bluetooth and establish it by yourself, which can complete good human-computer interaction.
  • the first step is to open the Bluetooth connection setting APP interface, select the Bluetooth MIMO mode, set the name of the Bluetooth connection, PIN code and other related upper-layer information, and set the connection time limit and traffic limit.
  • users need to choose the following modes according to the Bluetooth usage of the terminal device or the use of Bluetooth with the paired device: using a large data traffic mode (such as WIFI shared hotspot, etc.), using a medium data traffic mode (such as voice navigation, car Listening to music on Bluetooth devices, etc.), using low data traffic mode (such as listening to music with headphones, making and receiving calls, monitoring whether there are calls on the mobile phone, etc.), whether using multi-device connection sharing mode (such as multiple sets of headphones to listen to music together, one set of headphones to listen to music together, etc.) Device navigation, listening to music on another set of devices, etc.).
  • a large data traffic mode such as WIFI shared hotspot, etc.
  • a medium data traffic mode such as voice navigation, car Listening to music on Bluetooth devices, etc.
  • the second step is to wait for Bluetooth pairing between other devices and the terminal device. If no device is currently paired with the terminal device, turn off the Bluetooth setting option and report information to the interface to remind the user that the Bluetooth hotspot has been turned off. If there is already a device paired with the terminal device, For Bluetooth pairing of terminal devices, according to the manually set relevant conditions, the relevant situations in each mode are first matched and grouped with the optimized corresponding configurations in the hardware configuration file, and then the reception status of the access device and the status of the terminal device are determined. Enable the optimization of the corresponding transmission protocol selection, power level, and transmission power configuration in the hardware configuration file, maintain the optimization parameters in the hardware configuration file, and collect statistics on the traffic used by the access device.
  • the third step is to monitor the working status of the access device and the connected Bluetooth device, and update the status in real time.
  • the Bluetooth paired device changes in the receiving status, or the feedback request protocol type is modified and the traffic of the application used increases, the user needs to On this terminal device, re-establish the newly configured Bluetooth, and the device paired with it also needs to be re-paired with the Bluetooth of this terminal device; when the traffic used by the access device reaches the set traffic limit, the system software starts the alarm mode and forces access to the device Disconnect to end the Bluetooth pairing connection between the device and this terminal device, and save the last moment Bluetooth related configuration. If the accessed device still wants to perform Bluetooth pairing and connection work with the terminal device, it needs to enter the Bluetooth settings APP interface of the terminal device, unlock and clear the relevant data, and continue to the second step.
  • the manual setting adjustment method will cause changes in the user interface compared with related technologies, and this change will bring significant improvement in user experience.
  • the user opens the Bluetooth settings interface and can choose whether to enable Bluetooth MIMO mode. Then, enter the first-level menu and select Bluetooth mode.
  • the first option is Bluetooth portable device
  • the second option is For Bluetooth terminal devices
  • the first option is Bluetooth headsets, cars, Bluetooth-enabled printers, etc.
  • the second option is Bluetooth mobile phones, tablets, laptops and other terminal devices; after entering the first option, switch to the second-level menu selection, and the user enters After this menu, you can determine the content of the second-level menu according to which option your terminal device is in the first-level menu.
  • the second-level menu of the Bluetooth connection mode is not a relevant change of the present disclosure, so it will not be introduced here for the time being.
  • the third-level menu pops up based on the results of the first-level menu and the second-level menu.
  • the third-level menu mainly displays the statistics of the user's choices and adds a Bluetooth pairing button, so that the user can complete the tasks according to their own operations on the APP.
  • the Bluetooth working status of the mobile terminal device is created, and the mobile terminal device selects the protocol and transmission power with the minimum power consumption according to the manually set relevant parameters, combined with the hardware indicators and capabilities, and turns on the Bluetooth function for other devices to connect and use.
  • the technical solution provided based on the present disclosure has great advantages for both users and terminal devices.
  • the impact on the battery because the terminal equipment adopts this mechanism, the state of rapid consumption of power is weakened, which will cause the battery heating to be within a controllable range, reducing
  • the consumption speed of the battery also reduces the number of charges and discharges, increasing the service life of the battery; reducing the application of the baseband part of the terminal device, reducing the resource utilization of the terminal device, releasing some processing resources, and improving the operating speed of the terminal device; and Reduce the power consumption of related chips in terminal equipment and reduce the risk factor of the chip transmitting high power for a long time. This reduces the chance of chip damage and ensures the normal use of related functions of the terminal equipment.
  • the application scenario as follows: one mobile phone’s Bluetooth usage, the connecting and pairing device is another mobile phone, the purpose of pairing the other mobile phone with this mobile phone is to use Bluetooth direct connection mode for data transmission, and then stop the data After the transmission, the Bluetooth shared hotspot was used to download large-scale online games. Finally, the traffic reached the upper limit. At the same time, the two mobile phones were placed relatively close to each other and the signal quality was very good. For devices that apply this technology or implementation method, not all devices in the scenario will adopt this method and approach. It mainly depends on the functional status and connection status of the device in the Bluetooth application scenario, so that what is achieved is dynamic. Adjust the status to ensure the effect of user experience. In the above application scenarios, it is obvious that mobile phones that transmit data and provide Bluetooth shared hotspots are the main devices using this method and approach.
  • Mobile phone A is the main device, and another mobile phone that needs to access the Internet is called mobile phone B.
  • the user completes the Bluetooth configuration settings of mobile phone A and waits for mobile phone B to communicate with mobile phone A.
  • Bluetooth pairing After mobile phone B is paired successfully, data transmission begins. At this time, mobile phone A starts to optimize the Bluetooth performance of the terminal device. By obtaining the working parameters of mobile phone B, it is determined that the request rate of mobile phone B does not need to be very fast. At the same time, the traffic of the application used Relatively few. At the same time, the transmitting status of the two mobile phones meets the hardware indicators.
  • the receiving status of both mobile phones is very good, and the received signal is maintained at about -25dBm.
  • the power level is class1 and the power is 11dBm.
  • the mode needs to be lowered.
  • reducing the power will reduce the chip current inside mobile phone A, release some resources, and reduce the power consumption of mobile phone A.
  • enable the optimization of the corresponding transmission protocol selection, power level, and transmission power configuration in the hardware configuration file change the Bluetooth parameters of mobile phone A to the Bluetooth protocol mode unchanged (still Bluetooth 4.0 protocol mode), the power level is class2, and the power is 4dBm.
  • the system software of mobile phone A activates the alarm mode and hides Bluetooth, forcing mobile phone B to disconnect and making the Bluetooth device invisible.
  • the software of mobile phone B has not been downloaded, the user enters the hotspot unlock code on the keyboard of mobile phone A, and the system automatically switches the Bluetooth setting to To be visible, keep the previous Bluetooth BLE protocol mode, the power is at 0dBm, and the B mobile phone and A mobile phone are paired and connected via Bluetooth.
  • the mobile phone that provides Bluetooth service is called mobile phone A, which is the main device.
  • the two Bluetooth audio devices are device B and device C.
  • the user opens the Bluetooth configuration APP of mobile phone A and starts setting up Bluetooth. Because device B needs to be connected For navigation audio, device C needs to play the audio of mobile phone A and start the multi-device simultaneous interpretation mode. The user judges that there will not be too much traffic, but needs to keep device B and device C connected at the same time. Select the Bluetooth MIMO mode by yourself - the network is using data traffic. mode, after the selection is completed, mobile phone A starts to create Bluetooth, and device B and device C are paired with the Bluetooth created by mobile phone A.
  • mobile phone A configures the Bluetooth MIMO mode and enables the optimization of the corresponding transmission protocol selection and power level in the hardware configuration file.
  • transmit power configuration set the Bluetooth 4.0 protocol mode, the power level is at class1, the power is at 7dBm, and keep the optimized parameters in the hardware configuration file, and at the same time count the traffic used by the access device;
  • the user uses the B device to use the Bluetooth hotspot sharing function , at the same time, device C needs to be no longer in use, and device B starts to download software.
  • the traffic of the application used increases, and the relative position with mobile phone A remains the same as before.
  • Mobile phone A detects that the traffic of the application of device B rises quickly, and device C does not Connect to mobile phone A and start prompting the user to change the Bluetooth configuration on the interface.
  • the user switches the Bluetooth configuration mode to the large network data traffic mode, clicks to reconfigure the hotspot option, the Bluetooth BLE protocol mode of mobile phone A, the power is at 0dBm, and turns off Bluetooth MIMO. mode, and maintain the optimized parameters in the hardware configuration file, and at the same time, count the traffic used by the access device; after a period of time, it is found that the traffic used by device B reaches the upper limit, and the system software of mobile phone A starts the alarm mode, forcing device B to disconnect, causing Bluetooth to automatically Change to invisible, and the Bluetooth Settings APP option is grayed out.
  • the user activates the Bluetooth Settings APP option on the A phone, unlocks it, clears the relevant data, and manually sets the hotspot to visible, but the user needs Re-select the Bluetooth settings APP.
  • mobile phone A will re-maintain the Bluetooth BLE protocol mode according to the hardware configuration file and the power is at 0dBm.
  • Device B will re-pair and connect with mobile phone A via Bluetooth.
  • the entire terminal device will be a hotspot.
  • the workflow execution of the performance optimization module is as above.
  • the ultimate goal is to reduce the current of the Bluetooth module, thereby reducing the power consumption of the overall terminal device, achieving the purpose of saving power, and extending the service life of the terminal.
  • the method according to the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is Better implementation.
  • the technical solution of the present disclosure can be embodied in the form of a software product in essence or that contributes to related technologies.
  • the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ), includes several instructions to cause a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of various embodiments of the present disclosure.
  • This embodiment also provides a terminal device, which is used to implement the above embodiments and optional implementations. What has been described will not be described again.
  • embodiments of the present disclosure also provide a Bluetooth power adjustment device, which is used to implement the above embodiments and optional implementations. What has already been described will not be described again.
  • the term "module” may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 6 is a structural block diagram of a Bluetooth power adjustment device according to an embodiment of the present disclosure.
  • the device is suitable for terminal equipment.
  • the terminal equipment is configured with at least one Bluetooth protocol, and each Bluetooth protocol has its own corresponding The transmission parameters;
  • the device includes: an acquisition module 601, used to obtain the current working parameters of the access device and the terminal device; wherein the access device is a device that establishes Bluetooth communication with the terminal device; a selection module 602, used to obtain the current working parameters of the access device and the terminal device; parameters, select the target Bluetooth protocol and the target transmission parameters from at least one Bluetooth protocol and the corresponding transmission parameters of each Bluetooth protocol; and the working module 603 is used to control the terminal device and access according to the target Bluetooth protocol and the target transmission parameters.
  • the device communicates via Bluetooth.
  • the selection module 602 is used to determine the working status of the access device and the terminal device according to the current working parameters; and select the target Bluetooth protocol and target transmission parameters that match the working status.
  • the selection module 602 is configured to determine that the working status between the access device and the terminal device has changed based on the current working parameters; and select a target Bluetooth working mode from at least one Bluetooth working mode. ;Select the target Bluetooth protocol and target transmission parameters corresponding to the target Bluetooth working mode.
  • the Bluetooth power adjustment device further includes: an initialization module, used to obtain the initial Bluetooth protocol and initial transmission parameters before obtaining the current working parameters of the access device and the terminal device; and when determining the access When the device establishes a Bluetooth connection with the terminal device, the terminal device and the access device conduct Bluetooth communication according to the initial Bluetooth protocol and initial transmission parameters.
  • the initialization module is configured to determine an initial Bluetooth operating mode from at least one Bluetooth operating mode; determine a designated Bluetooth protocol and designated transmission parameters that match the initial Bluetooth operating mode; and assign the designated Bluetooth protocol to As an initial Bluetooth protocol, the specified transmission parameters will be used as initial transmission parameters.
  • the initialization module is configured to count the number of access devices currently connected to the terminal device via Bluetooth; and determine the initial Bluetooth protocol and initial transmission parameters based on the number of access devices.
  • the Bluetooth power adjustment device also includes: a disconnect module, used to obtain the preset connection duration, the preset flow upper limit, and the preset power consumption; if the preset conditions are met, disconnect the access Bluetooth communication between the device and the terminal device, and saves the current Bluetooth protocol and current transmission parameters used by the access device and the terminal device; the preset conditions include at least one of the following conditions: the connection duration exceeds the preset connection duration; the traffic usage size The preset traffic limit is exceeded; the power consumption of the terminal device exceeds the preset power consumption; the power consumption of the terminal device exceeds the preset power consumption for longer than the preset time.
  • a disconnect module used to obtain the preset connection duration, the preset flow upper limit, and the preset power consumption
  • the preset conditions include at least one of the following conditions: the connection duration exceeds the preset connection duration; the traffic usage size The preset traffic limit is exceeded; the power consumption of the terminal device exceeds the preset power consumption; the power consumption of the terminal device exceeds the preset power consumption for longer than the preset time
  • the Bluetooth power adjustment device further includes: an unlocking module for disconnecting access Bluetooth communication between the device and the terminal device, and after saving the current Bluetooth protocol and current transmission parameters used by the access device and the terminal device, obtain the unlock password; where the unlock password is used to reactivate the communication between the terminal device and the access device.
  • Bluetooth communication if the unlocking password is consistent with the preset unlocking password, the access device and the terminal device continue to communicate via Bluetooth according to the current Bluetooth protocol and current transmission parameters.
  • the terminal device operates in the Bluetooth multiple-input multiple-output MIMO mode, and the terminal device communicates with multiple access devices via Bluetooth;
  • each access device For each access device, perform the following processing: obtain the current working parameters of the access device and terminal device; select the target Bluetooth from at least one Bluetooth protocol and the corresponding transmission parameters of each Bluetooth protocol based on the current working parameters. protocol and target transmission parameters; and the terminal device and the access device perform Bluetooth communication according to the target Bluetooth protocol and target transmission parameters.
  • each of the above modules can be implemented through software or hardware.
  • it can be implemented in the following ways, but is not limited to this: the above modules are all located in the same processor; or the above modules can be implemented in any combination.
  • the forms are located in different processors.
  • Embodiments of the present disclosure also provide a storage medium in which a computer program is stored, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
  • the above-mentioned storage medium may be configured to store a computer program for performing the following steps: obtaining the current working parameters of the access device and the terminal device; wherein the access device is A device that establishes Bluetooth communication with the terminal device; selects the target Bluetooth protocol and target transmission parameters from at least one Bluetooth protocol and the corresponding transmission parameters of each Bluetooth protocol according to the current working parameters; and the terminal device and the access device according to Target Bluetooth protocol and target transmission parameters for Bluetooth communication.
  • the above-mentioned storage medium may include but is not limited to: U disk, read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, Various media that can store computer programs, such as RAM (abbreviated as RAM), mobile hard disk, magnetic disk or optical disk.
  • RAM Random Access Memory
  • Embodiments of the present disclosure also provide an electronic device, including a memory and a processor.
  • a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
  • the memory may be the memory 104 in FIG. 1 , and the memory 104 in FIG. 1 is taken as an example of a memory in the electronic device. Of course, other types of memory can also be used.
  • the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
  • the above-mentioned processor may be configured to perform the following steps through a computer program: obtain the current working parameters of the access device and the terminal device; wherein the access device is the same as the terminal device.
  • a device that establishes Bluetooth communication according to the current working parameters, from at least one Bluetooth protocol, and each Bluetooth protocol From the corresponding transmission parameters, select the target Bluetooth protocol and the target transmission parameters; and the terminal device and the access device perform Bluetooth communication according to the target Bluetooth protocol and the target transmission parameters.
  • the Bluetooth protocol and transmission parameters used when the access device and the terminal device communicate are adjusted in a timely manner, thereby realizing dynamic configuration of the Bluetooth transmission parameters, so that the terminal device
  • the current can be dynamically adjusted to optimize the internal current generated by the terminal device during Bluetooth operation and optimize the resources of the terminal device, thereby reducing the probability of the terminal device working at high current and saving power consumption to a certain extent.
  • modules or steps of the present disclosure can be implemented using general-purpose computing devices, and they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices.
  • they may be implemented with program codes executable by a computing device, so that they may be stored in a storage device and executed by the computing device, and in some cases, may be implemented in different
  • the steps shown or described are performed in the sequence herein, or are implemented as separate integrated circuit modules, or multiple modules or steps among them are implemented as a single integrated circuit module.
  • the present disclosure is not limited to any specific combination of hardware and software.

Abstract

Provided in the present disclosure are a Bluetooth power adjustment method, and a terminal device and a storage medium, wherein the method is applicable to a terminal device, and at least one Bluetooth protocol and transmission parameters respectively corresponding to the Bluetooth protocol are configured in the terminal device. The adjustment method comprises: acquiring the current operating parameters of an access device and a terminal device, wherein the access device is a device for establishing Bluetooth communication with the terminal device; according to the current operating parameters, selecting a target Bluetooth protocol from the at least one Bluetooth protocol and selecting a target transmission parameter from the transmission parameters respectively corresponding to the Bluetooth protocol; and the terminal device performing Bluetooth communication with the access device according to the target Bluetooth protocol and the target transmission parameter.

Description

蓝牙功率调整方法、终端设备及存储介质Bluetooth power adjustment method, terminal equipment and storage medium
相关申请的交叉引用Cross-references to related applications
本公开要求享有2022年04月01日提交的名称为“蓝牙功率调整方法、终端设备及存储介质”的中国专利申请CN202210347818.5的优先权,其全部内容通过引用并入本公开中。This disclosure claims priority to Chinese patent application CN202210347818.5 titled "Bluetooth Power Adjustment Method, Terminal Equipment and Storage Medium" submitted on April 1, 2022, the entire content of which is incorporated into this disclosure by reference.
技术领域Technical field
本公开涉及应用开发技术领域,具体而言,涉及一种蓝牙功率调整方法、终端设备及存储介质。The present disclosure relates to the technical field of application development, and specifically, to a Bluetooth power adjustment method, terminal equipment and storage medium.
背景技术Background technique
蓝牙技术是一种无线数据和语音通信开放的全球规范,它是基于低成本的近距离无线连接,为固定和移动设备建立通信环境的一种特殊的近距离无线技术连接。Bluetooth technology is an open global specification for wireless data and voice communications. It is a special short-range wireless technology connection that establishes a communication environment for fixed and mobile devices based on low-cost short-range wireless connections.
蓝牙技术及蓝牙产品的特点主要有:蓝牙技术的适用设备多,无需电缆,通过无线使电脑和电信连网进行通信。蓝牙技术产品使用方便,利用蓝牙设备可以搜索到另外一个蓝牙技术产品,迅速建立起两个设备之间的联系,在控制软件的作用下,可以自动传输数据。蓝牙技术的安全性和抗干扰能力强,由于蓝牙技术具有跳频的功能,有效避免了ISM频带遇到干扰源。蓝牙技术的兼容性较好,传输距离较短。相关蓝牙技术的主要工作范围在10米左右,经过增加射频功率后的蓝牙技术可以在100米的范围进行工作,只有这样才能保证蓝牙在传播时的工作质量与效率,提高蓝牙的传播速度。另外,在蓝牙技术连接过程中还可以有效的降低该技术与其他电子产品之间的干扰,从而保证蓝牙技术可以正常运行。蓝牙技术不仅有较高对传播质量与效率,同时还具有较高的传播安全性特点。The main features of Bluetooth technology and Bluetooth products are: Bluetooth technology is applicable to many devices, does not require cables, and allows computers and telecommunications to communicate wirelessly. Bluetooth technology products are easy to use. You can use a Bluetooth device to search for another Bluetooth technology product, quickly establish a connection between the two devices, and automatically transmit data under the control of the control software. Bluetooth technology has strong security and anti-interference capabilities. Because Bluetooth technology has a frequency hopping function, it effectively avoids interference sources in the ISM band. Bluetooth technology has better compatibility and shorter transmission distance. The main working range of related Bluetooth technology is about 10 meters. After increasing the radio frequency power, Bluetooth technology can work within a range of 100 meters. Only in this way can the working quality and efficiency of Bluetooth transmission be guaranteed and the transmission speed of Bluetooth be improved. In addition, during the Bluetooth technology connection process, the interference between the technology and other electronic products can be effectively reduced, thereby ensuring that Bluetooth technology can operate normally. Bluetooth technology not only has high propagation quality and efficiency, but also has high propagation security characteristics.
发明内容Contents of the invention
本公开实施例提供了一种蓝牙功率调整方法、终端设备及存储介质。Embodiments of the present disclosure provide a Bluetooth power adjustment method, terminal equipment, and storage media.
根据本公开的一个方面,提供了一种蓝牙功率调整方法,适用于终端设备,所述终端设备中配置有至少一种蓝牙协议,以及每种所述蓝牙协议各自对应的发射参数;所述调整方法包括:获取接入设备和所述终端设备的当前工作参数;其中,所述接入设备为与所述终端设备建立蓝牙通信的设备;根据所述当前工作参数,从至少一种蓝牙协议,以及每种所述蓝牙协议各自对应的发射参数中,选取目标蓝牙协议以及目标发射参数;以及所述终端设备与所述接入设备根据所述目标蓝牙协议以及所述目标发射参数进行蓝牙通信。According to one aspect of the present disclosure, a Bluetooth power adjustment method is provided, which is suitable for terminal equipment. The terminal equipment is configured with at least one Bluetooth protocol and transmission parameters corresponding to each of the Bluetooth protocols; the adjustment The method includes: obtaining the current working parameters of the access device and the terminal device; wherein the access device is a device that establishes Bluetooth communication with the terminal device; according to the current working parameters, from at least one Bluetooth protocol, And select a target Bluetooth protocol and target transmission parameters from the corresponding transmission parameters of each Bluetooth protocol; and the terminal device and the access device perform Bluetooth communication according to the target Bluetooth protocol and the target transmission parameters.
根据本公开的又一个方面,还提供了一种终端设备,所述终端设备中配置有至少一种 蓝牙协议,以及每种所述蓝牙协议各自对应的发射参数;所述终端设备,用于获取接入设备和所述终端设备的当前工作参数;其中,所述接入设备为与所述终端设备建立蓝牙通信的设备;根据所述当前工作参数,从至少一种蓝牙协议,以及每种所述蓝牙协议各自对应的发射参数中,选取目标蓝牙协议以及目标发射参数;所述终端设备与所述接入设备根据所述目标蓝牙协议以及所述目标发射参数进行蓝牙通信。According to yet another aspect of the present disclosure, a terminal device is also provided, the terminal device is configured with at least one Bluetooth protocol, and the corresponding transmission parameters of each Bluetooth protocol; the terminal device is used to obtain the current working parameters of the access device and the terminal device; wherein the access device is the same as the terminal device A device that establishes Bluetooth communication; selects a target Bluetooth protocol and target transmission parameters from at least one Bluetooth protocol and corresponding transmission parameters of each Bluetooth protocol according to the current working parameters; the terminal device and the The access device performs Bluetooth communication according to the target Bluetooth protocol and the target transmission parameters.
根据本公开的又一个方面,还提供了一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another aspect of the present disclosure, a storage medium is also provided, and a computer program is stored in the storage medium, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
附图说明Description of drawings
此处所说明的附图用来提供对本公开的进一步理解,构成本公开的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation of the present disclosure. In the attached picture:
图1是根据本公开实施例提供的一种移动终端的硬件结构框图;Figure 1 is a hardware structure block diagram of a mobile terminal provided according to an embodiment of the present disclosure;
图2是根据本公开实施例提供的一种具有蓝牙MIMO功能的终端设备的结构示意图;Figure 2 is a schematic structural diagram of a terminal device with Bluetooth MIMO function provided according to an embodiment of the present disclosure;
图3是根据本公开实施例提供的一种蓝牙功率调整方法的流程示意图;Figure 3 is a schematic flowchart of a Bluetooth power adjustment method provided according to an embodiment of the present disclosure;
图4是根据本公开实施例提供的一种蓝牙功率自动调整的方法的流程图;Figure 4 is a flow chart of a method for automatically adjusting Bluetooth power according to an embodiment of the present disclosure;
图5是根据本公开实施例提供的一种蓝牙功率人工调整的方法的流程图;以及Figure 5 is a flow chart of a method for manual adjustment of Bluetooth power according to an embodiment of the present disclosure; and
图6是根据本公开实施例提供的一种蓝牙功率调整装置的结构框图。Figure 6 is a structural block diagram of a Bluetooth power adjustment device according to an embodiment of the present disclosure.
实施方式Implementation
下文中将参考附图并结合实施例来详细说明本公开。需要说明的是,在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。The present disclosure will be described in detail below in conjunction with embodiments with reference to the accompanying drawings. It should be noted that, as long as there is no conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second", etc. in the description and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
在相关的蓝牙技术中,常用的发射功率具有三个等级,射程范围也具有三个等级。但这个不是可调的,是厂家在生产产品的时候确定的。也就是说,如果产品拿到手是1mW的,那么,就一直是这个功率,不可能因为用户想扩大射程范围而加大功率,或者是由于耗电,缩小射程范围而减小功率,无法做到灵活调整,无法优化终端设备蓝牙工作时的内部电流,导致终端设备功耗大的问题。In related Bluetooth technology, there are three levels of commonly used transmit power and three levels of range. But this is not adjustable and is determined by the manufacturer when producing the product. In other words, if the product is 1mW, it will always have this power. It is impossible to increase the power because the user wants to expand the range, or to reduce the power due to power consumption and narrow the range. It cannot be done. Flexible adjustment cannot optimize the internal current of the terminal device during Bluetooth operation, resulting in high power consumption of the terminal device.
本公开实施例所提供的方法实施例可以在移动终端、计算机终端、服务器、数码设备或者类似的运算装置中执行。以运行在移动终端上为例,图1是本公开实施例的一种蓝牙功率调整方法所应用的移动终端的硬件结构框图。如图1所示,移动终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可 编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,在一示例性的实施方式中,上述移动终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiments provided by the embodiments of the present disclosure can be executed in a mobile terminal, a computer terminal, a server, a digital device, or a similar computing device. Taking running on a mobile terminal as an example, FIG. 1 is a hardware structure block diagram of a mobile terminal to which a Bluetooth power adjustment method according to an embodiment of the present disclosure is applied. As shown in FIG. 1, the mobile terminal may include one or more (only one is shown in FIG. 1) processors 102 (the processor 102 may include but is not limited to a microprocessor MCU or may Programming logic device (FPGA, etc.) and a memory 104 for storing data. In an exemplary embodiment, the above-mentioned mobile terminal may also include a transmission device 106 and an input and output device 108 for communication functions. Persons of ordinary skill in the art can understand that the structure shown in Figure 1 is only illustrative, and it does not limit the structure of the above-mentioned mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1 , or have a different configuration than shown in FIG. 1 .
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本公开实施例中的蓝牙功率调整方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the Bluetooth power adjustment method in the embodiment of the present disclosure. The processor 102 executes the computer program by running the computer program stored in the memory 104. Various functional applications and data processing implement the above methods. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely relative to the processor 102, and these remote memories may be connected to the mobile terminal 10 through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
传输装置106用于经由一个网络接收或者发送数据。上述的网络实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。The transmission device 106 is used to receive or send data via a network. The above-mentioned network examples may include a wireless network provided by a communication provider of the mobile terminal 10 . In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet wirelessly.
本公开实施例提供的蓝牙功率调整方法可以运行于终端设备上,该终端设备配置有蓝牙模块,蓝牙模块由蓝牙协议栈的无线收发器(RF)无线收发器(RF)、基带控制器(BB)和链路管理层(LMP)组成,其中,无线收发器配置有天线端口,在实现时,可以利用片上系统技术SOC(System-On-Chip)将这三层功能模块集嵌在同一块芯片上,主要由微处理器(CPU)、无线收发器(RF)、基带控制器(BB)、静态随机存储器(SRAM)、闪存(Flash程序存储器)、通用异步收发器(UART)、通用串行接口(USB)、语音编/解码器(CODEC)及蓝牙测试模块组成。The Bluetooth power adjustment method provided by the embodiment of the present disclosure can be run on a terminal device. The terminal device is configured with a Bluetooth module. The Bluetooth module consists of a wireless transceiver (RF), a baseband controller (BB) of the Bluetooth protocol stack. ) and link management layer (LMP), in which the wireless transceiver is configured with an antenna port. During implementation, the system-on-chip technology SOC (System-On-Chip) can be used to embed these three layers of functional modules in the same chip. It mainly consists of microprocessor (CPU), wireless transceiver (RF), baseband controller (BB), static random access memory (SRAM), flash memory (Flash program memory), universal asynchronous receiver-receiver (UART), universal serial It is composed of interface (USB), voice coder/decoder (CODEC) and Bluetooth test module.
在相关的蓝牙技术中,通常,终端设备仅可以连接一个接入设备进行蓝牙通信。针对该问题,本公开实施例提供了一种解决方案,采用蓝牙MIMO(multiple-in multipleout,多进多出)技术,也就是在终端设备的电路设计和天线设计增加蓝牙通路,从而实现一个终端设备可以与多个接入设备进行蓝牙通信。详细来讲,如图2所示,根据相关的平台能力,对于蓝牙MIMO模式的配置电路设计,本公开实施例主要是采用了一套基带控制器(BB)+多组无线收发器(RF)+多个天线端口。至少两组无线收发器均与基带控制器相连;且每组无线收发器一一对应连接有一个无线端口;其中,不同组的无线收发器与无线端口用于建立终端设备与不同接入设备之间的蓝牙连接;且终端设备通过每组无线收发器红外和天 线端口与每个接入设备进行蓝牙通信时,从至少一种蓝牙协议,以及每种蓝牙协议各自对应的发射参数中,各自选取蓝牙协议以及与蓝牙协议对应的发射参数进行工作。In related Bluetooth technology, usually, a terminal device can only connect to one access device for Bluetooth communication. To address this problem, embodiments of the present disclosure provide a solution, using Bluetooth MIMO (multiple-in multipleout, multiple-in, multiple-out) technology, that is, adding Bluetooth channels to the circuit design and antenna design of the terminal device, thereby realizing a terminal The device can communicate via Bluetooth with multiple access devices. In detail, as shown in Figure 2, according to the relevant platform capabilities, for the configuration circuit design of the Bluetooth MIMO mode, the embodiment of the present disclosure mainly uses a set of baseband controller (BB) + multiple sets of wireless transceivers (RF) +Multiple antenna ports. At least two groups of wireless transceivers are connected to the baseband controller; and each group of wireless transceivers is connected to a wireless port in one-to-one correspondence; where different groups of wireless transceivers and wireless ports are used to establish a connection between terminal equipment and different access devices. Bluetooth connection between; and the terminal device through each set of wireless transceivers infrared and antenna When the line port performs Bluetooth communication with each access device, it selects the Bluetooth protocol and the transmission parameters corresponding to the Bluetooth protocol from at least one Bluetooth protocol and the transmission parameters corresponding to each Bluetooth protocol to work.
而对于音频分享部分,可以设计多个音频电路来完成共享部分的功能,在实现时,音频电路可以和无线收发器一一对应设置。设计天线的时候,根据实际采用的通道数进行选择和布局,这里对布局和天线设计不详细赘述。As for the audio sharing part, multiple audio circuits can be designed to complete the functions of the sharing part. During implementation, the audio circuits can be set in one-to-one correspondence with the wireless transceiver. When designing an antenna, the selection and layout are based on the actual number of channels used. The layout and antenna design will not be described in detail here.
通过上述硬件电路,可以实现蓝牙MIMO技术。MIMO技术是指能在不增加带宽的情况下,成倍地提高通信系统的容量和频谱利用率的技术。MIMO技术可以定义为发送端和接收端之间存在多个独立信道,也就是说天线单元之间存在充分的间隔,因此,消除了天线间信号的相关性,提高了信号的链路性能,增加了数据吞吐量。按照WIFI MIMO技术的设计,蓝牙MIMO技术也可以做到同样的链路设计,对于所有的无线通信系统而言,无论是3GPP UMTS这样的移动无线网络,还是像WLAN那样的无线局域网,除了通过高阶调制或更大的信号带宽这样传统的方式来提高数据速率以外,还可以通过多天线技术来提高信道的容量。Through the above hardware circuit, Bluetooth MIMO technology can be implemented. MIMO technology refers to a technology that can exponentially increase the capacity and spectrum utilization of communication systems without increasing bandwidth. MIMO technology can be defined as the existence of multiple independent channels between the transmitter and the receiver, which means that there is sufficient spacing between antenna units. Therefore, the correlation of signals between antennas is eliminated, the link performance of the signal is improved, and the data throughput. According to the design of WIFI MIMO technology, Bluetooth MIMO technology can also achieve the same link design. For all wireless communication systems, whether it is a mobile wireless network like 3GPP UMTS or a wireless local area network like WLAN, in addition to high-speed In addition to traditional methods such as order modulation or larger signal bandwidth to increase data rates, multi-antenna technology can also be used to increase channel capacity.
与此同时,在收发方式的选择上,无需固定或者指定某个通路同时发射或者接收,选择某个通路作为发射工作状态或者是接收工作状态,主要取决于用户使用蓝牙的工作场景、天线的状态、终端设备的功耗情况等。而且,在相关的本公开实施例的上述实现方式基础上,还可以根据不同的传输信道类型,可以在无线系统中使用相应的分集方式。相关的主要的分集方式包括:时间分集(不同的时隙和信道编码)、频率分集(不同的信道、扩频和OFDM)以及空间分集等。多天线系统利用的就是空间方式,而MIMO作为典型的多天线系统,可以明显提高传输速率。而在实际的无线系统中,可以根据实际情况使用一种或者多种分集方式。而在本公开实施例中,蓝牙方案采用的是多种收发方式共同工作或者组合方式,同时也会根据接入设备的状态和数量,启用一种或者多种收发模式,进行多应用分配操作的方法,在线程数量较少的时候,采用单独收发方式,启用SISO(simple input simple output,单进单出)模式,等到线程数量增多,或者是需要共享内容的时候,可以启用多种收发方式,启用MIMO模式,分担任务内容和线程,增加蓝牙吞吐量和用户体验。At the same time, in terms of the selection of transceiver methods, there is no need to fix or specify a channel to transmit or receive at the same time. Choosing a certain channel as the transmitting working state or the receiving working state mainly depends on the user's working scenario of using Bluetooth and the status of the antenna. , the power consumption of terminal equipment, etc. Moreover, based on the above implementation methods of the relevant embodiments of the present disclosure, corresponding diversity methods can also be used in the wireless system according to different transmission channel types. The main related diversity methods include: time diversity (different time slots and channel coding), frequency diversity (different channels, spreading and OFDM), and space diversity. Multi-antenna systems utilize spatial methods, and MIMO, as a typical multi-antenna system, can significantly increase the transmission rate. In actual wireless systems, one or more diversity methods can be used according to actual conditions. In the embodiment of the present disclosure, the Bluetooth solution uses multiple transceiver modes to work together or in combination. At the same time, one or more transceiver modes are enabled according to the status and number of access devices to perform multi-application allocation operations. Method: When the number of threads is small, use separate transceiver mode and enable SISO (simple input simple output) mode. When the number of threads increases or when content needs to be shared, multiple transceiver modes can be enabled. Enable MIMO mode to share task content and threads, increasing Bluetooth throughput and user experience.
在本公开实施例中,通过在终端设备上增加蓝牙通路,建立蓝牙MIMO模式,采用多个通路同时收发的方式,来增加接入设备数量和吞吐率,可以将不同类型的蓝牙设备分门别类的连接到不同的蓝牙通路,使得每个功能不会相互干扰,可以正常运行;与此同时,在收发方式的选择上,无需固定或者指定某个通路同时发射或者接收,完全自由的通路功能选择方式,使得整体的用户体验感加强。而且,当用户使用终端设备的时候,如果天线被遮挡或失效,还可以切换到其他通路上,保证在使用的时候不会因为天线的效率的问题,导致断开连接或产生杂音、断续音等影响用户体验的现象发生。 In the embodiment of the present disclosure, by adding Bluetooth channels to the terminal device, establishing a Bluetooth MIMO mode, and using multiple channels to transmit and receive at the same time, the number of access devices and the throughput rate are increased, and different types of Bluetooth devices can be connected in different categories. to different Bluetooth channels, so that each function will not interfere with each other and can operate normally; at the same time, in the selection of transceiver methods, there is no need to fix or specify a channel to transmit or receive at the same time, and the channel function selection method is completely free. This enhances the overall user experience. Moreover, when users use terminal equipment, if the antenna is blocked or fails, they can also switch to other channels to ensure that the efficiency of the antenna will not cause disconnection or noise or intermittent sound during use. Wait for phenomena that affect user experience to occur.
本公开实施例还提供了一种蓝牙功率调整方法,该蓝牙功率调整方法可以应用于上述的终端设备,在该终端设备中配置有至少一种蓝牙协议,以及每种蓝牙协议各自对应的发射参数;其中,发射参数至少包括:至少一个发射等级、以及各发射等级对应的至少一个发射功率。优先的,终端设备中配置有:至少两种蓝牙协议,每种蓝牙协议对应的发射等级大于或等于2个,每个发射等级对应的发射功率大于或等于2个。Embodiments of the present disclosure also provide a Bluetooth power adjustment method. The Bluetooth power adjustment method can be applied to the above-mentioned terminal device. The terminal device is configured with at least one Bluetooth protocol and corresponding transmission parameters for each Bluetooth protocol. ; Wherein, the transmission parameters at least include: at least one transmission level, and at least one transmission power corresponding to each transmission level. Preferably, the terminal device is configured with: at least two Bluetooth protocols, the transmission levels corresponding to each Bluetooth protocol are greater than or equal to 2, and the transmission power corresponding to each transmission level is greater than or equal to 2.
在实现时,至少一种蓝牙协议,以及每种蓝牙协议各自对应的发射参数可以配置在终端设备的存储模块中,也可以配置在终端设备的微处理器、基带控制器或至少两组无线收发器中;还可以以硬件配置文件的形式配置在终端设备中,这里并不做限定。During implementation, at least one Bluetooth protocol and the corresponding transmission parameters of each Bluetooth protocol can be configured in the storage module of the terminal device, or can be configured in the microprocessor, baseband controller or at least two sets of wireless transceivers of the terminal device. in the server; it can also be configured in the terminal device in the form of a hardware configuration file, which is not limited here.
为了进一步理解,本公开实施例以硬件配置文件为例进行说明。硬件配置文件中包括:蓝牙芯片的通路启用情况、蓝牙芯片的功率设置、蓝牙协议模式设置、蓝牙的接收RSSI参数设置、蓝牙芯片的其他设置;本公开实施例重点关心的为:蓝牙芯片的通路启用情况,蓝牙芯片的发射功率及发射等级设置、蓝牙芯片的协议模式设置。其中,最主要关注的是蓝牙芯片的发射功率及发射等级设置、蓝牙芯片的协议模式设置。For further understanding, the embodiment of the present disclosure takes a hardware configuration file as an example for description. The hardware configuration file includes: Bluetooth chip channel activation status, Bluetooth chip power settings, Bluetooth protocol mode settings, Bluetooth receiving RSSI parameter settings, and other settings of the Bluetooth chip; the embodiments of this disclosure focus on: the Bluetooth chip channel Activation status, Bluetooth chip’s transmission power and transmission level settings, and Bluetooth chip’s protocol mode settings. Among them, the most important thing to pay attention to is the transmission power and transmission level settings of the Bluetooth chip, and the protocol mode setting of the Bluetooth chip.
相关蓝牙芯片发射制式和发射功率都是一一对应的,根据相关协议,传统蓝牙技术功率等级分为Class1、Class2、Class3,各个等级的功率是不相同的,虽然有重叠部分,但是区间是不同的,以此保证其测试指标能够满足相关要求。同时,传统蓝牙协议,不同发射等级所配置的发射功率都是不变的,并且是保持一个通路,且唯一的。The transmission format and transmission power of relevant Bluetooth chips are in one-to-one correspondence. According to relevant protocols, the power levels of traditional Bluetooth technology are divided into Class1, Class2, and Class3. The power of each level is different. Although there are overlaps, the intervals are different. to ensure that its test indicators can meet relevant requirements. At the same time, in the traditional Bluetooth protocol, the transmission power configured for different transmission levels is unchanged, and it maintains one channel and is unique.
而在本公开实施例中,为每个蓝牙协议(不同蓝牙协议对应不同的蓝牙芯片的发射制式)所配置的发射功率并不是唯一的,而是配置为数组模式,根据调用需求以及是否启用蓝牙MIMO,调整发射等级,提取相应的发射功率值,对应到蓝牙芯片发射制式配置中,这样可以使每个发射制式中的发射功率配置变成可选择的,为后续自动设置调整和人工设置调整两种模式的实现提供了重要基础。In the embodiment of the present disclosure, the transmission power configured for each Bluetooth protocol (different Bluetooth protocols correspond to the transmission formats of different Bluetooth chips) is not unique, but is configured in an array mode, based on the calling requirements and whether Bluetooth is enabled. MIMO, adjust the transmission level, extract the corresponding transmission power value, and map it to the Bluetooth chip transmission format configuration. This can make the transmission power configuration in each transmission format selectable, providing both automatic and manual setting adjustments for subsequent The implementation of this model provides an important foundation.
其中,在实现时,在本公开实施例中,硬件配置文件主要关注:蓝牙协议版本、发射功率大小、发射等级这些参量。其中,对于每个蓝牙协议版本,对应多个发射等级,每个发射等级对应的发射功率也是一组数值,不是唯一值。During implementation, in the embodiment of the present disclosure, the hardware configuration file mainly focuses on parameters such as Bluetooth protocol version, transmission power, and transmission level. Among them, for each Bluetooth protocol version, there are multiple transmission levels, and the transmission power corresponding to each transmission level is also a set of values, not a unique value.
为了便于理解,这里举例说明,在硬件配置文件中具有蓝牙协议版本A、蓝牙协议版本B和蓝牙协议版本C这三个蓝牙协议版本,其中,每个蓝牙协议版本具有三个发射等级,每个发射等级具有不同的发射功率范围,在各自的发射功率范围内,可以以预设功率大小为间隔,例如:1dBm,将发射功率范围划分成一组数值,该组数值中的每个值均可以作为发射功率。以蓝牙协议版本A为例,表1示出了蓝牙协议版本A、发射等级、发射功率大小等参数之间的对应关系,对于其他蓝牙协议版本的理解,可以参见蓝牙协议版本A。 For ease of understanding, here is an example. In the hardware configuration file, there are three Bluetooth protocol versions: Bluetooth protocol version A, Bluetooth protocol version B and Bluetooth protocol version C. Among them, each Bluetooth protocol version has three emission levels, each The emission levels have different transmission power ranges. Within the respective transmission power ranges, the transmission power range can be divided into a set of values at preset power intervals, such as 1dBm. Each value in the set of values can be used as Transmit power. Taking Bluetooth protocol version A as an example, Table 1 shows the correspondence between parameters such as Bluetooth protocol version A, transmission level, and transmission power. For an understanding of other Bluetooth protocol versions, please refer to Bluetooth protocol version A.
表1硬件配置文件中蓝牙协议版本A的示意
Table 1 Illustration of Bluetooth protocol version A in the hardware configuration file
其中,每个发射等级对应的发射功率数组的开头数和结尾数预先配置好,并设置好功率间隔,即可确定各可用的发射功率。除此之外,硬件配置文件中还可以包括:与每个蓝牙协议版本对应的发射等级校准参量,这个参量主要作用是决定电路配置在哪个发射等级上,以及放大等级是多少,在实现时,发射等级校准参量也是一组数组。Among them, the beginning and end numbers of the transmission power array corresponding to each transmission level are pre-configured, and the power interval is set to determine the available transmission power. In addition, the hardware configuration file can also include: emission level calibration parameters corresponding to each Bluetooth protocol version. The main function of this parameter is to determine which emission level the circuit is configured at, and what the amplification level is. During implementation, The emission level calibration parameters are also an array.
在实际应用中,可以根据实际情况选择适合的发射功率的大小和发射等级校准参量,从而对发射参数进行灵活调整、优化,达到降低内部发射电流、释放部分资源,以减少整个终端设备功耗的目的。In practical applications, the appropriate transmission power and transmission level calibration parameters can be selected according to the actual situation, so that the transmission parameters can be flexibly adjusted and optimized to reduce the internal transmission current and release some resources to reduce the power consumption of the entire terminal equipment. Purpose.
下面结合图3对本公开实施例提供的一种蓝牙功率调整方法进行说明。该蓝牙功率调整方法适用于终端设备,终端设备中配置有至少一种蓝牙协议,以及每种蓝牙协议各自对应的发射参数;如图3所示,该蓝牙功率调整方法包括如下步骤。A Bluetooth power adjustment method provided by an embodiment of the present disclosure will be described below with reference to FIG. 3 . The Bluetooth power adjustment method is suitable for terminal equipment. The terminal equipment is configured with at least one Bluetooth protocol and corresponding transmission parameters for each Bluetooth protocol. As shown in Figure 3, the Bluetooth power adjustment method includes the following steps.
步骤301,获取接入设备和终端设备的当前工作参数;其中,接入设备为与终端设备建立蓝牙通信的设备。Step 301: Obtain the current working parameters of the access device and the terminal device; where the access device is a device that establishes Bluetooth communication with the terminal device.
其中,工作参数主要包括硬件侧指标参数值和软件侧指标参数值两大类。其中,硬件侧指标部分的作用是对承担使用传统蓝牙技术连接功能的终端设备硬件指标进行分析和判断,其中,硬件侧主要指标包括误码率、EVM(误差矢量幅度,Error Vector Magnitude)、接收灵敏度、吞吐率等等,而参照的标准表格为3GPP和BT SIG联盟标准中关于指标门限相关文档等,标准表格可以提前存储在终端设备的存储器中或者微处理器中,该标准表格中存储上述各指标的标准预设门限值。在启动硬件侧指标分析体系部分时,直接调取标准表格进行分析和判断,使得后续根据判断结果选择目标蓝牙协议和目标发射参数。Among them, the working parameters mainly include two categories: hardware-side indicator parameter values and software-side indicator parameter values. Among them, the function of the hardware side indicators is to analyze and judge the hardware indicators of the terminal equipment that is responsible for the connection function using traditional Bluetooth technology. Among them, the main indicators on the hardware side include bit error rate, EVM (Error Vector Magnitude), reception Sensitivity, throughput rate, etc., and the reference standard tables are documents related to indicator thresholds in 3GPP and BT SIG alliance standards. The standard table can be stored in the memory of the terminal device or in the microprocessor in advance. The standard table stores the above Standard preset threshold values for each indicator. When starting the hardware-side indicator analysis system part, the standard table is directly called for analysis and judgment, so that the target Bluetooth protocol and target transmission parameters can be selected based on the judgment results.
对于软件侧指标部分,主要作用是针对与终端设备蓝牙配对的接入设备所上报的相关指标和请求应用类型进行分析和判断,其中,指标包括:接收灵敏度,吞吐率,误码率,请求应用类型,MIMO天线状态、流量统计等等,请求应用类型主要包括:数据传输、音频共享、多设备连接、单独传输等交互的类型。同样的,参照的标准表格为3GPP和BT SIG协议中关于指标门限相关文档等,标准表格预先存储在终端设备的存储器中或者微处理器中,该标准表格中存储上述各指标的标准预设门限值。通过上述指标分析出接入设备与终端设备主要进行什么类型的交互,是否需要长时间保持较高资源的作业等等。For the software-side indicators, the main function is to analyze and judge the relevant indicators and request application types reported by the access device paired with the terminal device Bluetooth. Among them, the indicators include: receiving sensitivity, throughput rate, bit error rate, request application Type, MIMO antenna status, traffic statistics, etc. The request application type mainly includes: data transmission, audio sharing, multi-device connection, separate transmission and other interactive types. Similarly, the reference standard tables are documents related to indicator thresholds in the 3GPP and BT SIG protocols. The standard tables are pre-stored in the memory of the terminal device or in the microprocessor. The standard tables store the standard preset thresholds for each of the above indicators. limit. Through the above indicators, we can analyze what type of interaction the access device and the terminal device mainly carry out, whether operations that require high resource maintenance for a long time, etc.
通过硬件侧指标和软件侧指标与标准表格中的参数进行比较,确定接入设备和终端设备的工作状态,得到判断结果,以根据判断结果确定后续选择何种蓝牙协议和发射参数进 行工作。By comparing the hardware-side indicators and software-side indicators with the parameters in the standard table, the working status of the access equipment and terminal equipment is determined, and the judgment results are obtained. Based on the judgment results, it is determined which Bluetooth protocol and transmission parameters are selected for subsequent development. Do the work.
步骤302,根据当前工作参数,从至少一种蓝牙协议,以及每种蓝牙协议各自对应的发射参数中,选取目标蓝牙协议以及目标发射参数。Step 302: Select the target Bluetooth protocol and the target transmission parameters from at least one Bluetooth protocol and the corresponding transmission parameters of each Bluetooth protocol according to the current working parameters.
步骤303,终端设备与接入设备根据目标蓝牙协议以及目标发射参数进行蓝牙通信。Step 303: The terminal device and the access device conduct Bluetooth communication according to the target Bluetooth protocol and target transmission parameters.
在本公开实施例中,通过监测接入设备和终端设备的当前工作参数,及时对接入设备和终端设备通信时所使用的蓝牙协议和发射参数进行调整,实现了动态配置蓝牙发射参数,使得终端设备的电流能够动态调整,进而优化终端设备蓝牙工作时产生的内部电流,优化终端设备的资源,从而达到降低终端设备高电流工作的概率,起到一定的节约功耗的作用。In the embodiment of the present disclosure, by monitoring the current working parameters of the access device and the terminal device, and promptly adjusting the Bluetooth protocol and transmission parameters used when the access device and the terminal device communicate, dynamic configuration of Bluetooth transmission parameters is achieved, so that The current of the terminal device can be dynamically adjusted, thereby optimizing the internal current generated when the terminal device is working via Bluetooth and optimizing the resources of the terminal device, thereby reducing the probability of the terminal device working at high current and saving power consumption to a certain extent.
当终端设备工作在蓝牙多输入多输出MIMO模式下,终端设备与多个接入设备蓝牙通信时,对于每个接入设备和终端设备,获取接入设备和终端设备的当前工作参数;根据当前工作参数,从至少一种蓝牙协议,以及每种蓝牙协议各自对应的发射参数中,选取目标蓝牙协议以及目标发射参数;终端设备与接入设备根据目标蓝牙协议以及目标发射参数进行蓝牙通信。When the terminal device works in the Bluetooth multiple-input multiple-output MIMO mode and the terminal device communicates with multiple access devices via Bluetooth, for each access device and terminal device, the current working parameters of the access device and terminal device are obtained; according to the current The working parameters include selecting the target Bluetooth protocol and the target transmission parameters from at least one Bluetooth protocol and the corresponding transmission parameters of each Bluetooth protocol; the terminal device and the access device conduct Bluetooth communication according to the target Bluetooth protocol and the target transmission parameters.
其中,对于不同接入设备与终端设备之间进行蓝牙通信所采用的目标蓝牙协议和目标发射参数可以相同,也可以不同。Among them, the target Bluetooth protocol and target transmission parameters used for Bluetooth communication between different access devices and terminal devices may be the same or different.
当终端设备采用MIMO技术实现蓝牙模块时,既可以实现多设备接入,并保持共同工作,同时,也能够达到降低整体终端设备功耗的目的。When a terminal device uses MIMO technology to implement a Bluetooth module, multiple devices can be accessed and work together, and at the same time, the power consumption of the overall terminal device can be reduced.
其中,在本公开实施例中,对于选取目标蓝牙协议和目标发射参数,主要有自动设置调整和人工设置调整两种方式。Among them, in the embodiment of the present disclosure, there are two main methods for selecting the target Bluetooth protocol and target transmission parameters: automatic setting and adjustment and manual setting and adjustment.
第一种调整方式为自动设置调整。The first adjustment method is automatic setting adjustment.
自动设置调整部分承担的是当终端设备传统蓝牙配对打开后,根据上述的判断结果,实时调整硬件配置文件中的发射参数和硬件状态(发射工作状态或接收工作状态),配置好硬件电路部分,并保持硬件配置文件中优化参数和硬件状态,同时统计接入设备所用数据流量情况,一旦超过所设定的条件和门限,启动报警机制,结束蓝牙传输工作或者其他程序,在终端设备的界面上显示信息,等待用户下一步操作。The automatic setting adjustment part is responsible for adjusting the transmission parameters and hardware status (transmitting working status or receiving working status) in the hardware configuration file in real time based on the above judgment results when the traditional Bluetooth pairing of the terminal device is turned on, and configuring the hardware circuit part. And maintain the optimized parameters and hardware status in the hardware configuration file, while counting the data traffic used by the access device. Once the set conditions and thresholds are exceeded, the alarm mechanism is activated and the Bluetooth transmission work or other programs are ended. On the interface of the terminal device Display information and wait for the user's next action.
对于自动设置调整部分,接入设备与终端设备建立蓝牙通信时,可以按照初始蓝牙协议和初始发射参数进行蓝牙通信。其中,为了降低功耗,在配置初始蓝牙协议和初始发射参数时,可以采用功耗比较小的蓝牙发射制式和蓝牙发射参数,以降低工作初期的功耗。此外,还可以在接入设备和终端设备配对后,统计与终端设备蓝牙连接的接入设备的数量,根据接入设备的数量,确定初始蓝牙协议和初始发射参数。如果接入设备的数量比较少,例如:小于预设数量,可以选择流量比较小的情况下适合的初始蓝牙协议和初始发射参数,如果数量比较多(大于或等于预设数量),则为了保证蓝牙通信的性能,可以选择流量较大 的情况下适合的初始蓝牙协议和初始发射参数。For the automatic setting adjustment part, when the access device establishes Bluetooth communication with the terminal device, it can perform Bluetooth communication according to the initial Bluetooth protocol and initial transmission parameters. Among them, in order to reduce power consumption, when configuring the initial Bluetooth protocol and initial transmission parameters, the Bluetooth transmission format and Bluetooth transmission parameters with relatively small power consumption can be used to reduce power consumption in the early stage of operation. In addition, after the access device and the terminal device are paired, the number of access devices connected to the terminal device via Bluetooth can also be counted, and the initial Bluetooth protocol and initial transmission parameters can be determined based on the number of access devices. If the number of accessed devices is relatively small, for example, less than the preset number, you can select the appropriate initial Bluetooth protocol and initial transmission parameters when the traffic is relatively small. If the number is relatively large (greater than or equal to the preset number), in order to ensure Bluetooth communication performance, you can choose larger traffic The initial Bluetooth protocol and initial transmission parameters are suitable for the case.
终端设备和接入设备根据初始蓝牙协议和初始发射参数进行蓝牙通信,即接入设备成功接入到终端设备后,可以根据接入设备实际的当前工作参数,例如:请求应用类型、流量估计以及接收状态等参数,确定接入设备和终端设备的工作状态,来启用硬件配置文件中优化射频通路数量、优化相应的发射协议选择、功率等级、发射功率配置等,并保持硬件配置文件中优化参数,同时统计接入设备所用流量情况。The terminal device and the access device conduct Bluetooth communication according to the initial Bluetooth protocol and initial transmission parameters. That is, after the access device successfully connects to the terminal device, the access device can communicate according to the actual current working parameters of the access device, such as: request application type, traffic estimation and Receiving status and other parameters determine the working status of access equipment and terminal equipment to enable the optimization of the number of radio frequency channels in the hardware configuration file, optimize the corresponding transmission protocol selection, power level, transmission power configuration, etc., and maintain the optimized parameters in the hardware configuration file. , and at the same time collect statistics on the traffic used by the access device.
在实现时,如果根据当前工作参数,确定终端设备接收状态良好,且接收信号功率稳定在某个数值的预设范围内(接收信号功率在某个数值上下),则可以根据接收信号稳定的该功率值,从硬件配置文件中,确定相应的目标蓝牙协议、目标发射功率等级以及目标发射功率。根据当前工作参数,确定接入设备和终端设备之间的工作状态发生改变,则根据改变的工作状态,从硬件配置文件中,确定相应的目标蓝牙协议、目标发射功率等级以及目标发射功率。例如:如果流量突然上升,则可以选择切换为流量较大的蓝牙协议和对应的发射等级和发射功率等参数。During implementation, if it is determined based on the current working parameters that the terminal equipment is in good reception status and the received signal power is stable within a preset range of a certain value (the received signal power is above or below a certain value), then the received signal power can be determined based on the stable received signal. Power value, from the hardware configuration file, determine the corresponding target Bluetooth protocol, target transmit power level, and target transmit power. According to the current working parameters, it is determined that the working status between the access device and the terminal device has changed, and the corresponding target Bluetooth protocol, target transmission power level, and target transmission power are determined from the hardware configuration file according to the changed working status. For example: If the traffic suddenly increases, you can choose to switch to the Bluetooth protocol with larger traffic and the corresponding transmission level, transmission power and other parameters.
第二种调整方式为人工设置调整。The second adjustment method is manual setting adjustment.
人工设置调整总体思想是:用户根据自己使用传统蓝牙的实际情况和使用场景,通过终端设备中预装的蓝牙连接设置APP对终端设备蓝牙工作信息进行人工配置,配置完成后打开蓝牙配对,根据判断结果调整硬件配置文件模块中的发射参数和硬件状态,配置好硬件电路部分,并保持硬件配置文件中优化参数,同时统计接入设备所用流量情况,一旦超过所设定的条件和门限,启动报警机制,结束蓝牙连接工作或者其他程序,终端界面上显示信息,等待用户下一步操作。The overall idea of manual setting adjustment is: the user manually configures the Bluetooth working information of the terminal device through the Bluetooth connection setting APP pre-installed in the terminal device based on the actual situation and usage scenarios of traditional Bluetooth. After the configuration is completed, the Bluetooth pairing is opened, and based on judgment As a result, the transmission parameters and hardware status in the hardware configuration file module are adjusted, the hardware circuit part is configured, and the optimized parameters in the hardware configuration file are maintained. At the same time, the traffic used by the access device is counted. Once the set conditions and thresholds are exceeded, an alarm is initiated. mechanism to end the Bluetooth connection work or other programs, display information on the terminal interface, and wait for the user's next operation.
对于人工设置调整部分,用户可以根据实际情况自行选择蓝牙工作模式,在一个实施例中,从至少一种蓝牙工作模式中,确定初始蓝牙工作模式;确定与初始蓝牙工作模式匹配的指定蓝牙协议和指定发射参数;将指定蓝牙协议作为初始蓝牙协议,将指定发射参数作为初始发射参数,在连接之初,终端设备和接入设备根据初始蓝牙协议和初始发射参数进行蓝牙通信。For the manual setting adjustment part, the user can select the Bluetooth working mode according to the actual situation. In one embodiment, the initial Bluetooth working mode is determined from at least one Bluetooth working mode; the designated Bluetooth protocol and the matching initial Bluetooth working mode are determined. Specify the transmission parameters; use the specified Bluetooth protocol as the initial Bluetooth protocol, and use the specified transmission parameters as the initial transmission parameters. At the beginning of the connection, the terminal device and the access device conduct Bluetooth communication according to the initial Bluetooth protocol and initial transmission parameters.
在实现时,在确定初始蓝牙工作模式时,可以获取用户输入的第二选中操作,响应第二选中操作,从至少一种蓝牙工作模式中,确定初始蓝牙工作模式。During implementation, when determining the initial Bluetooth working mode, the second selection operation input by the user can be obtained, and in response to the second selection operation, the initial Bluetooth working mode is determined from at least one Bluetooth working mode.
蓝牙工作模式包括:单设备连接模式和多设备连接模式,其中这两种模式下分别设置有使用数据流量大模式(如WIFI共享热点等),使用数据流量中等模式(如语音导航、车载蓝牙设备听歌等),使用数据流量小模式(如耳机听歌,接打电话,监听手机是否有电话等),共6种蓝牙工作模式。Bluetooth working modes include: single device connection mode and multi-device connection mode. These two modes are respectively set to use a large data traffic mode (such as WIFI sharing hotspot, etc.), and a medium data traffic mode (such as voice navigation, car Bluetooth devices, etc.). Listening to music, etc.), using low data traffic mode (such as listening to music with headphones, making and receiving calls, monitoring whether there are calls on the mobile phone, etc.), a total of 6 Bluetooth working modes.
例如:用户知晓接下来有两个接入设备要与终端设备建立蓝牙通信,一个用于听歌, 一个用于传输数据,数据流量不会特别大,则可以从众多蓝牙工作模式中,选择多设备连接—数据流量中等模式。For example: the user knows that there are two access devices to establish Bluetooth communication with the terminal device, one for listening to music, If one is used to transmit data, and the data traffic is not particularly large, you can choose multi-device connection - medium data traffic mode from the many Bluetooth working modes.
在实现时,可以预先为每种蓝牙工作模式配置对应的蓝牙工作参数(蓝牙协议、发射参数等),根据对应关系,能够确定多设备连接—数据流量中等模式对应的初始蓝牙协议和初始发射参数。During implementation, the corresponding Bluetooth working parameters (Bluetooth protocol, transmission parameters, etc.) can be configured in advance for each Bluetooth working mode. According to the corresponding relationship, the initial Bluetooth protocol and initial transmission parameters corresponding to the multi-device connection-medium data traffic mode can be determined. .
接入设备按照初始蓝牙协议和初始发射参数与终端设备连接后,可以根据接入设备实际的当前工作参数,确定接入设备和终端设备的工作状态,来启用硬件配置文件中优化射频通路数量、优化相应的发射协议选择、功率等级、发射功率配置,并保持硬件配置文件中优化参数,同时统计接入设备所用流量情况。After the access device is connected to the terminal device according to the initial Bluetooth protocol and initial transmission parameters, the working status of the access device and the terminal device can be determined based on the actual current working parameters of the access device to enable the optimized number of radio frequency channels in the hardware configuration file. Optimize the corresponding transmission protocol selection, power level, and transmission power configuration, maintain the optimized parameters in the hardware configuration file, and collect statistics on the traffic used by the access device.
在一个实施例中,根据当前的工作参数确定接入设备与终端设备的工作状态,如果确定当前的蓝牙协议和发射参数已经不适合当前的工作状态,需要优化蓝牙工作参数时,从至少一种蓝牙工作模式中,选取目标蓝牙工作模式;选取与目标蓝牙工作模式对应的目标蓝牙协议以及目标发射参数,以目标蓝牙协议以及目标发射参数继续工作。In one embodiment, the working status of the access device and the terminal device is determined based on the current working parameters. If it is determined that the current Bluetooth protocol and transmission parameters are no longer suitable for the current working status and it is necessary to optimize the Bluetooth working parameters, from at least one In the Bluetooth working mode, select the target Bluetooth working mode; select the target Bluetooth protocol and target transmission parameters corresponding to the target Bluetooth working mode, and continue working with the target Bluetooth protocol and target transmission parameters.
在实现时,如果确定当前的蓝牙协议和发射参数已经不适合当前的工作状态,需要优化蓝牙工作参数时,可以在终端设备的显示模块上输出更改操作提示,以提醒用户更改当前的蓝牙工作模式,以修改蓝牙工作参数。获取输入的第一选中操作;响应第一选中操作,从至少一种蓝牙工作模式中,选取目标蓝牙工作模式,选取与目标蓝牙工作模式对应的目标蓝牙协议以及目标发射参数,以目标蓝牙协议以及目标发射参数继续工作。During implementation, if it is determined that the current Bluetooth protocol and transmission parameters are no longer suitable for the current working status and it is necessary to optimize the Bluetooth working parameters, a change operation prompt can be output on the display module of the terminal device to remind the user to change the current Bluetooth working mode. , to modify Bluetooth working parameters. Obtain the first selection operation of the input; in response to the first selection operation, select the target Bluetooth working mode from at least one Bluetooth working mode, select the target Bluetooth protocol and target transmission parameters corresponding to the target Bluetooth working mode, and use the target Bluetooth protocol and Target launch parameters continue to work.
实际上,无论是自动设置调整还是人工设置调整,都会监听接入设备和终端设备工作状态,实时更新状态,当配对的设备由于接收状态的更改,或者反馈请求协议变更和所使用应用的流量上升,再或者是两个设备的硬件环境条件发生变化时,会再次启用优化射频通路数量、优化相应的发射协议选择、功率等级、发射功率配置,并保持硬件配置文件中优化参数,同时统计接入设备所用流量情况。In fact, whether it is automatic setting adjustment or manual setting adjustment, the working status of the access device and terminal device will be monitored and the status will be updated in real time. When the paired device changes due to the receiving status, or the feedback request protocol changes and the traffic of the application used increases, , or when the hardware environment conditions of the two devices change, it will be enabled again to optimize the number of radio frequency channels, optimize the corresponding transmission protocol selection, power level, and transmission power configuration, and maintain the optimized parameters in the hardware configuration file, while counting access The traffic used by the device.
在一示例性的实施方式中,在接入设备和终端设备工作过程中,会统计接入设备与终端设备之间的连接时长、流量使用大小以及终端设备的功耗,获取预设连接时长、预设流量上限以及预设功耗;若满足预设条件,则断开接入设备与终端设备之间的蓝牙通信,并保存接入设备与终端设备使用的当前蓝牙协议和当前发射参数;预设条件包括如下条件中的至少一个:连接时长超过预设连接时长;流量使用大小超过预设流量上限;终端设备的功耗超过预设功耗;终端设备的功耗超过预设功耗的时长超过预设时长。In an exemplary implementation, during the working process of the access device and the terminal device, the connection duration, traffic usage, and power consumption of the terminal device between the access device and the terminal device are counted, and the preset connection duration, Preset traffic upper limit and preset power consumption; if the preset conditions are met, disconnect the Bluetooth communication between the access device and the terminal device, and save the current Bluetooth protocol and current transmission parameters used by the access device and the terminal device; preset Suppose the conditions include at least one of the following conditions: the connection duration exceeds the preset connection duration; the traffic usage exceeds the preset traffic limit; the power consumption of the terminal device exceeds the preset power consumption; the power consumption of the terminal device exceeds the preset power consumption for a period of time Exceeded the preset time.
其中,对于预设功耗,可以根据不同的蓝牙协议设置不同的预设功耗。在实现时,可以满足其中一个条件,即断开连接,也可以满足其中至少两个或三个或者只有全部条件均满足时,才断开连接。 Among them, for the preset power consumption, different preset power consumption can be set according to different Bluetooth protocols. During implementation, one of the conditions can be met, that is, the connection is disconnected, or at least two or three of them can be met, or the connection can be disconnected only when all conditions are met.
在一示例性的实施方式中,断开接入设备与终端设备之间的蓝牙通信,并保存接入设备与终端设备使用的当前蓝牙协议和当前发射参数之后,还包括:获取解锁密码;其中,解锁密码用于重新激活终端设备与接入设备之间的蓝牙通信;以及若解锁密码与预设解锁密码一致,则接入设备与终端设备根据按照当前蓝牙协议和当前发射参数继续进行蓝牙通信。In an exemplary embodiment, after disconnecting the Bluetooth communication between the access device and the terminal device and saving the current Bluetooth protocol and current transmission parameters used by the access device and the terminal device, the method further includes: obtaining an unlocking password; wherein , the unlocking password is used to reactivate the Bluetooth communication between the terminal device and the access device; and if the unlocking password is consistent with the preset unlocking password, the access device and the terminal device continue Bluetooth communication according to the current Bluetooth protocol and current transmission parameters. .
在实现时,解锁密码可以是在断开终端设备和接入设备的蓝牙连接后,由用户输入的,如果解锁密码验证通过,可以继续终端设备和接入设备之间的蓝牙通信。When implemented, the unlocking password can be input by the user after disconnecting the Bluetooth connection between the terminal device and the access device. If the unlocking password is verified, the Bluetooth communication between the terminal device and the access device can be continued.
在实际应用中,无论是自动设置调整还是人工设置调整,当接入设备所用流量达到设置流量限制或者工作时间的限制,或者接入设备使用蓝牙连接功能导致本终端设备长时间的处于协议中最大发生功率的状态,系统软件启动报警模式,强制接入设备断开,并设置蓝牙不可见,结束接入设备与本终端设备蓝牙配对,保存最后时刻蓝牙的相关配置。若接入设备仍想与本终端设备蓝牙配对,需要重置本终端设备蓝牙,或者系统拨号界面中,输入专门设计的密码进行解锁清空相关数据。In practical applications, whether it is automatic setting adjustment or manual setting adjustment, when the traffic used by the access device reaches the set traffic limit or working time limit, or the access device uses the Bluetooth connection function, resulting in the terminal device being at the maximum limit in the protocol for a long time. When power is generated, the system software starts the alarm mode, forces the access device to disconnect, and sets Bluetooth to be invisible, ends the Bluetooth pairing of the access device and the terminal device, and saves the relevant Bluetooth configuration at the last moment. If the access device still wants to pair with the Bluetooth of this terminal device, it needs to reset the Bluetooth of this terminal device, or enter a specially designed password in the system dialing interface to unlock and clear the relevant data.
为了便于理解本公开实施例提供的技术方案,下面结合图4~图5对本公开实施例提供的自动设置调整和人工设置调整做进一步说明。In order to facilitate understanding of the technical solutions provided by the embodiments of the present disclosure, the automatic setting adjustment and manual setting adjustment provided by the embodiments of the present disclosure will be further described below with reference to FIGS. 4 to 5 .
图4所示,本公开实施例提供的一种自动设置调整方法主要包括如下步骤三个步骤。As shown in Figure 4, an automatic setting adjustment method provided by an embodiment of the present disclosure mainly includes the following three steps.
第一步:在终端设备的界面设置中打开蓝牙连接设置的界面,将蓝牙MIMO模式选择,蓝牙连接的名称,PIN码等相关上层信息设置完毕,根据终端设备的发射状态、接收状态的判定,启用硬件配置文件中预先确定的初始发射等级,协议类型和发射功率配置,终端设备的蓝牙连接功能开启。Step 1: Open the Bluetooth connection setting interface in the interface settings of the terminal device, and set the Bluetooth MIMO mode selection, Bluetooth connection name, PIN code and other relevant upper-layer information. Based on the determination of the transmitting status and receiving status of the terminal device, The initial transmission level, protocol type and transmission power configuration predetermined in the hardware configuration file are enabled, and the Bluetooth connection function of the terminal device is turned on.
第二步,等待其他设备与终端设备的蓝牙进行配对,若暂时没有其他设备与终端设备的蓝牙进行配对,关闭蓝牙连接设置选项,并在界面上显示相关信息,提醒用户蓝牙连接已经关闭,若已有设备与本终端设备的蓝牙进行配对,根据接入设备的请求应用类型、和所使用应用的流量估计,以及接收状态的判定,启用硬件配置文件中优化射频通路数量、优化相应的发射协议选择、功率等级、发射功率配置,并保持硬件配置文件中优化参数,同时统计接入设备所用流量情况。The second step is to wait for other devices to pair with the Bluetooth of the terminal device. If no other device is paired with the Bluetooth of the terminal device, close the Bluetooth connection setting option and display relevant information on the interface to remind the user that the Bluetooth connection has been closed. If The existing device is paired with the Bluetooth of the terminal device. Based on the request application type of the access device, the traffic estimation of the used application, and the determination of the receiving status, the hardware configuration file is enabled to optimize the number of radio frequency channels and optimize the corresponding transmission protocol. Select, power level, transmit power configuration, and maintain the optimized parameters in the hardware configuration file, while counting the traffic used by the access device.
第三步,监听接入设备与配对设备的蓝牙工作状况,实时更新工作状态,当配对设备由于接收状态的更改,或者反馈请求协议变更和所使用应用的流量上升,再或者是两个移动终端的硬件环境条件发生变化,再次启用硬件配置文件中优化射频通路数量、优化相应的发射协议选择、功率等级、发射功率配置,并保持硬件配置文件中优化参数,同时统计接入设备所用流量情况。The third step is to monitor the Bluetooth working status of the access device and the paired device, and update the working status in real time. When the paired device changes the receiving status, or the feedback request protocol changes and the traffic of the application used increases, or two mobile terminals If the hardware environment conditions change, re-enable the optimized number of radio frequency channels in the hardware configuration file, optimize the corresponding transmission protocol selection, power level, and transmission power configuration, and maintain the optimized parameters in the hardware configuration file, while counting the traffic used by the access device.
当接入设备所用流量达到设置流量上限或者工作时长的限制,或者接入设备使用蓝牙 连接功能导致终端设备长时间的处于协议中最大发生功率的状态,系统软件启动报警模式,强制接入设备与终端设备断开蓝牙连接,并设置蓝牙不可见,结束接入设备与本终端设备的蓝牙配对,保存最后时刻蓝牙的相关配置。若接入设备仍想与本终端设备蓝牙配对,需要重置本终端设备蓝牙,或者系统拨号界面中,输入专门设计的密码进行解锁清空相关数据,继续回到第二步。When the traffic used by the access device reaches the set traffic limit or working time limit, or the access device uses Bluetooth The connection function causes the terminal device to be in the maximum power generation state in the protocol for a long time. The system software starts the alarm mode, forces the access device and the terminal device to disconnect the Bluetooth connection, and sets Bluetooth to be invisible, ending the communication between the access device and the terminal device. Bluetooth pairing, save the last moment Bluetooth related configuration. If the access device still wants to pair with the Bluetooth of this terminal device, you need to reset the Bluetooth of this terminal device, or enter a specially designed password in the system dialing interface to unlock and clear the relevant data, and continue to the second step.
然后,结合图5对人工设置调整方法的实现方式进行描述,这种方法的实现是基于用户侧来进行的,在用户配置终端设备蓝牙工作状态时,可以根据使用蓝牙工作情况和工作状态的情况,自行选择蓝牙的状态并建立,可以完成很好的人机交互。Then, the implementation of the manual setting adjustment method is described in conjunction with Figure 5. The implementation of this method is based on the user side. When the user configures the Bluetooth working status of the terminal device, it can be based on the Bluetooth working status and working status. , select the status of Bluetooth and establish it by yourself, which can complete good human-computer interaction.
第一步,打开蓝牙连接设置APP界面,将蓝牙MIMO模式选择,蓝牙连接的名称,PIN码等相关上层信息设置完毕,同时设置连接时长限制和流量上限,除此之外,区别于自动设置调整方式,用户需要根据终端设备蓝牙使用情况、或者与配对的设备使用蓝牙的情况来自行选择以下模式:使用数据流量大模式(如WIFI共享热点等)、使用数据流量中等模式(如语音导航、车载蓝牙设备听歌等)、使用数据流量小模式(如耳机听歌,接打电话,监听手机是否有电话等),使用的是否为多设备连接共享模式(如多套耳机共同听歌,一套设备导航另外一套设备听歌等等)。The first step is to open the Bluetooth connection setting APP interface, select the Bluetooth MIMO mode, set the name of the Bluetooth connection, PIN code and other related upper-layer information, and set the connection time limit and traffic limit. In addition, it is different from the automatic setting adjustment. method, users need to choose the following modes according to the Bluetooth usage of the terminal device or the use of Bluetooth with the paired device: using a large data traffic mode (such as WIFI shared hotspot, etc.), using a medium data traffic mode (such as voice navigation, car Listening to music on Bluetooth devices, etc.), using low data traffic mode (such as listening to music with headphones, making and receiving calls, monitoring whether there are calls on the mobile phone, etc.), whether using multi-device connection sharing mode (such as multiple sets of headphones to listen to music together, one set of headphones to listen to music together, etc.) Device navigation, listening to music on another set of devices, etc.).
第二步,等待其他设备与终端设备蓝牙配对,若暂时没有设备与本终端设备蓝牙配对,则关闭蓝牙设置选项,并上报信息到界面中,提醒用户蓝牙热点已经关闭,若已有设备与本终端设备蓝牙配对,根据人工设置的相关条件,先将各个模式下的相关情况与硬件配置文件中优化相应的配置进行匹配和分组,然后开始进行接入设备接收状态和本终端设备的状态判定,启用硬件配置文件中优化相应的发射协议选择、功率等级、发射功率配置,并保持硬件配置文件中优化参数,同时统计接入设备所用流量情况。The second step is to wait for Bluetooth pairing between other devices and the terminal device. If no device is currently paired with the terminal device, turn off the Bluetooth setting option and report information to the interface to remind the user that the Bluetooth hotspot has been turned off. If there is already a device paired with the terminal device, For Bluetooth pairing of terminal devices, according to the manually set relevant conditions, the relevant situations in each mode are first matched and grouped with the optimized corresponding configurations in the hardware configuration file, and then the reception status of the access device and the status of the terminal device are determined. Enable the optimization of the corresponding transmission protocol selection, power level, and transmission power configuration in the hardware configuration file, maintain the optimization parameters in the hardware configuration file, and collect statistics on the traffic used by the access device.
第三步,监听接入设备与连接蓝牙设备工作状况,实时更新状态,当蓝牙配对的设备由于接收状态的更改,或者反馈请求协议类型修改和所使用应用的流量上升,此时就需要用户在本终端设备上,重新建立新配置的蓝牙,而与其配对的设备也需重新与本终端设备的蓝牙进行配对;当接入设备所用流量达到设置流量限制,系统软件启动报警模式,强制接入设备断开,结束设备与本终端设备蓝牙进行配对连接工作,保存最后时刻蓝牙相关配置。若接入设备仍想与本终端设备蓝牙进行配对连接工作,需要进入本终端设备中的蓝牙设置APP界面,进行解锁清空相关数据,继续回到第二步。The third step is to monitor the working status of the access device and the connected Bluetooth device, and update the status in real time. When the Bluetooth paired device changes in the receiving status, or the feedback request protocol type is modified and the traffic of the application used increases, the user needs to On this terminal device, re-establish the newly configured Bluetooth, and the device paired with it also needs to be re-paired with the Bluetooth of this terminal device; when the traffic used by the access device reaches the set traffic limit, the system software starts the alarm mode and forces access to the device Disconnect to end the Bluetooth pairing connection between the device and this terminal device, and save the last moment Bluetooth related configuration. If the accessed device still wants to perform Bluetooth pairing and connection work with the terminal device, it needs to enter the Bluetooth settings APP interface of the terminal device, unlock and clear the relevant data, and continue to the second step.
其中,对于人工设置调整方式,与相关技术相比,会引起用户界面的变化,且该变化带来显著的用户体验提升。Among them, the manual setting adjustment method will cause changes in the user interface compared with related technologies, and this change will bring significant improvement in user experience.
首先,用户打开蓝牙设置界面,可以对是否启用蓝牙MIMO模式进行选择,之后,进入第一级菜单,选择蓝牙模式,其中有两个选项,第一选项为蓝牙便携设备,第二选项为 蓝牙终端设备,第一选项为蓝牙耳机,汽车,蓝牙功能的打印机等,第二选项为蓝牙手机,平板,笔记本电脑等终端设备;进入第一选项后,切换到第二级菜单选择,用户进入该菜单后可根据自身终端设备处于第一级菜单中哪一个选项来确定第二级菜单的内容,蓝牙终端设备下的第二级菜单,分为使用数据流量大模式(如WIFI共享热点等),使用数据流量中等模式(如语音导航、车载蓝牙设备听歌等),使用数据流量小模式(如耳机听歌,接打电话,监听手机是否有电话等);用户可以根据蓝牙配对后的=终端设备、或者其他设备使用蓝牙的情况来自行选择第二级菜单中的选项。而第一级菜单中,蓝牙连接模式的第二级菜单并不是本公开的相关变化,所以这里暂时不进行介绍。根据第一级菜单和第二级菜单的结果跳出第三级菜单,而第三级菜单主要是将用户的选择统计显示出来,并且加入蓝牙配对按钮,这样用户就可以根据自己对APP的操作完成了移动终端设备蓝牙工作状态的创建,而移动终端设备根据人工设置的相关参数,同时结合硬件指标和能力,挑选最小功耗的协议和发射功率,打开蓝牙功能,供其他设备连接和使用。First, the user opens the Bluetooth settings interface and can choose whether to enable Bluetooth MIMO mode. Then, enter the first-level menu and select Bluetooth mode. There are two options. The first option is Bluetooth portable device, and the second option is For Bluetooth terminal devices, the first option is Bluetooth headsets, cars, Bluetooth-enabled printers, etc., and the second option is Bluetooth mobile phones, tablets, laptops and other terminal devices; after entering the first option, switch to the second-level menu selection, and the user enters After this menu, you can determine the content of the second-level menu according to which option your terminal device is in the first-level menu. The second-level menu under the Bluetooth terminal device is divided into large data traffic modes (such as WIFI sharing hotspots, etc.) , use the medium data traffic mode (such as voice navigation, listening to music on car Bluetooth devices, etc.), use the small data traffic mode (such as listening to music with headphones, making and receiving calls, monitoring whether there are calls on the mobile phone, etc.); users can follow the = after Bluetooth pairing If the terminal device or other device uses Bluetooth, you can select the options in the second-level menu by yourself. Among the first-level menus, the second-level menu of the Bluetooth connection mode is not a relevant change of the present disclosure, so it will not be introduced here for the time being. The third-level menu pops up based on the results of the first-level menu and the second-level menu. The third-level menu mainly displays the statistics of the user's choices and adds a Bluetooth pairing button, so that the user can complete the tasks according to their own operations on the APP. The Bluetooth working status of the mobile terminal device is created, and the mobile terminal device selects the protocol and transmission power with the minimum power consumption according to the manually set relevant parameters, combined with the hardware indicators and capabilities, and turns on the Bluetooth function for other devices to connect and use.
同时,为了减少了蓝牙的连接过程繁琐过程,可以添加白名单,将认证的接入设备加入白名单后,在下一次连接接入设备时,如果接入设备在白名单中,则可以直接连接,这样可以减少反复的数据加解密过程和每次连接都需进行的身份验证的过程,从而减少了对终端设备的基带部分的应用,使移动终端设备资源利用减少,释放部分处理资源,提高移动终端设备的运行速度。At the same time, in order to reduce the tedious process of Bluetooth connection, you can add a whitelist. After adding the certified access device to the whitelist, the next time you connect to the access device, if the access device is in the whitelist, you can connect directly. This can reduce repeated data encryption and decryption processes and the identity verification process required for each connection, thereby reducing the application of the baseband part of the terminal device, reducing the resource utilization of the mobile terminal device, releasing some processing resources, and improving the mobile terminal The operating speed of the device.
综上,基于本公开提供的技术方案,无论是对于用户或者是终端设备来讲,都是具有极大的优势。In summary, the technical solution provided based on the present disclosure has great advantages for both users and terminal devices.
首先,对于用户来说,在使用终端设备时,具有如下几项优点:1、监测设备的蓝牙使用情况,这样可以控制与终端设备配对的设备使用的流量和时间,动态调整蓝牙的使用情况;2、降低终端的更换速度,因为温度始终可以保持在一定范围内,减少了老化,增加了电池的使用寿命;3、蓝牙连接期间,虽然人体距离太近会被辐射到,但是并不像之前的热点机制,所以会减少对人体的辐射,可以使用户放心使用;以及4、当用户使用终端设备的时候,如果天线被遮挡或者失效,立刻可以启用另外一个通路的天线,保证在使用的时候不会因为天线的效率问题,导致断开连接或者产生杂音、断续音等影响用户体验的现象发生。First of all, for users, when using terminal devices, it has the following advantages: 1. Monitor the Bluetooth usage of the device, so that the traffic and time used by the device paired with the terminal device can be controlled, and the Bluetooth usage can be dynamically adjusted; 2. Reduce the replacement speed of the terminal, because the temperature can always be maintained within a certain range, which reduces aging and increases the service life of the battery; 3. During Bluetooth connection, although the human body will be radiated if it is too close, it is not like before The hotspot mechanism will reduce the radiation to the human body and allow users to use it with confidence; and 4. When the user uses the terminal device, if the antenna is blocked or fails, the antenna of another channel can be activated immediately to ensure that the antenna is in use during use. There will be no disconnection or noise, intermittent sounds or other phenomena that affect the user experience due to antenna efficiency issues.
其次是对终端设备,具有如下几项优点:对电池的影响,由于终端设备采取了这种机制,一直快速消耗电能的状态有所减弱,会导致电池发热处于一个可控范围之内,降低了电池的消耗速度,同时减少了充放电的次数,增加电池的使用寿命;减少了对终端设备的基带部分的应用,使终端设备资源利用减少,释放部分处理资源,提高终端设备的运行速度;以及降低终端设备中相关芯片的功耗,减少了该芯片长时间大功率发射的风险系数, 进而减少了芯片被毁的几率,保证终端设备的相关联功能正常使用。Secondly, for terminal equipment, it has the following advantages: The impact on the battery, because the terminal equipment adopts this mechanism, the state of rapid consumption of power is weakened, which will cause the battery heating to be within a controllable range, reducing The consumption speed of the battery also reduces the number of charges and discharges, increasing the service life of the battery; reducing the application of the baseband part of the terminal device, reducing the resource utilization of the terminal device, releasing some processing resources, and improving the operating speed of the terminal device; and Reduce the power consumption of related chips in terminal equipment and reduce the risk factor of the chip transmitting high power for a long time. This reduces the chance of chip damage and ensures the normal use of related functions of the terminal equipment.
接下来结合实例,对本公开实施例提供的蓝牙功率调整方法做进一步说明。Next, the Bluetooth power adjustment method provided by the embodiments of the present disclosure will be further described with reference to examples.
首先,设定应用场景为:一台手机蓝牙使用情况,连接配对设备为另一台手机,另一台手机与这一台手机的配对的目的是使用蓝牙直连模式进行数据传输,后面停止数据传输后,开始使用蓝牙共享热点下载大型网络游戏,最后,导致流量达到上限,同时两个手机的放置位置比较接近,信号质量很好。而应用这一技术或者实现方法的设备,并不是在场景中多个设备都会采用这种方法和办法,主要取决于在蓝牙应用场景中,设备处于的功能地位和连接状态,从而实现的是动态调整状态,保证用户体验的效果。在上述应用场景中,很明显数据传输和提供蓝牙共享热点的手机为采用这种方法和办法的主力设备。First, set the application scenario as follows: one mobile phone’s Bluetooth usage, the connecting and pairing device is another mobile phone, the purpose of pairing the other mobile phone with this mobile phone is to use Bluetooth direct connection mode for data transmission, and then stop the data After the transmission, the Bluetooth shared hotspot was used to download large-scale online games. Finally, the traffic reached the upper limit. At the same time, the two mobile phones were placed relatively close to each other and the signal quality was very good. For devices that apply this technology or implementation method, not all devices in the scenario will adopt this method and approach. It mainly depends on the functional status and connection status of the device in the Bluetooth application scenario, so that what is achieved is dynamic. Adjust the status to ensure the effect of user experience. In the above application scenarios, it is obvious that mobile phones that transmit data and provide Bluetooth shared hotspots are the main devices using this method and approach.
其次,针对蓝牙配置自动调整设置的方法进行实例分析,A手机为主力设备,另外一台需要上网的手机称为B手机,用户将A手机的蓝牙配置设定完成,等待B手机与A手机进行蓝牙配对,B手机配对成功后开始进行数据传输,此时A手机开始启动终端设备蓝牙性能优化,通过获取B手机的工作参数确定B手机的请求速率并不需要很快,同时所使用应用的流量比较少,与此同时,两个手机的发射状态满足硬件指标,两个手机的接收状态都很好,接收信号维持在-25dBm左右,此时,监测到A手机热点参数处于蓝牙4.0协议模式,功率等级在class1,功率在11dBm,根据相应优化标准和指标分析判断结论,需要将模式进行降低,同时,降低功率,使得A手机内部的芯片电流降低,释放部分资源,减少A手机的耗电量,启用硬件配置文件中优化相应的发射协议选择、功率等级、发射功率配置,将A手机蓝牙参数变更为蓝牙协议模式不变(仍然为蓝牙4.0协议模式),功率等级为class2,功率在4dBm,并保持硬件配置文件中优化参数,同时,统计接入设备所用流量情况;此时B手机停止数据传输后,开始使用蓝牙共享热点下载大型网络游戏,此时所使用应用的流量上升,与A手机的相对位置保持与之前一致,A手机监测到B手机流量状况突然上升,所使用应用的流量上升,此时A手机再次启用硬件配置文件中优化相应的发射协议选择、功率等级、发射功率配置,将A手机蓝牙参数变更为:蓝牙协议模式为蓝牙BLE协议模式,功率在0dBm,并保持硬件配置文件中优化参数,同时统计接入设备所用流量情况;一段时间后,发现B手机使用流量达到上限,A手机系统软件启动报警模式并隐藏蓝牙,强制B手机断开,使蓝牙设备不可见,但由于B手机软件并未下载完成,用户在A手机上键盘输入热点解锁码,系统自动将蓝牙设为可见,保持之前的为蓝牙BLE协议模式,功率在0dBm的状态,B手机与A手机蓝牙进行配对连接。Secondly, an example analysis is conducted on the method of automatically adjusting Bluetooth configuration settings. Mobile phone A is the main device, and another mobile phone that needs to access the Internet is called mobile phone B. The user completes the Bluetooth configuration settings of mobile phone A and waits for mobile phone B to communicate with mobile phone A. Bluetooth pairing. After mobile phone B is paired successfully, data transmission begins. At this time, mobile phone A starts to optimize the Bluetooth performance of the terminal device. By obtaining the working parameters of mobile phone B, it is determined that the request rate of mobile phone B does not need to be very fast. At the same time, the traffic of the application used Relatively few. At the same time, the transmitting status of the two mobile phones meets the hardware indicators. The receiving status of both mobile phones is very good, and the received signal is maintained at about -25dBm. At this time, it is detected that the hotspot parameters of mobile phone A are in Bluetooth 4.0 protocol mode. The power level is class1 and the power is 11dBm. According to the corresponding optimization standards and indicator analysis and judgment conclusions, the mode needs to be lowered. At the same time, reducing the power will reduce the chip current inside mobile phone A, release some resources, and reduce the power consumption of mobile phone A. , enable the optimization of the corresponding transmission protocol selection, power level, and transmission power configuration in the hardware configuration file, change the Bluetooth parameters of mobile phone A to the Bluetooth protocol mode unchanged (still Bluetooth 4.0 protocol mode), the power level is class2, and the power is 4dBm. And keep the optimized parameters in the hardware configuration file, and at the same time, count the traffic used by the access device; at this time, after mobile phone B stops transmitting data, it starts to use the Bluetooth shared hotspot to download large-scale online games. At this time, the traffic of the applications used increases, which is similar to that of mobile phone A. The relative position remains the same as before. Mobile phone A detects a sudden increase in traffic conditions of mobile phone B, and the traffic of the application used increases. At this time, mobile phone A once again enables the optimization of the corresponding transmission protocol selection, power level, and transmission power configuration in the hardware configuration file. Change the Bluetooth parameters of mobile phone A to: the Bluetooth protocol mode is the Bluetooth BLE protocol mode, the power is at 0dBm, and keep the optimized parameters in the hardware configuration file. At the same time, it counts the traffic used by the access device; after a period of time, it is found that the traffic used by mobile phone B has reached the upper limit. , the system software of mobile phone A activates the alarm mode and hides Bluetooth, forcing mobile phone B to disconnect and making the Bluetooth device invisible. However, because the software of mobile phone B has not been downloaded, the user enters the hotspot unlock code on the keyboard of mobile phone A, and the system automatically switches the Bluetooth setting to To be visible, keep the previous Bluetooth BLE protocol mode, the power is at 0dBm, and the B mobile phone and A mobile phone are paired and connected via Bluetooth.
最后,针对蓝牙配置人工设置的软件以及启用多设备共享模式的实现方式方法进行实例分析。同样的,应用这一技术或者实现方法的设备,并不是在场景中多个设备都会采用这种方法,主要取决于在蓝牙应用场景中,设备处于的功能地位和连接状态,从而实现的 是动态调整状态,保证用户体验的效果。在上述场景中,很明显数据传输和提供蓝牙共享热点的手机为采用这种方法和办法的主力设备。Finally, an example analysis is conducted on the software for manually setting Bluetooth configuration and the implementation method of enabling multi-device sharing mode. Similarly, devices that apply this technology or implementation method will not adopt this method for multiple devices in the scenario. It mainly depends on the functional status and connection status of the device in the Bluetooth application scenario, so as to achieve It is a dynamic adjustment state to ensure the effect of user experience. In the above scenario, it is obvious that mobile phones that transmit data and provide Bluetooth shared hotspots are the main devices using this method and approach.
提供蓝牙服务的手机称为A手机,即为主力设备,另外,两个蓝牙音频设备为B设备和C设备,用户打开A手机的蓝牙配置APP,开始对蓝牙进行设置,由于B设备需要接入导航音频,C设备需要播放A手机的音频,开始多设备同传模式,用户自己判断不会太多流量,但需要保持B设备和C设备同时连接,自行选择蓝牙MIMO模式-网络使用数据流量中模式,选择完成后,A手机开始创建蓝牙,B设备和C设备与A手机所创建的蓝牙进行配对,此时A手机配置蓝牙MIMO模式并启用硬件配置文件中优化相应的发射协议选择、功率等级、发射功率配置,将蓝牙4.0协议模式,功率等级在class1,功率在7dBm,并保持硬件配置文件中优化参数,同时统计接入设备所用流量情况;此时,用户使用B设备使用蓝牙共享热点功能,同时需要C设备不在使用,B设备开始下载软件,此时所使用应用的流量上升,与A手机的相对位置保持与之前一致,A手机监测到B设备应用的流量很快上升,C设备不接入A手机,开始在界面上提示用户更改蓝牙配置,用户切换蓝牙配置模式,变更为网络使用数据流量大模式,点击重新配置热点选项,A手机蓝牙BLE协议模式,功率在0dBm,关闭蓝牙MIMO模式,并保持硬件配置文件中优化参数,同时,统计接入设备所用流量情况;一段时间后,发现B设备使用流量达到上限,A手机系统软件启动报警模式,强制B设备断开,使蓝牙自动变更为不可见,同时蓝牙设置APP选项呈现灰色状态,但由于B设备软件并未下载完成,用户在A手机激活蓝牙设置APP选项,进行解锁清空相关数据,手动将热点设为可见,但用户需要重新对蓝牙设置APP进行选择,选择完成后,A手机重新根据硬件配置文件,保持之前的为蓝牙BLE协议模式,功率在0dBm的状态,B设备重新与A手机蓝牙进行配对连接,整个终端设备热点性能优化模块工作流程执行情况如上述。The mobile phone that provides Bluetooth service is called mobile phone A, which is the main device. In addition, the two Bluetooth audio devices are device B and device C. The user opens the Bluetooth configuration APP of mobile phone A and starts setting up Bluetooth. Because device B needs to be connected For navigation audio, device C needs to play the audio of mobile phone A and start the multi-device simultaneous interpretation mode. The user judges that there will not be too much traffic, but needs to keep device B and device C connected at the same time. Select the Bluetooth MIMO mode by yourself - the network is using data traffic. mode, after the selection is completed, mobile phone A starts to create Bluetooth, and device B and device C are paired with the Bluetooth created by mobile phone A. At this time, mobile phone A configures the Bluetooth MIMO mode and enables the optimization of the corresponding transmission protocol selection and power level in the hardware configuration file. , transmit power configuration, set the Bluetooth 4.0 protocol mode, the power level is at class1, the power is at 7dBm, and keep the optimized parameters in the hardware configuration file, and at the same time count the traffic used by the access device; at this time, the user uses the B device to use the Bluetooth hotspot sharing function , at the same time, device C needs to be no longer in use, and device B starts to download software. At this time, the traffic of the application used increases, and the relative position with mobile phone A remains the same as before. Mobile phone A detects that the traffic of the application of device B rises quickly, and device C does not Connect to mobile phone A and start prompting the user to change the Bluetooth configuration on the interface. The user switches the Bluetooth configuration mode to the large network data traffic mode, clicks to reconfigure the hotspot option, the Bluetooth BLE protocol mode of mobile phone A, the power is at 0dBm, and turns off Bluetooth MIMO. mode, and maintain the optimized parameters in the hardware configuration file, and at the same time, count the traffic used by the access device; after a period of time, it is found that the traffic used by device B reaches the upper limit, and the system software of mobile phone A starts the alarm mode, forcing device B to disconnect, causing Bluetooth to automatically Change to invisible, and the Bluetooth Settings APP option is grayed out. However, since the download of the B device software has not been completed, the user activates the Bluetooth Settings APP option on the A phone, unlocks it, clears the relevant data, and manually sets the hotspot to visible, but the user needs Re-select the Bluetooth settings APP. After the selection is completed, mobile phone A will re-maintain the Bluetooth BLE protocol mode according to the hardware configuration file and the power is at 0dBm. Device B will re-pair and connect with mobile phone A via Bluetooth. The entire terminal device will be a hotspot. The workflow execution of the performance optimization module is as above.
无论是采用两种方法或者办法,最终的目的都是降低蓝牙模块的电流,从而降低整体终端设备的功耗,达到省电的目的,延长终端使用寿命。Regardless of the two methods or approaches, the ultimate goal is to reduce the current of the Bluetooth module, thereby reducing the power consumption of the overall terminal device, achieving the purpose of saving power, and extending the service life of the terminal.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is Better implementation. Based on this understanding, the technical solution of the present disclosure can be embodied in the form of a software product in essence or that contributes to related technologies. The computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ), includes several instructions to cause a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of various embodiments of the present disclosure.
在本实施例中还提供了一种终端设备,该设备用于实现上述实施例及可选实施方式,已经进行过说明的不再赘述。 This embodiment also provides a terminal device, which is used to implement the above embodiments and optional implementations. What has been described will not be described again.
此外,本公开实施例还提供了一种蓝牙功率调整装置,该装置用于实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In addition, embodiments of the present disclosure also provide a Bluetooth power adjustment device, which is used to implement the above embodiments and optional implementations. What has already been described will not be described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
图6是根据本公开实施例的一种蓝牙功率调整装置的结构框图,如图6所示,该装置适用于终端设备,终端设备中配置有至少一种蓝牙协议,以及每种蓝牙协议各自对应的发射参数;该装置包括:获取模块601,用于获取接入设备和终端设备的当前工作参数;其中,接入设备为与终端设备建立蓝牙通信的设备;选取模块602,用于根据当前工作参数,从至少一种蓝牙协议,以及每种蓝牙协议各自对应的发射参数,选取目标蓝牙协议以及目标发射参数;以及工作模块603,用于根据目标蓝牙协议以及目标发射参数控制终端设备与接入设备进行蓝牙通信。Figure 6 is a structural block diagram of a Bluetooth power adjustment device according to an embodiment of the present disclosure. As shown in Figure 6, the device is suitable for terminal equipment. The terminal equipment is configured with at least one Bluetooth protocol, and each Bluetooth protocol has its own corresponding The transmission parameters; the device includes: an acquisition module 601, used to obtain the current working parameters of the access device and the terminal device; wherein the access device is a device that establishes Bluetooth communication with the terminal device; a selection module 602, used to obtain the current working parameters of the access device and the terminal device; parameters, select the target Bluetooth protocol and the target transmission parameters from at least one Bluetooth protocol and the corresponding transmission parameters of each Bluetooth protocol; and the working module 603 is used to control the terminal device and access according to the target Bluetooth protocol and the target transmission parameters. The device communicates via Bluetooth.
在一示例性的实施方式中,选取模块602,用于根据当前工作参数,确定接入设备与终端设备的工作状态;选取与工作状态匹配的目标蓝牙协议以及目标发射参数。In an exemplary implementation, the selection module 602 is used to determine the working status of the access device and the terminal device according to the current working parameters; and select the target Bluetooth protocol and target transmission parameters that match the working status.
在一示例性的实施方式中,选取模块602,用于根据当前工作参数,确定接入设备和终端设备之间的工作状态发生改变;以及从至少一种蓝牙工作模式中,选取目标蓝牙工作模式;选取与目标蓝牙工作模式对应的目标蓝牙协议以及目标发射参数。In an exemplary implementation, the selection module 602 is configured to determine that the working status between the access device and the terminal device has changed based on the current working parameters; and select a target Bluetooth working mode from at least one Bluetooth working mode. ;Select the target Bluetooth protocol and target transmission parameters corresponding to the target Bluetooth working mode.
在一示例性的实施方式中,该蓝牙功率调整装置还包括:初始化模块,用于在获取接入设备和终端设备的当前工作参数之前,获取初始蓝牙协议和初始发射参数;以及当判定接入设备与终端设备建立蓝牙连接时,终端设备和接入设备根据初始蓝牙协议和初始发射参数进行蓝牙通信。In an exemplary embodiment, the Bluetooth power adjustment device further includes: an initialization module, used to obtain the initial Bluetooth protocol and initial transmission parameters before obtaining the current working parameters of the access device and the terminal device; and when determining the access When the device establishes a Bluetooth connection with the terminal device, the terminal device and the access device conduct Bluetooth communication according to the initial Bluetooth protocol and initial transmission parameters.
在一示例性的实施方式中,初始化模块,用于从至少一种蓝牙工作模式中,确定初始蓝牙工作模式;确定与初始蓝牙工作模式匹配的指定蓝牙协议和指定发射参数;以及将指定蓝牙协议作为初始蓝牙协议,将指定发射参数作为初始发射参数。In an exemplary embodiment, the initialization module is configured to determine an initial Bluetooth operating mode from at least one Bluetooth operating mode; determine a designated Bluetooth protocol and designated transmission parameters that match the initial Bluetooth operating mode; and assign the designated Bluetooth protocol to As an initial Bluetooth protocol, the specified transmission parameters will be used as initial transmission parameters.
在一示例性的实施方式中,初始化模块,用于统计当前与终端设备蓝牙连接的接入设备的数量;根据接入设备的数量,确定初始蓝牙协议和初始发射参数。In an exemplary implementation, the initialization module is configured to count the number of access devices currently connected to the terminal device via Bluetooth; and determine the initial Bluetooth protocol and initial transmission parameters based on the number of access devices.
在一示例性的实施方式中,该蓝牙功率调整装置还包括:断开模块,用于获取预设连接时长、预设流量上限以及预设功耗;若满足预设条件,则断开接入设备与终端设备之间的蓝牙通信,并保存接入设备与终端设备使用的当前蓝牙协议和当前发射参数;预设条件包括如下条件中的至少一个:连接时长超过预设连接时长;流量使用大小超过预设流量上限;终端设备的功耗超过预设功耗;终端设备的功耗超过预设功耗所持续的时长超过预设时长。In an exemplary implementation, the Bluetooth power adjustment device also includes: a disconnect module, used to obtain the preset connection duration, the preset flow upper limit, and the preset power consumption; if the preset conditions are met, disconnect the access Bluetooth communication between the device and the terminal device, and saves the current Bluetooth protocol and current transmission parameters used by the access device and the terminal device; the preset conditions include at least one of the following conditions: the connection duration exceeds the preset connection duration; the traffic usage size The preset traffic limit is exceeded; the power consumption of the terminal device exceeds the preset power consumption; the power consumption of the terminal device exceeds the preset power consumption for longer than the preset time.
在一示例性的实施方式中,该蓝牙功率调整装置还包括:解锁模块,用于在断开接入 设备与终端设备之间的蓝牙通信,并保存接入设备与终端设备使用的当前蓝牙协议和当前发射参数之后,获取解锁密码;其中,解锁密码用于重新激活终端设备与接入设备之间的蓝牙通信;若解锁密码与预设解锁密码一致,则接入设备与终端设备根据当前蓝牙协议和当前发射参数继续进行蓝牙通信。In an exemplary implementation, the Bluetooth power adjustment device further includes: an unlocking module for disconnecting access Bluetooth communication between the device and the terminal device, and after saving the current Bluetooth protocol and current transmission parameters used by the access device and the terminal device, obtain the unlock password; where the unlock password is used to reactivate the communication between the terminal device and the access device. Bluetooth communication; if the unlocking password is consistent with the preset unlocking password, the access device and the terminal device continue to communicate via Bluetooth according to the current Bluetooth protocol and current transmission parameters.
在一示例性的实施方式中,终端设备工作在蓝牙多输入多输出MIMO模式下,终端设备与多个接入设备蓝牙通信;In an exemplary implementation, the terminal device operates in the Bluetooth multiple-input multiple-output MIMO mode, and the terminal device communicates with multiple access devices via Bluetooth;
对于每个接入设备,进行如下处理:获取接入设备和终端设备的当前工作参数;根据当前工作参数,从至少一种蓝牙协议,以及每种蓝牙协议各自对应的发射参数中,选取目标蓝牙协议以及目标发射参数;以及终端设备与接入设备根据目标蓝牙协议以及目标发射参数进行蓝牙通信。For each access device, perform the following processing: obtain the current working parameters of the access device and terminal device; select the target Bluetooth from at least one Bluetooth protocol and the corresponding transmission parameters of each Bluetooth protocol based on the current working parameters. protocol and target transmission parameters; and the terminal device and the access device perform Bluetooth communication according to the target Bluetooth protocol and target transmission parameters.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but is not limited to this: the above modules are all located in the same processor; or the above modules can be implemented in any combination. The forms are located in different processors.
本公开的实施例还提供了一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present disclosure also provide a storage medium in which a computer program is stored, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
在一示例性的实施方式中,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:获取接入设备和终端设备的当前工作参数;其中,接入设备为与终端设备建立蓝牙通信的设备;根据当前工作参数,从至少一种蓝牙协议,以及每种蓝牙协议各自对应的发射参数中,选取目标蓝牙协议以及目标发射参数;以及终端设备与接入设备根据目标蓝牙协议以及目标发射参数进行蓝牙通信。In an exemplary implementation, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for performing the following steps: obtaining the current working parameters of the access device and the terminal device; wherein the access device is A device that establishes Bluetooth communication with the terminal device; selects the target Bluetooth protocol and target transmission parameters from at least one Bluetooth protocol and the corresponding transmission parameters of each Bluetooth protocol according to the current working parameters; and the terminal device and the access device according to Target Bluetooth protocol and target transmission parameters for Bluetooth communication.
在一示例性的实施方式中,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary implementation, in this embodiment, the above-mentioned storage medium may include but is not limited to: U disk, read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, Various media that can store computer programs, such as RAM (abbreviated as RAM), mobile hard disk, magnetic disk or optical disk.
本公开的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。其中,存储器可以采用图1中的存储器104,将图1中的存储器104作为该电子装置中的一种存储器的一种示例。当然,也可以采用其他类型的存储器。Embodiments of the present disclosure also provide an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments. The memory may be the memory 104 in FIG. 1 , and the memory 104 in FIG. 1 is taken as an example of a memory in the electronic device. Of course, other types of memory can also be used.
在一示例性的实施方式中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
在一示例性的实施方式中,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:获取接入设备和终端设备的当前工作参数;其中,接入设备为与终端设备建立蓝牙通信的设备;根据当前工作参数,从至少一种蓝牙协议,以及每种蓝牙协议各自 对应的发射参数中,选取目标蓝牙协议以及目标发射参数;以及终端设备与接入设备根据目标蓝牙协议以及目标发射参数进行蓝牙通信。In an exemplary implementation, in this embodiment, the above-mentioned processor may be configured to perform the following steps through a computer program: obtain the current working parameters of the access device and the terminal device; wherein the access device is the same as the terminal device. A device that establishes Bluetooth communication; according to the current working parameters, from at least one Bluetooth protocol, and each Bluetooth protocol From the corresponding transmission parameters, select the target Bluetooth protocol and the target transmission parameters; and the terminal device and the access device perform Bluetooth communication according to the target Bluetooth protocol and the target transmission parameters.
在一示例性的实施方式中,本实施例中的示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。In an exemplary implementation, for the examples in this embodiment, reference can be made to the examples described in the above-mentioned embodiments and optional implementations, and the details of this embodiment will not be repeated here.
通过本发明,通过监测接入设备和终端设备的当前工作参数,及时对接入设备和终端设备通信时所使用的蓝牙协议和发射参数进行调整,实现了动态配置蓝牙发射参数,使得终端设备的电流能够动态调整,进而优化终端设备蓝牙工作时产生的内部电流,优化终端设备的资源,从而达到降低终端设备高电流工作的概率,起到一定的节约功耗的作用。Through the present invention, by monitoring the current working parameters of the access device and the terminal device, the Bluetooth protocol and transmission parameters used when the access device and the terminal device communicate are adjusted in a timely manner, thereby realizing dynamic configuration of the Bluetooth transmission parameters, so that the terminal device The current can be dynamically adjusted to optimize the internal current generated by the terminal device during Bluetooth operation and optimize the resources of the terminal device, thereby reducing the probability of the terminal device working at high current and saving power consumption to a certain extent.
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,在一示例性的实施方式中,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present disclosure can be implemented using general-purpose computing devices, and they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices. In an exemplary embodiment, they may be implemented with program codes executable by a computing device, so that they may be stored in a storage device and executed by the computing device, and in some cases, may be implemented in different The steps shown or described are performed in the sequence herein, or are implemented as separate integrated circuit modules, or multiple modules or steps among them are implemented as a single integrated circuit module. As such, the present disclosure is not limited to any specific combination of hardware and software.
以上所述仅为本公开的可选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。 The above are only optional embodiments of the present disclosure, and are not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and changes. Any modifications, equivalent substitutions, improvements, etc. made within the principles of this disclosure shall be included in the protection scope of this disclosure.

Claims (13)

  1. 一种蓝牙功率调整方法,适用于终端设备,所述终端设备中配置有至少一种蓝牙协议,以及每种所述蓝牙协议各自对应的发射参数;所述调整方法包括:A Bluetooth power adjustment method, suitable for terminal equipment, the terminal equipment is configured with at least one Bluetooth protocol, and respective transmission parameters corresponding to each of the Bluetooth protocols; the adjustment method includes:
    获取接入设备和所述终端设备的当前工作参数;其中,所述接入设备为与所述终端设备建立蓝牙通信的设备;Obtain the current working parameters of the access device and the terminal device; wherein the access device is a device that establishes Bluetooth communication with the terminal device;
    根据所述当前工作参数,从至少一种蓝牙协议,以及每种所述蓝牙协议各自对应的发射参数中,选取目标蓝牙协议以及目标发射参数;以及According to the current working parameters, select a target Bluetooth protocol and a target transmission parameter from at least one Bluetooth protocol and the corresponding transmission parameters of each Bluetooth protocol; and
    所述终端设备与所述接入设备根据所述目标蓝牙协议以及所述目标发射参数进行蓝牙通信。The terminal device and the access device perform Bluetooth communication according to the target Bluetooth protocol and the target transmission parameters.
  2. 根据权利要求1所述的蓝牙功率调整方法,其中,所述根据所述当前工作参数,从至少一种蓝牙协议,以及每种所述蓝牙协议各自对应的发射参数中,选取目标蓝牙协议以及目标发射参数,包括:The Bluetooth power adjustment method according to claim 1, wherein the target Bluetooth protocol and the target Bluetooth protocol are selected from at least one Bluetooth protocol and corresponding transmission parameters of each Bluetooth protocol according to the current working parameters. Launch parameters, including:
    根据所述当前工作参数,确定所述接入设备与所述终端设备的工作状态;以及Determine the working status of the access device and the terminal device according to the current working parameters; and
    选取与所述工作状态匹配的目标蓝牙协议以及目标发射参数。Select the target Bluetooth protocol and target transmission parameters that match the working state.
  3. 根据权利要求1所述的蓝牙功率调整方法,其中,所述根据所述当前工作参数,从至少一种蓝牙协议,以及每种所述蓝牙协议各自对应的发射参数中,选取目标蓝牙协议以及目标发射参数,包括:The Bluetooth power adjustment method according to claim 1, wherein the target Bluetooth protocol and the target Bluetooth protocol are selected from at least one Bluetooth protocol and corresponding transmission parameters of each Bluetooth protocol according to the current working parameters. Launch parameters, including:
    根据所述当前工作参数,确定所述接入设备和所述终端设备之间的工作状态发生改变;According to the current working parameters, determine that the working status between the access device and the terminal device has changed;
    从至少一种蓝牙工作模式中,选取目标蓝牙工作模式;以及Select a target Bluetooth working mode from at least one Bluetooth working mode; and
    选取与所述目标蓝牙工作模式对应的目标蓝牙协议以及目标发射参数。Select the target Bluetooth protocol and target transmission parameters corresponding to the target Bluetooth working mode.
  4. 根据权利要求1所述的蓝牙功率调整方法,其中,所述获取接入设备和所述终端设备的当前工作参数之前,还包括:The Bluetooth power adjustment method according to claim 1, wherein before obtaining the current working parameters of the access device and the terminal device, it further includes:
    获取初始蓝牙协议和初始发射参数;以及Obtain the initial Bluetooth protocol and initial transmission parameters; and
    在判定所述接入设备与所述终端设备建立蓝牙连接的情况下,所述终端设备和所述接入设备根据所述初始蓝牙协议和所述初始发射参数进行蓝牙通信。When it is determined that the access device establishes a Bluetooth connection with the terminal device, the terminal device and the access device perform Bluetooth communication according to the initial Bluetooth protocol and the initial transmission parameters.
  5. 根据权利要求4所述的蓝牙功率调整方法,其中,所述获取初始蓝牙协议和初始发射参数,包括:The Bluetooth power adjustment method according to claim 4, wherein said obtaining the initial Bluetooth protocol and initial transmission parameters includes:
    从至少一种蓝牙工作模式中,确定初始蓝牙工作模式;Determine the initial Bluetooth working mode from at least one Bluetooth working mode;
    确定与所述初始蓝牙工作模式匹配的指定蓝牙协议和指定发射参数;以及Determine the designated Bluetooth protocol and designated transmission parameters that match the initial Bluetooth operating mode; and
    将所述指定蓝牙协议作为所述初始蓝牙协议,将所述指定发射参数作为所述初始发射参数。 The designated Bluetooth protocol is used as the initial Bluetooth protocol, and the designated transmission parameters are used as the initial transmission parameters.
  6. 根据权利要求4所述的蓝牙功率调整方法,其中,所述获取初始蓝牙协议和初始发射参数,包括:The Bluetooth power adjustment method according to claim 4, wherein said obtaining the initial Bluetooth protocol and initial transmission parameters includes:
    统计当前与所述终端设备蓝牙连接的接入设备的数量;以及Count the number of access devices currently connected to the terminal device via Bluetooth; and
    根据所述接入设备的数量,确定所述初始蓝牙协议和所述初始发射参数。The initial Bluetooth protocol and the initial transmission parameters are determined according to the number of access devices.
  7. 根据权利要求1至6中任意一项所述的蓝牙功率调整方法,其中,所述当前工作参数包括:所述接入设备与所述终端设备之间的连接时长、流量使用大小和所述终端设备的功耗,所述调整方法还包括:The Bluetooth power adjustment method according to any one of claims 1 to 6, wherein the current working parameters include: the connection duration between the access device and the terminal device, the traffic usage size and the terminal device. The power consumption of the device, the adjustment method also includes:
    获取预设连接时长、预设流量上限以及预设功耗;以及Get the preset connection duration, preset traffic limit, and preset power consumption; and
    若满足预设条件,则断开所述接入设备与所述终端设备之间的蓝牙通信,并保存所述接入设备与所述终端设备使用的当前蓝牙协议和当前发射参数;所述预设条件包括如下条件中的至少一个:If the preset conditions are met, the Bluetooth communication between the access device and the terminal device is disconnected, and the current Bluetooth protocol and current transmission parameters used by the access device and the terminal device are saved; the preset Suppose the conditions include at least one of the following conditions:
    所述连接时长超过所述预设连接时长;The connection duration exceeds the preset connection duration;
    所述流量使用大小超过所述预设流量上限;The traffic usage exceeds the preset traffic upper limit;
    所述终端设备的功耗超过所述预设功耗;以及The power consumption of the terminal device exceeds the preset power consumption; and
    所述终端设备的功耗超过所述预设功耗所持续的时长超过预设时长。The power consumption of the terminal device exceeds the preset power consumption for longer than the preset time period.
  8. 根据权利要求7所述的蓝牙功率调整方法,其中,所述断开所述接入设备与所述终端设备之间的蓝牙通信,并保存所述接入设备与所述终端设备使用的当前蓝牙协议和当前发射参数之后,还包括:The Bluetooth power adjustment method according to claim 7, wherein the Bluetooth communication between the access device and the terminal device is disconnected, and the current Bluetooth used by the access device and the terminal device is saved. After the protocol and current transmission parameters, it also includes:
    获取解锁密码;其中,所述解锁密码被配置为重新激活所述终端设备与所述接入设备之间的蓝牙通信;以及Obtain an unlocking password; wherein the unlocking password is configured to reactivate Bluetooth communication between the terminal device and the access device; and
    若所述解锁密码与预设解锁密码一致,则所述接入设备与所述终端设备根据所述当前蓝牙协议和当前发射参数继续进行蓝牙通信。If the unlocking password is consistent with the preset unlocking password, the access device and the terminal device continue to perform Bluetooth communication according to the current Bluetooth protocol and current transmission parameters.
  9. 根据权利要求1至6中任意一项所述的蓝牙功率调整方法,其中,所述终端设备工作在蓝牙多输入多输出MIMO模式下,所述终端设备与多个接入设备蓝牙通信;The Bluetooth power adjustment method according to any one of claims 1 to 6, wherein the terminal device operates in the Bluetooth multiple-input multiple-output MIMO mode, and the terminal device communicates with multiple access devices via Bluetooth;
    对于每个所述接入设备,进行如下处理:For each access device, the following processing is performed:
    获取所述接入设备和所述终端设备的当前工作参数;Obtain the current working parameters of the access device and the terminal device;
    根据所述当前工作参数,从至少一种蓝牙协议,以及每种所述蓝牙协议各自对应的发射参数中,选取目标蓝牙协议以及目标发射参数;以及According to the current working parameters, select a target Bluetooth protocol and a target transmission parameter from at least one Bluetooth protocol and the corresponding transmission parameters of each Bluetooth protocol; and
    所述终端设备与所述接入设备根据所述目标蓝牙协议以及所述目标发射参数进行蓝牙通信。The terminal device and the access device perform Bluetooth communication according to the target Bluetooth protocol and the target transmission parameters.
  10. 一种终端设备,其中,所述终端设备中配置至少一种蓝牙协议,以及每种所述蓝牙协议各自对应的发射参数; A terminal device, wherein at least one Bluetooth protocol is configured in the terminal device, and transmission parameters corresponding to each Bluetooth protocol;
    所述终端设备,被配置为获取接入设备和所述终端设备的当前工作参数;其中,所述接入设备为与所述终端设备建立蓝牙通信的设备;根据所述当前工作参数,从至少一种蓝牙协议,以及每种所述蓝牙协议各自对应的发射参数中,选取目标蓝牙协议以及目标发射参数;所述终端设备与所述接入设备根据所述目标蓝牙协议以及所述目标发射参数进行蓝牙通信。The terminal device is configured to obtain the current working parameters of the access device and the terminal device; wherein the access device is a device that establishes Bluetooth communication with the terminal device; according to the current working parameters, from at least A Bluetooth protocol, and a target Bluetooth protocol and a target transmission parameter are selected from the corresponding transmission parameters of each Bluetooth protocol; the terminal device and the access device are configured according to the target Bluetooth protocol and the target transmission parameter. Perform Bluetooth communication.
  11. 根据权利要求10所述的终端设备,其中,所述终端设备中配置有蓝牙模块,所述蓝牙模块包括:基带控制器、至少两组无线收发器和至少两个天线端口;The terminal device according to claim 10, wherein a Bluetooth module is configured in the terminal device, and the Bluetooth module includes: a baseband controller, at least two groups of wireless transceivers and at least two antenna ports;
    所述至少两组无线收发器均与所述基带控制器相连;且每组所述无线收发器一一对应连接有一个所述无线端口;其中,不同组的所述无线收发器与所述无线端口被配置为建立所述终端设备与不同接入设备之间的蓝牙连接;The at least two groups of wireless transceivers are connected to the baseband controller; and each group of wireless transceivers is connected to one of the wireless ports in a one-to-one correspondence; wherein the wireless transceivers of different groups are connected to the wireless port. The port is configured to establish a Bluetooth connection between the terminal device and different access devices;
    其中,所述终端设备配置有至少两种蓝牙协议,以及每种所述蓝牙协议各自对应的发射参数;且所述终端设备通过每组无线收发器红外和天线端口与每个所述接入设备进行蓝牙通信的情况下,从至少两种蓝牙协议,以及每种所述蓝牙协议各自对应的发射参数中,选取目标蓝牙协议以及目标发射参数;所述终端设备与所述接入设备根据所述目标蓝牙协议以及所述目标发射参数进行蓝牙通信。Wherein, the terminal device is configured with at least two Bluetooth protocols, and transmission parameters corresponding to each Bluetooth protocol; and the terminal device communicates with each of the access devices through each set of wireless transceiver infrared and antenna ports. In the case of Bluetooth communication, the target Bluetooth protocol and the target transmission parameters are selected from at least two Bluetooth protocols and the corresponding transmission parameters of each Bluetooth protocol; the terminal device and the access device are selected according to the The target Bluetooth protocol and the target transmission parameters are used for Bluetooth communication.
  12. 根据权利要求10所述的终端设备,其中,所述终端设备上配置有硬件配置文件,所述硬件配置文件中配置有至少一种蓝牙协议,以及每种所述蓝牙协议各自对应的发射参数。The terminal device according to claim 10, wherein a hardware configuration file is configured on the terminal device, at least one Bluetooth protocol is configured in the hardware configuration file, and transmission parameters corresponding to each Bluetooth protocol are configured.
  13. 一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至9中任一项所述的方法。 A storage medium in which a computer program is stored, wherein the computer program is configured to execute the method according to any one of claims 1 to 9 when running.
PCT/CN2023/071885 2022-04-01 2023-01-12 Bluetooth power adjustment method, and terminal device and storage medium WO2023185213A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210347818.5A CN116981033A (en) 2022-04-01 2022-04-01 Bluetooth power adjustment method, terminal equipment and storage medium
CN202210347818.5 2022-04-01

Publications (1)

Publication Number Publication Date
WO2023185213A1 true WO2023185213A1 (en) 2023-10-05

Family

ID=88199041

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/071885 WO2023185213A1 (en) 2022-04-01 2023-01-12 Bluetooth power adjustment method, and terminal device and storage medium

Country Status (2)

Country Link
CN (1) CN116981033A (en)
WO (1) WO2023185213A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101069436A (en) * 2006-09-22 2007-11-07 创蕊信通(北京)科技有限公司 Single transmitter-receiver set, radio communication equipment and radio communicating method thereof
US20160065263A1 (en) * 2014-09-02 2016-03-03 Qualcomm Incorporated Dual band concurrent transceiver
CN111757303A (en) * 2019-03-26 2020-10-09 华为技术有限公司 Control method of Bluetooth transmitting power and terminal equipment
CN112566224A (en) * 2019-09-26 2021-03-26 中兴通讯股份有限公司 Data transmission control method, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101069436A (en) * 2006-09-22 2007-11-07 创蕊信通(北京)科技有限公司 Single transmitter-receiver set, radio communication equipment and radio communicating method thereof
US20160065263A1 (en) * 2014-09-02 2016-03-03 Qualcomm Incorporated Dual band concurrent transceiver
CN111757303A (en) * 2019-03-26 2020-10-09 华为技术有限公司 Control method of Bluetooth transmitting power and terminal equipment
CN112566224A (en) * 2019-09-26 2021-03-26 中兴通讯股份有限公司 Data transmission control method, terminal and storage medium

Also Published As

Publication number Publication date
CN116981033A (en) 2023-10-31

Similar Documents

Publication Publication Date Title
JP4237771B2 (en) Link connection method between communication terminals equipped with a Bluetooth wireless device
CN105592529B (en) dual base station for wireless communication system
CN106030560B (en) Automatic mutual networking share
CN108811035B (en) Method for accessing wireless fidelity Wi-Fi (wireless fidelity) by user equipment and Wi-Fi access node
CN108990038A (en) Device-to-device (D2D) discovery of operator's auxiliary
JP2014529209A (en) Method for setting communication mode and Wi-Fi device
US20190007850A1 (en) Systems and methods for controlling receive diversity for wireless personal area network communication
WO2015165024A1 (en) Data transmission method and terminal
US10735970B2 (en) Method and apparatus for operating a device on a licensed spectrum and an unlicensed spectrum
CN109392110B (en) Method and device for indicating uplink transmission
WO2020083346A1 (en) Method and apparatus for controlling terminal device, and terminal device readable storage medium
CN103109579A (en) Device, system, and method of adjusting channel utilization for wireless transmission
CN104219734A (en) Internet access method and device for internet device
US9426278B2 (en) Location based mobile communications device auto-configuration
CN111954238A (en) Network distribution method, network distribution device and household appliance
CN102545966A (en) Host device, method and system
WO2022037352A1 (en) Information transmission method and communication apparatus
WO2021057036A1 (en) Data transmission control method, terminal and storage medium
US10893482B2 (en) Selection of mode and data range in device-to-device close field communication
CN110177384B (en) Access method, device, wireless access point and readable storage medium
CN110268646A (en) Control method, device, system and the storage medium of antenna channels
US9883545B2 (en) Apparatus and method for selecting channel in wireless communication system
CN101232657B (en) Method and related apparatus for improving MIMO function in a wireless communication system
WO2022160306A1 (en) Wireless communication apparatus and antenna switching method therefor
TWI724139B (en) D2d based communication method and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23777592

Country of ref document: EP

Kind code of ref document: A1