CN110139262B - Bluetooth communication control method and related product - Google Patents

Bluetooth communication control method and related product Download PDF

Info

Publication number
CN110139262B
CN110139262B CN201910497650.4A CN201910497650A CN110139262B CN 110139262 B CN110139262 B CN 110139262B CN 201910497650 A CN201910497650 A CN 201910497650A CN 110139262 B CN110139262 B CN 110139262B
Authority
CN
China
Prior art keywords
target
bluetooth
transmitting power
preset
electronic equipment
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910497650.4A
Other languages
Chinese (zh)
Other versions
CN110139262A (en
Inventor
张烨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910497650.4A priority Critical patent/CN110139262B/en
Publication of CN110139262A publication Critical patent/CN110139262A/en
Application granted granted Critical
Publication of CN110139262B publication Critical patent/CN110139262B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/382Monitoring; Testing of propagation channels for resource allocation, admission control or handover
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • 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/06TPC algorithms
    • H04W52/14Separate analysis of uplink or downlink
    • H04W52/146Uplink power control
    • 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
    • H04W52/24TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
    • H04W52/245TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters taking into account received signal strength

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a Bluetooth communication control method and a related product, which are applied to electronic equipment, and the method comprises the following steps: receiving a received signal strength indicating value RSSI of a Bluetooth signal of the terminal equipment, wherein the electronic equipment and the terminal equipment are in a Bluetooth connection state; when the RSSI is lower than a first preset threshold value, increasing the Bluetooth transmitting power of the electronic equipment to obtain a first target Bluetooth transmitting power, and controlling the electronic equipment to work at the first target Bluetooth transmitting power; and when the RSSI is greater than a second preset threshold value, reducing the Bluetooth transmitting power of the electronic equipment to obtain a second target Bluetooth transmitting power, and controlling the electronic equipment to work at the second target Bluetooth transmitting power, wherein the first preset threshold value is smaller than the second preset threshold value. Adopt this application embodiment can intelligent regulation bluetooth transmit power.

Description

Bluetooth communication control method and related product
Technical Field
The present application relates to the field of communications technologies, and in particular, to a bluetooth communication control method and related products.
Background
With the widespread use of electronic devices (such as mobile phones, tablet computers, and the like), the applications that can be supported by electronic devices are increasing, the functions are becoming more and more powerful, and the electronic devices are developing towards diversification and personalization directions, and becoming indispensable electronic articles for use in the life of users.
For the electronic device, the bluetooth module is a standard matching module of the electronic device, and the larger the bluetooth module transmitting power is, the larger the power consumption of the electronic device is, and the smaller the bluetooth module transmitting power is, the shorter the transmission distance is, so that the problem of how to intelligently adjust the bluetooth transmitting power of the electronic device is urgently solved.
Disclosure of Invention
The embodiment of the application provides a Bluetooth communication control method and a related product, which can intelligently adjust the Bluetooth transmitting power of electronic equipment.
In a first aspect, an embodiment of the present application provides a bluetooth communication control method, which is applied to an electronic device, and the method includes:
receiving a received signal strength indication value RSSI of a Bluetooth signal of a terminal device, wherein the electronic device and the terminal device are in a Bluetooth connection state;
when the RSSI is lower than a first preset threshold value, increasing the Bluetooth transmitting power of the electronic equipment to obtain a first target Bluetooth transmitting power, and controlling the electronic equipment to work at the first target Bluetooth transmitting power;
and when the RSSI is greater than a second preset threshold value, reducing the Bluetooth transmitting power of the electronic equipment to obtain a second target Bluetooth transmitting power, and controlling the electronic equipment to work at the second target Bluetooth transmitting power, wherein the first preset threshold value is less than the second preset threshold value.
In a second aspect, an embodiment of the present application provides a bluetooth communication control apparatus, which is applied to an electronic device, and the apparatus includes:
the communication unit is used for receiving a received signal strength indication value RSSI of a Bluetooth signal of terminal equipment, and the electronic equipment and the terminal equipment are in a Bluetooth connection state;
the adjusting unit is used for increasing the Bluetooth transmitting power of the electronic equipment when the RSSI is lower than a first preset threshold value to obtain a first target Bluetooth transmitting power and controlling the electronic equipment to work at the first target Bluetooth transmitting power;
the adjusting unit is further specifically configured to reduce the bluetooth transmission power of the electronic device when the RSSI is greater than a second preset threshold, obtain a second target bluetooth transmission power, and control the electronic device to operate with the second target bluetooth transmission power, where the first preset threshold is smaller than the second preset threshold.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in the first aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that the bluetooth communication control method and related products described in the embodiments of the present application are applied to an electronic device, receive a received signal strength indication value RSSI of a bluetooth signal of a terminal device, the electronic device and the terminal device are in a bluetooth connection state, when the RSSI is lower than a first preset threshold value, increasing the Bluetooth transmitting power of the electronic equipment to obtain a first target Bluetooth transmitting power, controlling the electronic equipment to work at the first target Bluetooth transmitting power, when the RSSI is greater than a second preset threshold value, the Bluetooth transmitting power of the electronic equipment is reduced to obtain a second target Bluetooth transmitting power, the electronic equipment is controlled to work at the second target Bluetooth transmitting power, wherein, first predetermined threshold value is less than the second predetermined threshold value, so, can be according to terminal equipment's RSSI, the bluetooth transmit power of dynamic adjustment has promoted the intelligence that bluetooth transmit power adjusted.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 1B is a schematic diagram of a network architecture for implementing a bluetooth communication control method according to an embodiment of the present application;
fig. 1C is a schematic flowchart of a bluetooth communication control method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another bluetooth communication control method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another bluetooth communication control method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another electronic device provided in an embodiment of the present application;
fig. 5A is a block diagram of functional units of a bluetooth communication control apparatus according to an embodiment of the present application;
fig. 5B is a block diagram of functional units of another bluetooth communication control apparatus according to an embodiment of the present disclosure;
fig. 5C is a block diagram of functional units of another bluetooth communication control apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device and the terminal device related to the embodiment of the application can include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices (smart watches, smart bracelets, wireless earphones, augmented reality/virtual reality devices, smart glasses), computing devices or other processing devices connected to wireless modems, User Equipment (UE) in various forms, Mobile Stations (MS), smart home devices (smart refrigerators, smart reading lamps, smart water dispensers, smart washing machines, smart televisions, smart ovens, smart massage chairs, smart electric cookers, smart cameras, smart routers and the like), and the like.
In addition, in the embodiment of the present application, both the first preset threshold and the second preset threshold may be set by a user or default by a system, where the first preset threshold is smaller than the second preset threshold.
The following describes embodiments of the present application in detail.
Referring to fig. 1A, fig. 1A is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application, the electronic device 100 includes a storage and processing circuit 110, and a sensor 170 connected to the storage and processing circuit 110, the sensor 170 includes a camera, where:
the electronic device 100 may include control circuitry, which may include storage and processing circuitry 110. The storage and processing circuitry 110 may be a memory, such as a hard drive memory, a non-volatile memory (e.g., flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), a volatile memory (e.g., static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in storage and processing circuitry 110 may be used to control the operation of electronic device 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 110 may be used to run software in the electronic device 100, such as an Internet browsing application, a Voice Over Internet Protocol (VOIP) telephone call application, an email application, a media playing application, operating system functions, and so forth. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality based on status indicators such as status indicator lights of light emitting diodes, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) display screens, operations associated with performing wireless communication functionality, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 100, to name a few.
The electronic device 100 may include input-output circuitry 150. The input-output circuit 150 may be used to enable the electronic device 100 to input and output data, i.e., to allow the electronic device 100 to receive data from an external device and also to allow the electronic device 100 to output data from the electronic device 100 to the external device. The input-output circuit 150 may further include a sensor 170. Sensor 170 may include an ambient light sensor, proximity sensors based on light and capacitance, a fingerprint identification module, a vein identification module, a touch sensor (e.g., based on an optical touch sensor and/or a capacitive touch sensor, wherein the touch sensor may be part of a touch display screen, and may also be used independently as a touch sensor structure), an acceleration sensor, a camera, and other sensors, etc., the camera may be a front camera or a rear camera, the fingerprint identification module may be integrated below the display screen for collecting fingerprint images, the fingerprint identification module may be at least one of: optical fingerprint identification module, or ultrasonic fingerprint identification module, etc. do not limit here.
Input-output circuit 150 may also include one or more display screens, such as display screen 130. The display 130 may include one or a combination of liquid crystal display, organic light emitting diode display, electronic ink display, plasma display, display using other display technologies. The display screen 130 may include an array of touch sensors (i.e., the display screen 130 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The electronic device 100 may also include an audio component 140. The audio component 140 may be used to provide audio input and output functionality for the electronic device 100. Audio components 140 in electronic device 100 may include speakers, microphones, buzzers, tone generators, and other components for generating and detecting sound.
The communication circuit 120 may be used to provide the electronic device 100 with the capability to communicate with external devices. The communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 120 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in the Communication circuitry 120 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. The communication circuit 120 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuit and antenna, etc., and the communication circuit 120 may also include a bluetooth module and antenna.
The electronic device 100 may further include a battery, power management circuitry, and other input-output units 160. The input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.
A user may input commands through input-output circuitry 150 to control the operation of electronic device 100, and may use output data of input-output circuitry 150 to enable receipt of status information and other outputs from electronic device 100.
Referring to fig. 1B, referring to the electronic device described in fig. 1A, fig. 1B is a schematic diagram of a network architecture for implementing a bluetooth communication control method, where a connection communication connection is established between the electronic device and a terminal device, and based on the electronic device described in fig. 1A and fig. 1B, the following functions may be implemented:
receiving a received signal strength indication value RSSI of a Bluetooth signal of a terminal device, wherein the electronic device and the terminal device are in a Bluetooth connection state;
when the RSSI is lower than a first preset threshold value, increasing the Bluetooth transmitting power of the electronic equipment to obtain a first target Bluetooth transmitting power, and controlling the electronic equipment to work at the first target Bluetooth transmitting power;
and when the RSSI is greater than a second preset threshold value, reducing the Bluetooth transmitting power of the electronic equipment to obtain a second target Bluetooth transmitting power, and controlling the electronic equipment to work at the second target Bluetooth transmitting power, wherein the first preset threshold value is less than the second preset threshold value.
It can be seen that, in the electronic device described in this embodiment of the present application, a received signal strength indication value RSSI of a bluetooth signal of a terminal device is received, the electronic device and the terminal device are in a bluetooth connection state, when the RSSI is lower than a first preset threshold, the bluetooth transmission power of the electronic device is increased to obtain a first target bluetooth transmission power, and the electronic device is controlled to operate at the first target bluetooth transmission power, when the RSSI is greater than a second preset threshold, the bluetooth transmission power of the electronic device is reduced to obtain a second target bluetooth transmission power, and the electronic device is controlled to operate at the second target bluetooth transmission power, where the first preset threshold is smaller than the second preset threshold, so that the bluetooth transmission power can be dynamically adjusted according to the RSSI of the terminal device, and the intelligence of adjusting the bluetooth transmission power is improved.
Referring to fig. 1C, fig. 1C is a flowchart illustrating a bluetooth communication control method according to an embodiment of the present disclosure, and as shown in the drawing, the bluetooth communication control method is applied to the electronic device shown in fig. 1A and the network architecture shown in fig. 1B, and includes:
101. and receiving a received signal strength indication value RSSI of a Bluetooth signal of the terminal equipment, wherein the electronic equipment and the terminal equipment are in a Bluetooth connection state.
In the embodiment of the application, the electronic device and the terminal device both comprise a bluetooth module, the electronic device and the terminal device are in a bluetooth connection state, and data transmission can be performed between the electronic device and the terminal device through a bluetooth communication channel. In specific implementation, the electronic device may receive a Received Signal Strength Indication (RSSI) value of a bluetooth signal of the terminal device.
102. And when the RSSI is lower than a first preset threshold value, increasing the Bluetooth transmitting power of the electronic equipment to obtain a first target Bluetooth transmitting power, and controlling the electronic equipment to work at the first target Bluetooth transmitting power.
In specific implementation, when the RSSI is lower than a first preset threshold, the bluetooth transmission power of the electronic device may be increased, specifically, the operating current of the bluetooth module of the electronic device may be increased, or the operating voltage of the bluetooth module of the electronic device may be increased, or the operating current and the operating voltage of the bluetooth module of the electronic device may be increased at the same time, and so on. In addition, for the specific implementation of step 102, reference may be made to the method described in step 103, which has similar principles and is not described herein again.
In a possible example, in the step 102, increasing the bluetooth transmission power of the electronic device to obtain the first target bluetooth transmission power may include the following steps:
21. acquiring a reference signal intensity value, wherein the reference signal intensity value is any value between the first preset threshold and the second preset threshold;
22. determining a first target difference between the reference signal strength value and the RSSI;
23. determining a target first adjusting parameter corresponding to the first target difference value according to a mapping relation between a preset difference value and the first adjusting parameter;
24. and adjusting the Bluetooth transmitting power of the electronic equipment according to the target first adjusting parameter to obtain the first target Bluetooth transmitting power.
The first adjustment parameter may be at least one of the following: a current adjustment parameter, a voltage adjustment parameter, an amplification factor of a signal amplifier (the bluetooth module may include a signal amplifier), and the like, although the first adjustment parameter may also be a specific value, and is not limited herein, for example, the current bluetooth transmission power is amplified by a specified factor. Assuming that the bluetooth transmission power of the current electronic device is P1 and the first adjustment parameter is a (a >1), the first target bluetooth transmission power may be P1+ a or P1 a, which is not limited herein.
In a specific implementation, the electronic device may select a reference signal strength value, where the reference signal strength value is any value between a first preset threshold and a second preset threshold, for example, the reference signal strength value is (the first preset threshold + the second preset threshold)/2, further, a first target difference between the reference signal strength value and the RSSI is determined, and the first target difference is the reference signal strength value-RSSI, a mapping relationship between the preset difference and a first adjustment parameter may be stored in the electronic device in advance, and then, a target first adjustment parameter corresponding to the first target difference is determined according to the mapping relationship, and the bluetooth transmission power of the electronic device is adjusted according to the target first adjustment parameter, so as to obtain the first target bluetooth transmission power.
In a possible example, between the step 23 and the step 24, the following steps may be further included:
a1, obtaining target environment parameters;
a2, determining a target optimization coefficient corresponding to the target environment parameter according to a mapping relation between preset environment parameters and the optimization coefficient, wherein the value range of the optimization coefficient is 0-1;
then, in step 24, the bluetooth transmission power of the electronic device is adjusted according to the target adjustment parameter to obtain the first target bluetooth transmission power, which may be implemented as follows:
241. optimizing the target adjustment parameter according to the target optimization parameter to obtain an optimized first target adjustment parameter;
242. and adjusting the Bluetooth transmitting power of the electronic equipment according to the optimized target first adjusting parameter to obtain the first target Bluetooth transmitting power.
Wherein the environmental parameter may be at least one of: electromagnetic interference intensity, distance, number of obstacles, obstacle area, type of obstacle (e.g., wall, tree, etc.), type of environment (e.g., desert, sea, snow, forest, etc.), geographical location, etc., without limitation. The method comprises the steps that a mapping relation between preset environment parameters and optimization coefficients can be prestored in the electronic device, then a target optimization coefficient corresponding to a target environment parameter is determined according to the mapping relation, the value range of the optimization coefficient is 0-1, further, a target first adjustment parameter is optimized according to the target optimization parameter to obtain an optimized target first adjustment parameter, the optimized target first adjustment parameter is a target optimization parameter and a target first adjustment parameter, and then the Bluetooth emission power of the electronic device is adjusted according to the optimized target first adjustment parameter to obtain a first target Bluetooth emission power. In specific implementation, for example, the electronic device can optimize bluetooth transmission power adjustment according to the number of obstacles or the area of the obstacles, so that on one hand, automatic power control is realized, power consumption is saved while reliable connection is guaranteed, on the other hand, environmental factors (such as distance, obstacles, interference and the like) and bluetooth signal strength (RSSI) direct connection can be intelligently judged, the transmission power of the electronic device is adjusted as required, and non-stuck bluetooth connection in a remote environment and an environment with obstacles is realized.
103. And when the RSSI is greater than a second preset threshold value, reducing the Bluetooth transmitting power of the electronic equipment to obtain a second target Bluetooth transmitting power, and controlling the electronic equipment to work at the second target Bluetooth transmitting power, wherein the first preset threshold value is less than the second preset threshold value.
When the RSSI is greater than the second preset threshold, it indicates that the communication quality between the terminal device and the electronic device may exceed the expected effect, so the bluetooth transmission power of the electronic device can be properly reduced, and the power consumption of the electronic device is also reduced. Specifically, the electronic device can reduce the bluetooth transmission power of the electronic device when the RSSI is greater than the second preset threshold value, obtain the second target bluetooth transmission power, and control the electronic device to work with the second target bluetooth transmission power, so that not only the communication quality is ensured to a certain extent, but also the power consumption of the electronic device can be reduced. Of course, when the RSSI is between the first preset threshold and the second preset threshold, the current bluetooth transmission power may be kept in operation. In addition, the specific implementation of step 103 may refer to the method described in step 102, which has similar principles and is not described herein again.
In one possible example, in the step 103, reducing the bluetooth transmission power of the electronic device to obtain the second target bluetooth transmission power may include the following steps:
31. and determining a target channel quality evaluation value between the electronic equipment and the terminal equipment.
32. And when the target channel quality evaluation value is greater than a preset channel quality evaluation value, determining a difference value between the target channel quality evaluation value and the preset channel quality evaluation value to obtain a second target difference value.
33. And determining a target second adjustment parameter corresponding to the second target difference according to a mapping relation between a preset difference and the second adjustment parameter.
34. And adjusting the Bluetooth transmitting power of the electronic equipment according to the target second adjusting parameter to obtain the second target Bluetooth transmitting power.
The preset channel quality evaluation value may be set by the user or default by the system. In this embodiment of the present application, the channel quality evaluation value may be implemented by a signal-to-noise ratio or other evaluation formulas, which is not described herein again. The target second adjustment parameter may be at least one of: a current adjustment parameter, a voltage adjustment parameter, an amplification factor of a signal amplifier (the bluetooth module may include a signal amplifier), etc., however, the second adjustment parameter may also be a specific value, which is not limited herein.
In a specific implementation, the electronic device may determine a target channel quality evaluation value between the electronic device and the terminal device, determine a difference between the target channel quality evaluation value and the preset channel quality evaluation value when the target channel quality evaluation value is greater than the preset channel quality evaluation value, to obtain a second target difference, and may further pre-store a mapping relationship between the preset difference and a second adjustment parameter in the electronic device, and further determine a target second adjustment parameter corresponding to the second target difference according to the mapping relationship, and further adjust the bluetooth transmission power of the electronic device according to the target second adjustment parameter, to obtain a second target bluetooth transmission power, and further, adjust the bluetooth transmission power according to the channel quality is implemented.
In one possible example, after the step 31, the following step may be further included:
b1, when the target channel quality evaluation value is less than or equal to the preset channel quality evaluation value, acquiring a first target distance between the electronic device and the terminal device;
b2, determining a target Bluetooth power transmitting range corresponding to the first target distance according to a mapping relation between a preset distance and a Bluetooth transmitting power range;
and B3, adjusting the Bluetooth emission power of the electronic equipment to any Bluetooth emission power in the target Bluetooth power emission range to obtain the second target Bluetooth emission power, wherein any Bluetooth emission power is smaller than the current Bluetooth emission power of the electronic equipment.
In a specific implementation, the electronic device may include a ranging sensor, and the first target distance between the electronic device and the terminal device may be detected by the ranging sensor. The electronic device may acquire a first target distance between the electronic device and the terminal device when the target channel quality evaluation value is less than or equal to the preset channel quality evaluation value, and may also pre-store a mapping relationship between the preset distance and a bluetooth transmission power range in the electronic device, further determine a target bluetooth transmission power range corresponding to the first target distance according to the mapping relationship, and use any bluetooth transmission power less than the current bluetooth transmission power in the target bluetooth transmission power range as a second target bluetooth transmission power.
In a possible example, before or after any of the steps 101 to 103, the following steps may be further included:
c1, detecting a second target distance between the electronic equipment and the terminal equipment;
c2, determining a target Bluetooth bandwidth corresponding to the second target distance according to a mapping relation between a preset distance and the Bluetooth bandwidth;
and C3, adjusting the Bluetooth bandwidth of the electronic device to the target Bluetooth bandwidth, and controlling the electronic device to communicate with the target Bluetooth bandwidth.
The electronic equipment can comprise a distance measuring sensor, a second target distance between the electronic equipment and the terminal equipment can be detected through the distance measuring sensor, a mapping relation between a preset distance and a Bluetooth bandwidth can be stored in the electronic equipment in advance, then a target Bluetooth bandwidth corresponding to the second target distance is determined according to the mapping relation, the Bluetooth bandwidth of the electronic equipment is adjusted to be the target Bluetooth bandwidth, and the electronic equipment is controlled to communicate with the target Bluetooth bandwidth. For example, in a specific implementation, the bandwidth in the bluetooth 5 protocol may be automatically adjusted according to the communication distance and the signal strength, for example, a 125kbps mode is selected for a long distance, and a 2Mbps mode is selected for a short distance, so that communication within a certain distance range is guaranteed without being blocked, and for example, the headset mode of bluetooth may be adjusted according to the communication distance and the signal strength, for example, a bluetooth high-quality headset function may be turned on for a short distance, and only the most basic voice communication is guaranteed for a long distance without guaranteeing the quality of sound.
Of course, the bluetooth communication control method described in the foregoing embodiment of the present application may be applied not only to the electronic device side, but also to the terminal device side, and the specific implementation manner may be according to the foregoing steps 101 to 103, and so on.
In one possible example, before the increasing the bluetooth transmission power of the electronic device to obtain the first target bluetooth transmission power, the method may further include the following steps:
d1, acquiring target identity information of the terminal equipment;
d2, matching the target identity information with preset identity information;
d3, when the target identity information is successfully matched with the preset identity information, executing the step of increasing the Bluetooth transmitting power of the electronic equipment to obtain a first target Bluetooth transmitting power.
In this embodiment, the identity information may be at least one of the following: the method includes the steps that fingerprint images, face images, iris images, character strings, patterns, voiceprint information and the like are not limited, in specific implementation, electronic equipment can obtain target identity information of terminal equipment, then the target identity information is matched with preset identity information, when the target identity information is successfully matched with the preset identity information, the step of increasing the Bluetooth transmitting power of the electronic equipment is executed, and the first target Bluetooth transmitting power is obtained, otherwise, the current Bluetooth transmitting power can be kept to work continuously.
In one possible example, when the target identity information is the target vein image and the preset identity information is the preset vein template, the step D2 of matching the target identity information with the preset identity information may include the following steps:
d21, carrying out image segmentation on the target vein image to obtain a target vein area image;
d22, analyzing the characteristic point distribution of the target vein area image;
d23, performing circular image interception on the target vein area image according to M different circle centers to obtain M circular vein area images, wherein M is an integer larger than 3;
d24, selecting a target circular vein area image from the M circular vein area images, wherein the target circular vein area image comprises a larger number of characteristic points than other circular vein area images in the M circular vein area images;
d25, dividing the target circular vein area image to obtain N circular rings, wherein the widths of the N circular rings are the same;
d26, starting from the circular ring with the smallest radius in the N circular rings, sequentially matching the N circular rings with the preset vein template for feature points, and accumulating the matching values of the matched circular rings;
d27, when the accumulated matching value is larger than the preset matching threshold, immediately stopping the characteristic point matching, and outputting a prompt message of successful identification.
The electronic equipment can perform image segmentation on a target vein image to obtain a target vein region image, further analyze the distribution of feature points of the target vein region image, perform circular image interception on the target vein region image according to M different circle centers to obtain M circular vein region images, wherein M is an integer greater than 3, select the target circular vein region image from the M circular vein region images, the number of the feature points contained in the target circular vein region image is greater than that of other circular vein region images in the M circular vein region images, divide the target circular vein region image to obtain N circular rings, the ring widths of the N circular rings are the same, perform feature point matching on the N circular rings sequentially with a preset vein template from the circular ring with the smallest radius among the N circular rings, and accumulate the matching values of the matched circular rings, so that, in the vein identification process, feature points of different positions or different veins can be used for matching, namely sampling is conducted on the whole vein image, and the sampling can cover the whole vein area, so that corresponding standard reaching features can be found from each area for matching, when the accumulated matching value is larger than a preset matching threshold value, feature point matching is immediately stopped, and a prompt message that identity identification is successful is output, so that vein identification can be quickly and accurately identified.
Based on the method described in the present application, in the embodiment of the present application, in order to intelligently control the power consumption of the bluetooth module, the working power of the bluetooth module may be maintained at the minimum level when the communication link is stable as much as possible. The power control is adjusted based on its RSSI (received signal strength indicator) value. If the RSSI value decreases by a certain threshold, the power control mechanism may send a request to the other party to increase the strength of the output signal so that the communication can proceed smoothly. Otherwise, a request for reducing the strength of the output signal can be sent to the opposite side, and the power consumption is reduced while the normal communication is ensured.
It can be seen that the bluetooth communication control method described in the embodiments of the present application is applied to an electronic device, receives a received signal strength indicator RSSI of a bluetooth signal of a terminal device, the electronic device and the terminal device are in a bluetooth connection state, when the RSSI is lower than a first preset threshold value, increasing the Bluetooth transmitting power of the electronic equipment to obtain a first target Bluetooth transmitting power, controlling the electronic equipment to work at the first target Bluetooth transmitting power, when the RSSI is greater than a second preset threshold value, the Bluetooth transmitting power of the electronic equipment is reduced to obtain a second target Bluetooth transmitting power, the electronic equipment is controlled to work at the second target Bluetooth transmitting power, wherein, first default threshold value is less than the second default threshold value, so, can be according to terminal equipment's RSSI, dynamic adjustment bluetooth emission power has promoted the intelligence that bluetooth emission power adjusted.
Referring to fig. 2, in keeping with the embodiment shown in fig. 1C, fig. 2 is a flowchart illustrating a bluetooth communication control method according to an embodiment of the present application, and as shown in the figure, the bluetooth communication control method is applied to the electronic device shown in fig. 1A and the network architecture shown in fig. 1B, and includes:
201. and receiving a received signal strength indication value RSSI of a Bluetooth signal of the terminal equipment, wherein the electronic equipment and the terminal equipment are in a Bluetooth connection state.
202. And when the RSSI is lower than a first preset threshold value, increasing the Bluetooth transmitting power of the electronic equipment to obtain a first target Bluetooth transmitting power, and controlling the electronic equipment to work at the first target Bluetooth transmitting power.
203. And when the RSSI is greater than a second preset threshold value, reducing the Bluetooth transmitting power of the electronic equipment to obtain a second target Bluetooth transmitting power, and controlling the electronic equipment to work at the second target Bluetooth transmitting power, wherein the first preset threshold value is less than the second preset threshold value.
204. And detecting a second target distance between the electronic equipment and the terminal equipment.
205. And determining a target Bluetooth bandwidth corresponding to the second target distance according to a mapping relation between a preset distance and the Bluetooth bandwidth.
206. And adjusting the Bluetooth bandwidth of the electronic equipment to the target Bluetooth bandwidth, and controlling the electronic equipment to communicate with the target Bluetooth bandwidth.
For the detailed description of the steps 201 to 206, reference may be made to the corresponding steps of the bluetooth communication control method described in the above fig. 1C, which are not described herein again.
It can be seen that the bluetooth communication control method described in the embodiments of the present application is applied to an electronic device, and receives a received signal strength indicator RSSI of a bluetooth signal of a terminal device, the electronic device and the terminal device are in a bluetooth connection state, when the RSSI is lower than a first preset threshold, the bluetooth transmission power of the electronic device is increased to obtain a first target bluetooth transmission power, and the electronic device is controlled to operate at the first target bluetooth transmission power, when the RSSI is greater than a second preset threshold, the bluetooth transmission power of the electronic device is decreased to obtain a second target bluetooth transmission power, and the electronic device is controlled to operate at the second target bluetooth transmission power, wherein the first preset threshold is smaller than the second preset threshold, a second target distance between the electronic device and the terminal device is detected, and according to a mapping relationship between the preset distance and a bluetooth bandwidth, the target Bluetooth bandwidth corresponding to the second target distance is determined, the Bluetooth bandwidth of the electronic device is adjusted to be the target Bluetooth bandwidth, and the electronic device is controlled to communicate with the target Bluetooth bandwidth.
Referring to fig. 3, in keeping with the embodiment shown in fig. 1C, fig. 3 is a flowchart illustrating a bluetooth communication control method according to an embodiment of the present application, and as shown in the figure, the bluetooth communication control method is applied to the electronic device shown in fig. 1A and the network architecture shown in fig. 1B, and includes:
301. and receiving a received signal strength indication value RSSI of a Bluetooth signal of the terminal equipment, wherein the electronic equipment and the terminal equipment are in a Bluetooth connection state.
302. And when the RSSI is lower than a first preset threshold value, acquiring a reference signal strength value, wherein the reference signal strength value is any value between the first preset threshold value and a second preset threshold value.
303. A first target difference between the reference signal strength value and the RSSI is determined.
304. And determining a target first adjusting parameter corresponding to the first target difference according to a mapping relation between a preset difference and the first adjusting parameter.
305. And acquiring target environment parameters.
306. And determining a target optimization coefficient corresponding to the target environment parameter according to a mapping relation between a preset environment parameter and the optimization coefficient, wherein the value range of the optimization coefficient is 0-1.
307. And optimizing the target first adjusting parameter according to the target optimizing parameter to obtain the optimized target first adjusting parameter.
308. Adjusting the Bluetooth transmitting power of the electronic equipment according to the optimized target first adjusting parameter to obtain a first target Bluetooth transmitting power, and controlling the electronic equipment to work at the first target Bluetooth transmitting power;
309. and when the RSSI is greater than a second preset threshold value, reducing the Bluetooth transmitting power of the electronic equipment to obtain a second target Bluetooth transmitting power, and controlling the electronic equipment to work at the second target Bluetooth transmitting power, wherein the first preset threshold value is less than the second preset threshold value.
For the detailed description of steps 301 to 309, reference may be made to the corresponding steps of the bluetooth communication control method described in fig. 1C, which are not described herein again.
It can be seen that the bluetooth communication control method described in the embodiment of the present application is applied to an electronic device, and receives a received signal strength indication value RSSI of a bluetooth signal of a terminal device, the electronic device and the terminal device are in a bluetooth connection state, when the RSSI is lower than a first preset threshold, a first target bluetooth transmission power can be determined according to an environmental parameter and a reference signal strength, and the electronic device is controlled to operate at the first target bluetooth transmission power, when the RSSI is greater than a second preset threshold, the bluetooth transmission power of the electronic device is reduced to obtain a second target bluetooth transmission power, and the electronic device is controlled to operate at the second target bluetooth transmission power, wherein the first preset threshold is smaller than the second preset threshold, so that the bluetooth transmission power can be dynamically adjusted according to the RSSI of the terminal device, that is, the bluetooth transmission power can be adjusted according to the environmental parameter and the RSSI, the intelligence of bluetooth transmission power regulation has been promoted.
In accordance with the foregoing embodiments, please refer to fig. 4, where fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and as shown in the drawing, the electronic device includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and in an embodiment of the present application, the programs include instructions for performing the following steps:
receiving a received signal strength indication value RSSI of a Bluetooth signal of a terminal device, wherein the electronic device and the terminal device are in a Bluetooth connection state;
when the RSSI is lower than a first preset threshold value, increasing the Bluetooth transmitting power of the electronic equipment to obtain a first target Bluetooth transmitting power, and controlling the electronic equipment to work at the first target Bluetooth transmitting power;
and when the RSSI is greater than a second preset threshold value, reducing the Bluetooth transmitting power of the electronic equipment to obtain a second target Bluetooth transmitting power, and controlling the electronic equipment to work at the second target Bluetooth transmitting power, wherein the first preset threshold value is less than the second preset threshold value.
It can be seen that, in the electronic device described in this embodiment of the present application, a received signal strength indication value RSSI of a bluetooth signal of a terminal device is received, the electronic device and the terminal device are in a bluetooth connection state, when the RSSI is lower than a first preset threshold, the bluetooth transmission power of the electronic device is increased to obtain a first target bluetooth transmission power, and the electronic device is controlled to operate at the first target bluetooth transmission power, when the RSSI is greater than a second preset threshold, the bluetooth transmission power of the electronic device is reduced to obtain a second target bluetooth transmission power, and the electronic device is controlled to operate at the second target bluetooth transmission power, where the first preset threshold is smaller than the second preset threshold, so that the bluetooth transmission power can be dynamically adjusted according to the RSSI of the terminal device, and the intelligence of adjusting the bluetooth transmission power is improved.
In one possible example, in the aspect of increasing the bluetooth transmission power of the electronic device to obtain the first target bluetooth transmission power, the program includes instructions for performing the following steps:
acquiring a reference signal intensity value, wherein the reference signal intensity value is any value between the first preset threshold and the second preset threshold;
determining a first target difference between the reference signal strength value and the RSSI;
determining a target first adjusting parameter corresponding to the first target difference value according to a mapping relation between a preset difference value and the first adjusting parameter;
and adjusting the Bluetooth transmitting power of the electronic equipment according to the target first adjusting parameter to obtain the first target Bluetooth transmitting power.
In one possible example, the program further includes instructions for performing the steps of:
acquiring target environment parameters;
determining a target optimization coefficient corresponding to the target environment parameter according to a mapping relation between a preset environment parameter and the optimization coefficient, wherein the value range of the optimization coefficient is 0-1;
adjusting the Bluetooth transmitting power of the electronic equipment according to the target first adjusting parameter to obtain the first target Bluetooth transmitting power;
optimizing the target first adjusting parameter according to the target optimizing parameter to obtain the optimized target first adjusting parameter;
and adjusting the Bluetooth transmitting power of the electronic equipment according to the optimized target first adjusting parameter to obtain the first target Bluetooth transmitting power.
In one possible example, in the aspect of reducing the bluetooth transmission power of the electronic device to obtain the second target bluetooth transmission power, the program includes instructions for performing the following steps:
determining a target channel quality evaluation value between the electronic equipment and the terminal equipment;
when the target channel quality evaluation value is greater than a preset channel quality evaluation value, determining a difference value between the target channel quality evaluation value and the preset channel quality evaluation value to obtain a second target difference value;
determining a target second adjustment parameter corresponding to the second target difference value according to a mapping relation between a preset difference value and the second adjustment parameter;
and adjusting the Bluetooth transmitting power of the electronic equipment according to the target second adjusting parameter to obtain the second target Bluetooth transmitting power.
In one possible example, the program further includes instructions for performing the steps of:
when the target channel quality evaluation value is smaller than or equal to a preset channel quality evaluation value, acquiring a first target distance between the electronic equipment and the terminal equipment;
determining a target Bluetooth power transmitting range corresponding to the first target distance according to a mapping relation between a preset distance and a Bluetooth transmitting power range;
and adjusting the Bluetooth transmitting power of the electronic equipment to any Bluetooth transmitting power in the target Bluetooth power transmitting range to obtain the second target Bluetooth transmitting power, wherein any Bluetooth transmitting power is smaller than the current Bluetooth transmitting power of the electronic equipment.
In one possible example, the program further includes instructions for performing the following steps
Detecting a second target distance between the electronic equipment and the terminal equipment;
determining a target Bluetooth bandwidth corresponding to the second target distance according to a mapping relation between a preset distance and the Bluetooth bandwidth;
and adjusting the Bluetooth bandwidth of the electronic equipment to the target Bluetooth bandwidth, and controlling the electronic equipment to communicate with the target Bluetooth bandwidth.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 5A is a block diagram of functional units of a bluetooth communication control apparatus 500 according to an embodiment of the present application. The bluetooth communication control apparatus 500 is applied to an electronic device, and the apparatus 500 includes: a communication unit 501 and a switching unit 502, wherein,
a communication unit 501, configured to receive a Received Signal Strength Indicator (RSSI) of a bluetooth signal of a terminal device, where the electronic device and the terminal device are in a bluetooth connection state;
an adjusting unit 502, configured to increase a bluetooth transmission power of the electronic device when the RSSI is lower than a first preset threshold, to obtain a first target bluetooth transmission power, and control the electronic device to operate with the first target bluetooth transmission power;
the adjusting unit 502 is further specifically configured to reduce the bluetooth transmission power of the electronic device when the RSSI is greater than a second preset threshold, to obtain a second target bluetooth transmission power, and control the electronic device to operate with the second target bluetooth transmission power, where the first preset threshold is smaller than the second preset threshold.
It can be seen that the bluetooth communication control apparatus described in the embodiments of the present application is applied to an electronic device, receives a received signal strength indication value RSSI of a bluetooth signal of a terminal device, the electronic device and the terminal device are in a bluetooth connection state, when the RSSI is lower than a first preset threshold value, increasing the Bluetooth transmitting power of the electronic equipment to obtain a first target Bluetooth transmitting power, controlling the electronic equipment to work at the first target Bluetooth transmitting power, when the RSSI is larger than a second preset threshold value, the Bluetooth transmitting power of the electronic equipment is reduced to obtain a second target Bluetooth transmitting power, the electronic equipment is controlled to work at the second target Bluetooth transmitting power, wherein, first predetermined threshold value is less than the second predetermined threshold value, so, can be according to terminal equipment's RSSI, the bluetooth transmit power of dynamic adjustment has promoted the intelligence that bluetooth transmit power adjusted.
In a possible example, in the aspect of increasing the bluetooth transmission power of the electronic device to obtain the first target bluetooth transmission power, the adjusting unit 502 is specifically configured to:
acquiring a reference signal intensity value, wherein the reference signal intensity value is any value between the first preset threshold and the second preset threshold;
determining a first target difference between the reference signal strength value and the RSSI;
determining a target first adjusting parameter corresponding to the first target difference value according to a mapping relation between a preset difference value and the first adjusting parameter;
and adjusting the Bluetooth transmitting power of the electronic equipment according to the target first adjusting parameter to obtain the first target Bluetooth transmitting power.
In one possible example, as shown in fig. 5B, fig. 5B is a further modified structure of the bluetooth communication control apparatus described in fig. 5A, which may further include an obtaining unit 503 and a first determining unit 504, compared with fig. 5A, wherein,
an obtaining unit 503, configured to obtain a target environment parameter;
a first determining unit 504, configured to determine a target optimization coefficient corresponding to a target environment parameter according to a mapping relationship between a preset environment parameter and an optimization coefficient, where a value range of the optimization coefficient is 0-1;
in the aspect that the bluetooth transmission power of the electronic device is adjusted according to the target first adjustment parameter to obtain the first target bluetooth transmission power, the adjusting unit 502 is specifically configured to:
optimizing the target first adjusting parameter according to the target optimizing parameter to obtain the optimized target first adjusting parameter;
and adjusting the Bluetooth transmitting power of the electronic equipment according to the optimized target first adjusting parameter to obtain the first target Bluetooth transmitting power.
In a possible example, in the aspect of reducing the bluetooth transmission power of the electronic device to obtain the second target bluetooth transmission power, the adjusting unit 502 is specifically configured to:
determining a target channel quality evaluation value between the electronic equipment and the terminal equipment;
when the target channel quality evaluation value is greater than a preset channel quality evaluation value, determining a difference value between the target channel quality evaluation value and the preset channel quality evaluation value to obtain a second target difference value;
determining a target second adjustment parameter corresponding to the second target difference value according to a mapping relation between a preset difference value and the second adjustment parameter;
and adjusting the Bluetooth transmitting power of the electronic equipment according to the target second adjusting parameter to obtain the second target Bluetooth transmitting power.
Further, in a possible example, the adjusting unit 502 is further specifically configured to:
when the target channel quality evaluation value is smaller than or equal to a preset channel quality evaluation value, acquiring a first target distance between the electronic equipment and the terminal equipment;
determining a target Bluetooth power transmitting range corresponding to the first target distance according to a mapping relation between a preset distance and a Bluetooth transmitting power range;
and adjusting the Bluetooth transmitting power of the electronic equipment to any Bluetooth transmitting power in the target Bluetooth power transmitting range to obtain the second target Bluetooth transmitting power, wherein any Bluetooth transmitting power is smaller than the current Bluetooth transmitting power of the electronic equipment.
In one possible example, as shown in fig. 5C, fig. 5C is a further modified structure of the bluetooth communication control apparatus described in fig. 5A, which may further include a detection unit 505 and a second determination unit 506, compared with fig. 5A, wherein,
a detecting unit 505, configured to detect a second target distance between the electronic device and the terminal device;
a second determining unit 506, configured to determine a target bluetooth bandwidth corresponding to the second target distance according to a mapping relationship between a preset distance and a bluetooth bandwidth;
the adjusting unit 502 is further specifically configured to adjust the bluetooth bandwidth of the electronic device to the target bluetooth bandwidth, and control the electronic device to perform communication with the target bluetooth bandwidth.
It can be understood that the functions of each program module of the bluetooth communication control apparatus in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A Bluetooth communication control method is applied to an electronic device, and the method comprises the following steps:
receiving a received signal strength indication value RSSI of a Bluetooth signal of a terminal device, wherein the electronic device and the terminal device are in a Bluetooth connection state;
when the RSSI is lower than a first preset threshold value, increasing the Bluetooth transmitting power of the electronic equipment to obtain a first target Bluetooth transmitting power, and controlling the electronic equipment to work at the first target Bluetooth transmitting power;
when the RSSI is greater than a second preset threshold value, reducing the Bluetooth transmitting power of the electronic equipment to obtain a second target Bluetooth transmitting power, and controlling the electronic equipment to work at the second target Bluetooth transmitting power, wherein the first preset threshold value is smaller than the second preset threshold value;
before the increasing the bluetooth transmission power of the electronic device to obtain the first target bluetooth transmission power, the method includes:
acquiring target identity information of the terminal equipment;
matching the target identity information with preset identity information;
when the target identity information is successfully matched with the preset identity information, the step of increasing the Bluetooth transmitting power of the electronic equipment is executed to obtain a first target Bluetooth transmitting power;
when the target identity information is a target vein image and the preset identity information is a preset vein template, matching the target identity information with the preset identity information comprises:
carrying out image segmentation on the target vein image to obtain a target vein area image;
analyzing the distribution of the characteristic points of the target vein area image;
performing circular image interception on the target vein area image according to M different circle centers to obtain M circular vein area images, wherein M is an integer larger than 3;
selecting a target circular vein region image from the M circular vein region images, wherein the number of characteristic points contained in the target circular vein region image is larger than that of other circular vein region images in the M circular vein region images;
dividing the target circular vein area image to obtain N circular rings, wherein the widths of the N circular rings are the same;
sequentially matching the N circular rings with the preset vein template at characteristic points from the circular ring with the smallest radius in the N circular rings, and accumulating the matching values of the matched circular rings; and when the accumulated matching value is larger than the preset matching threshold value, immediately stopping the characteristic point matching, and outputting a prompt message of successful identity recognition.
2. The method of claim 1, wherein the increasing the Bluetooth transmission power of the electronic device to obtain a first target Bluetooth transmission power comprises:
acquiring a reference signal intensity value, wherein the reference signal intensity value is any value between the first preset threshold and the second preset threshold;
determining a first target difference between the reference signal strength value and the RSSI;
determining a target first adjusting parameter corresponding to the first target difference value according to a mapping relation between a preset difference value and the first adjusting parameter;
and adjusting the Bluetooth transmitting power of the electronic equipment according to the target first adjusting parameter to obtain the first target Bluetooth transmitting power.
3. The method of claim 2, further comprising:
acquiring target environment parameters;
determining a target optimization coefficient corresponding to the target environment parameter according to a mapping relation between a preset environment parameter and the optimization coefficient, wherein the value range of the optimization coefficient is 0-1;
the adjusting the bluetooth transmission power of the electronic device according to the target first adjustment parameter to obtain the first target bluetooth transmission power includes:
optimizing the target first adjusting parameter according to the target optimizing parameter to obtain the optimized target first adjusting parameter;
and adjusting the Bluetooth transmitting power of the electronic equipment according to the optimized target first adjusting parameter to obtain the first target Bluetooth transmitting power.
4. The method according to any of claims 1-3, wherein said reducing the Bluetooth transmission power of the electronic device to obtain a second target Bluetooth transmission power comprises:
determining a target channel quality evaluation value between the electronic equipment and the terminal equipment;
when the target channel quality evaluation value is greater than a preset channel quality evaluation value, determining a difference value between the target channel quality evaluation value and the preset channel quality evaluation value to obtain a second target difference value;
determining a target second adjustment parameter corresponding to the second target difference value according to a mapping relation between a preset difference value and the second adjustment parameter;
and adjusting the Bluetooth transmitting power of the electronic equipment according to the target second adjusting parameter to obtain the second target Bluetooth transmitting power.
5. The method of claim 4, further comprising:
when the target channel quality evaluation value is smaller than or equal to a preset channel quality evaluation value, acquiring a first target distance between the electronic equipment and the terminal equipment;
determining a target Bluetooth power transmitting range corresponding to the first target distance according to a mapping relation between a preset distance and a Bluetooth transmitting power range;
and adjusting the Bluetooth transmitting power of the electronic equipment to any Bluetooth transmitting power in the target Bluetooth power transmitting range to obtain the second target Bluetooth transmitting power, wherein any Bluetooth transmitting power is smaller than the current Bluetooth transmitting power of the electronic equipment.
6. The method according to any one of claims 1-5, further comprising:
detecting a second target distance between the electronic equipment and the terminal equipment;
determining a target Bluetooth bandwidth corresponding to the second target distance according to a mapping relation between a preset distance and the Bluetooth bandwidth;
and adjusting the Bluetooth bandwidth of the electronic equipment to the target Bluetooth bandwidth, and controlling the electronic equipment to communicate with the target Bluetooth bandwidth.
7. A Bluetooth communication control device, applied to an electronic device, the device comprising:
the communication unit is used for receiving a received signal strength indication value RSSI of a Bluetooth signal of terminal equipment, and the electronic equipment and the terminal equipment are in a Bluetooth connection state;
the adjusting unit is used for increasing the Bluetooth transmitting power of the electronic equipment when the RSSI is lower than a first preset threshold value to obtain a first target Bluetooth transmitting power and controlling the electronic equipment to work at the first target Bluetooth transmitting power;
the adjusting unit is further specifically configured to reduce the bluetooth transmission power of the electronic device when the RSSI is greater than a second preset threshold, obtain a second target bluetooth transmission power, and control the electronic device to operate with the second target bluetooth transmission power, where the first preset threshold is smaller than the second preset threshold;
before the increasing the bluetooth transmission power of the electronic device to obtain the first target bluetooth transmission power, the apparatus is further specifically configured to:
acquiring target identity information of the terminal equipment;
matching the target identity information with preset identity information;
when the target identity information is successfully matched with the preset identity information, the step of increasing the Bluetooth transmitting power of the electronic equipment is executed to obtain a first target Bluetooth transmitting power;
when the target identity information is a target vein image and the preset identity information is a preset vein template, matching the target identity information with the preset identity information comprises:
carrying out image segmentation on the target vein image to obtain a target vein area image;
analyzing the characteristic point distribution of the target vein area image;
performing circular image interception on the target vein area image according to M different circle centers to obtain M circular vein area images, wherein M is an integer larger than 3;
selecting a target circular vein region image from the M circular vein region images, wherein the number of characteristic points contained in the target circular vein region image is larger than that of other circular vein region images in the M circular vein region images;
dividing the target circular vein region image to obtain N circular rings, wherein the ring widths of the N circular rings are the same;
sequentially matching the N circular rings with a preset vein template for feature points from the circular ring with the smallest radius in the N circular rings, and accumulating the matching values of the matched circular rings; and when the accumulated matching value is larger than the preset matching threshold value, immediately stopping the characteristic point matching, and outputting a prompt message of successful identity recognition.
8. The apparatus according to claim 7, wherein, in the aspect of increasing the bluetooth transmission power of the electronic device to obtain the first target bluetooth transmission power, the adjusting unit is specifically configured to:
acquiring a reference signal intensity value, wherein the reference signal intensity value is any value between the first preset threshold and the second preset threshold;
determining a first target difference between the reference signal strength value and the RSSI;
determining a target first adjusting parameter corresponding to the first target difference value according to a mapping relation between a preset difference value and the first adjusting parameter;
and adjusting the Bluetooth transmitting power of the electronic equipment according to the target first adjusting parameter to obtain the first target Bluetooth transmitting power.
9. An electronic device comprising a processor, a memory for storing one or more programs and configured for execution by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-6.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-6.
CN201910497650.4A 2019-06-10 2019-06-10 Bluetooth communication control method and related product Active CN110139262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910497650.4A CN110139262B (en) 2019-06-10 2019-06-10 Bluetooth communication control method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910497650.4A CN110139262B (en) 2019-06-10 2019-06-10 Bluetooth communication control method and related product

Publications (2)

Publication Number Publication Date
CN110139262A CN110139262A (en) 2019-08-16
CN110139262B true CN110139262B (en) 2022-06-14

Family

ID=67580971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910497650.4A Active CN110139262B (en) 2019-06-10 2019-06-10 Bluetooth communication control method and related product

Country Status (1)

Country Link
CN (1) CN110139262B (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112566224B (en) * 2019-09-26 2024-04-12 中兴通讯股份有限公司 Data transmission control method, terminal and storage medium
CN110784696B (en) * 2019-09-30 2021-04-30 深圳市火乐科技发展有限公司 White balance correction method and related device
CN113014284B (en) * 2019-12-19 2023-03-28 深圳市万普拉斯科技有限公司 Transmission power adjusting method, device, terminal equipment and readable storage medium
CN111025277B (en) * 2019-12-25 2023-05-30 青岛海信电子设备股份有限公司 UWB ranging system and control method thereof
CN111818495B (en) * 2020-06-23 2023-05-23 敖冬兵 Control method, system, device and medium of wireless communication terminal
EP4183182A4 (en) * 2020-07-16 2024-04-10 Qualcomm Incorporated Self-adaptive transmit power control for bluetooth
CN112235856A (en) * 2020-10-15 2021-01-15 惠州Tcl移动通信有限公司 Method and device for adjusting transmission power of Bluetooth signal, storage medium and mobile terminal
CN112261712B (en) * 2020-10-19 2023-04-25 维沃移动通信(深圳)有限公司 Power adjusting method and device
CN112261636B (en) * 2020-10-23 2023-07-11 展讯通信(上海)有限公司 Communication method, apparatus, and storage medium
CN112489412A (en) * 2020-11-16 2021-03-12 广东电网有限责任公司 Intelligent meter reading system and method
CN114630408A (en) * 2020-12-11 2022-06-14 无锡中感微电子股份有限公司 Wireless transmission power control method, system and device
CN112616141B (en) * 2020-12-18 2022-02-11 珠海格力电器股份有限公司 Bluetooth network distribution method and intelligent device
CN112770379B (en) * 2021-01-04 2022-06-14 珠海格力电器股份有限公司 Power adjustment method and device, electronic equipment and storage medium
CN112804743A (en) * 2021-01-05 2021-05-14 上海艾策通讯科技股份有限公司 Self-adaptive adjusting method for gateway AP transmitting power, storage medium and gateway equipment
CN115206003A (en) * 2021-03-24 2022-10-18 华为技术有限公司 Bluetooth-based unlocking method, terminal device, intelligent lock and storage medium
CN113115439B (en) * 2021-04-20 2023-06-13 Oppo广东移动通信有限公司 Positioning method and related equipment
CN113286282B (en) * 2021-05-18 2023-06-09 Oppo广东移动通信有限公司 Prompting method, prompting device, electronic equipment, target equipment, connection system and medium
CN113438635A (en) * 2021-06-29 2021-09-24 展讯通信(上海)有限公司 Bluetooth communication method and device
CN113692038B (en) * 2021-10-26 2022-02-15 翱捷科技(深圳)有限公司 Wireless earphone power saving method and system, earphone and electronic equipment
CN114141005B (en) * 2021-12-03 2023-05-12 维沃移动通信有限公司 Power control method and device, control circuit and electronic equipment
CN114698078B (en) * 2022-02-24 2023-05-16 荣耀终端有限公司 Transmission power adjustment method, electronic device, and storage medium
CN114679681A (en) * 2022-03-23 2022-06-28 Oppo广东移动通信有限公司 Device control method, device, electronic device and storage medium
CN116782191B (en) * 2023-06-30 2024-09-06 深圳市品声科技有限公司 Bluetooth communication method, wearable device and system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651475A (en) * 2008-08-11 2010-02-17 中国移动通信集团广西有限公司 Method and equipment for transmitting data at carrier frequency of broadcast control channel
CN101902316A (en) * 2010-06-22 2010-12-01 中兴通讯股份有限公司 Method and system for improving data retransmission quality
CN102781080A (en) * 2012-07-05 2012-11-14 上海大学 Power self-adaptive method of network access and operation of nodes of wireless sensor network
CN103220763A (en) * 2012-01-20 2013-07-24 电信科学技术研究院 Method and device of power control
CN103684550A (en) * 2013-12-20 2014-03-26 上海斐讯数据通信技术有限公司 Bluetooth signal transmission power adjusting system and mobile terminal
CN103916166A (en) * 2014-03-31 2014-07-09 尚奇浩康(北京)科技有限公司 Bluetooth data transmission method and bluetooth device
CN104349355A (en) * 2013-08-02 2015-02-11 电信科学技术研究院 Method, system and device for carrying out data communication
CN105009528A (en) * 2013-01-07 2015-10-28 脸谱公司 Distance-dependent or user-dependent data exchange between wireless communication devices
CN105848273A (en) * 2016-01-20 2016-08-10 深圳迈瑞生物医疗电子股份有限公司 Electronic device, wireless sensor and power adjusting method of the wireless sensor
CN107222912A (en) * 2017-06-08 2017-09-29 西安蜂语信息科技有限公司 A kind of method of adjust automatically transmission power, apparatus and system
CN109544894A (en) * 2017-01-23 2019-03-29 深圳市大疆创新科技有限公司 Control method, unmanned plane and remote control equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8599709B2 (en) * 2011-02-10 2013-12-03 Apple Inc. Methods and apparatus for wireless coexistence based on transceiver chain emphasis
WO2016118776A1 (en) * 2015-01-21 2016-07-28 CloudLeaf, Inc. Systems, methods and devices for asset status determination
CN109068383A (en) * 2018-08-24 2018-12-21 维沃移动通信有限公司 A kind of method and terminal device adjusting antenna transmission power

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651475A (en) * 2008-08-11 2010-02-17 中国移动通信集团广西有限公司 Method and equipment for transmitting data at carrier frequency of broadcast control channel
CN101902316A (en) * 2010-06-22 2010-12-01 中兴通讯股份有限公司 Method and system for improving data retransmission quality
CN103220763A (en) * 2012-01-20 2013-07-24 电信科学技术研究院 Method and device of power control
CN102781080A (en) * 2012-07-05 2012-11-14 上海大学 Power self-adaptive method of network access and operation of nodes of wireless sensor network
CN105009528A (en) * 2013-01-07 2015-10-28 脸谱公司 Distance-dependent or user-dependent data exchange between wireless communication devices
CN104349355A (en) * 2013-08-02 2015-02-11 电信科学技术研究院 Method, system and device for carrying out data communication
CN103684550A (en) * 2013-12-20 2014-03-26 上海斐讯数据通信技术有限公司 Bluetooth signal transmission power adjusting system and mobile terminal
CN103916166A (en) * 2014-03-31 2014-07-09 尚奇浩康(北京)科技有限公司 Bluetooth data transmission method and bluetooth device
CN105848273A (en) * 2016-01-20 2016-08-10 深圳迈瑞生物医疗电子股份有限公司 Electronic device, wireless sensor and power adjusting method of the wireless sensor
CN109544894A (en) * 2017-01-23 2019-03-29 深圳市大疆创新科技有限公司 Control method, unmanned plane and remote control equipment
CN107222912A (en) * 2017-06-08 2017-09-29 西安蜂语信息科技有限公司 A kind of method of adjust automatically transmission power, apparatus and system

Also Published As

Publication number Publication date
CN110139262A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN110139262B (en) Bluetooth communication control method and related product
CN109558804B (en) Fingerprint acquisition method and related product
CN108900231B (en) Dynamic antenna adjustment method and related product
CN109240551B (en) Method for controlling electronic device by using gestures and related product
CN107241552B (en) Image acquisition method, device, storage medium and terminal
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN108777741B (en) Antenna switching control method and related product
CN107547704A (en) Call MIC switching method, device and mobile terminal
KR102559651B1 (en) Electromagnetic interference control method and related products
CN109348055B (en) Display control method, display control device, electronic apparatus, and readable storage medium
CN112997471B (en) Audio channel switching method and device, readable storage medium and electronic equipment
CN108769401B (en) Signal detection method and related product
CN108833683B (en) Dynamic antenna adjustment implementation method and related product
CN111459447B (en) Volume adjustment display method and electronic equipment
CN110427149B (en) Terminal operation method and terminal
CN110162264B (en) Application processing method and related product
CN110221696B (en) Eyeball tracking method and related product
CN110363702B (en) Image processing method and related product
CN109561255B (en) Terminal photographing method and device and storage medium
CN108668018B (en) Mobile terminal, volume control method and related product
CN108810261B (en) Antenna switching method in call and related product
CN108769364B (en) Call control method, device, mobile terminal and computer readable medium
CN110276190B (en) Fingerprint identification method and related product
CN110278029B (en) Data transmission control method and related product
CN106484529B (en) The Memory adjustments method and terminal of terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant