CN112235856A - Method and device for adjusting transmission power of Bluetooth signal, storage medium and mobile terminal - Google Patents
Method and device for adjusting transmission power of Bluetooth signal, storage medium and mobile terminal Download PDFInfo
- Publication number
- CN112235856A CN112235856A CN202011103045.3A CN202011103045A CN112235856A CN 112235856 A CN112235856 A CN 112235856A CN 202011103045 A CN202011103045 A CN 202011103045A CN 112235856 A CN112235856 A CN 112235856A
- Authority
- CN
- China
- Prior art keywords
- signal
- mobile terminal
- value
- preset
- signal strength
- 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.)
- Pending
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 72
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000004891 communication Methods 0.000 claims abstract description 39
- 230000008054 signal transmission Effects 0.000 claims abstract description 35
- 238000004590 computer program Methods 0.000 claims description 7
- 238000013507 mapping Methods 0.000 description 6
- 239000002699 waste material Substances 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/04—TPC
- H04W52/18—TPC being performed according to specific parameters
- H04W52/24—TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
- H04W52/245—TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters taking into account received signal strength
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/04—TPC
- H04W52/18—TPC being performed according to specific parameters
- H04W52/24—TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
- H04W52/248—TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters where transmission power control commands are generated based on a path parameter
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the application discloses a method, a device, a storage medium and a mobile terminal for adjusting the transmission power of a Bluetooth signal, wherein the method comprises the following steps: when communication connection is established with a second mobile terminal, receiving a first signal intensity value sent by the second mobile terminal; determining a first distance between the first mobile terminal and the second mobile terminal according to the first signal strength value; determining a first distance interval where the first distance is located, and acquiring a first preset signal strength value corresponding to the first distance interval; if the first signal intensity value is not equal to a first preset signal intensity value, acquiring a first target signal transmitting power corresponding to the first preset signal intensity value; and adjusting the current signal transmission power of the Bluetooth to the first target signal transmission power. Therefore, the signal transmitting power of the transmitting signal can be dynamically adjusted, and the flexibility of the signal transmitting power is improved.
Description
Technical Field
The application relates to the field of communication, in particular to a method and a device for adjusting the transmission power of a Bluetooth signal, a storage medium and a mobile terminal.
Background
Bluetooth is a standard wireless communication technology that enables short-range data exchange (using UHF radio waves in the ISM band of 2.4 to 2.485 GHz) between fixed devices, mobile devices, and building personal area networks. Currently, bluetooth has become a standard technology configured on mobile terminals, and is one of the most commonly used communication functions of mobile terminals.
When a mobile terminal is connected with other mobile terminals through Bluetooth, the mobile terminal transmits a communication signal through a Bluetooth transmitter. Currently, bluetooth transmitters generally transmit communication signals at a fixed power, and the flexibility of transmitting signals is low.
Disclosure of Invention
The embodiment of the application provides a method and a device for adjusting Bluetooth signal transmitting power, which can dynamically adjust the signal transmitting power of a transmitting signal, and further improve the flexibility of the signal transmitting power.
The embodiment of the application provides a method for adjusting the transmission power of a Bluetooth signal, which is applied to a first mobile terminal and comprises the following steps:
when communication connection is established with a second mobile terminal, receiving a first signal intensity value sent by the second mobile terminal;
determining a first distance between the first mobile terminal and the second mobile terminal according to the first signal strength value;
determining a first distance interval where the first distance is located, and acquiring a first preset signal strength value corresponding to the first distance interval;
if the first signal intensity value is not equal to a first preset signal intensity value, acquiring a first target signal transmitting power corresponding to the first preset signal intensity value;
and adjusting the current signal transmission power of the Bluetooth to the first target signal transmission power.
The embodiment of the application provides a bluetooth signal transmit power's adjusting device, is applied to first mobile terminal, includes:
the receiving module is used for receiving a first signal strength value sent by a second mobile terminal when communication connection is established with the second mobile terminal;
the determining module is used for determining a first distance between the first mobile terminal and the second mobile terminal according to the first signal strength value;
the first obtaining module is used for determining a first distance interval where the first distance is located and obtaining a first preset signal strength value corresponding to the first distance interval;
the second obtaining module is used for obtaining a first target signal transmitting power corresponding to a first preset signal strength value if the first signal strength value is not equal to the first preset signal strength value;
and the adjusting module is used for adjusting the current signal transmitting power of the Bluetooth to the first target signal transmitting power.
Accordingly, the present embodiment also provides a storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the method for adjusting the transmission power of the bluetooth signal as described above.
Correspondingly, the embodiment of the present application further provides a mobile terminal, where the mobile terminal includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the method for adjusting the transmission power of the bluetooth signal by calling the computer program stored in the memory.
The method for adjusting the transmission power of the Bluetooth signal provided by the embodiment of the application comprises the following steps: when communication connection is established with a second mobile terminal, receiving a first signal intensity value sent by the second mobile terminal; determining a first distance between the first mobile terminal and the second mobile terminal according to the first signal strength value; determining a first distance interval where the first distance is located, and acquiring a first preset signal strength value corresponding to the first distance interval; if the first signal intensity value is not equal to a first preset signal intensity value, acquiring a first target signal transmitting power corresponding to the first preset signal intensity value; and adjusting the current signal transmission power of the Bluetooth to the first target signal transmission power. Therefore, the signal transmitting power of the transmitting signal can be dynamically adjusted, and the flexibility of the signal transmitting power is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a first flowchart illustrating a method for adjusting a transmission power of a bluetooth signal according to an embodiment of the present disclosure.
Fig. 2 is a second flowchart of a method for adjusting the transmission power of a bluetooth signal according to an embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of an apparatus for adjusting transmission power of a bluetooth signal according to an embodiment of the present application.
Fig. 4 is a specific structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
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. It is to be understood that the embodiments described are only a few embodiments of the present application and not all 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.
Referring to fig. 1, fig. 1 is a first flowchart illustrating a method for adjusting a transmission power of a bluetooth signal according to an embodiment of the present disclosure. The method for adjusting the transmission power of the Bluetooth signal comprises the following steps:
The first mobile terminal and the second mobile terminal can be terminal devices such as a mobile phone, a computer or a personal digital assistant, and the first mobile terminal and the second mobile terminal can transmit information through respective bluetooth modules.
Specifically, when the first mobile terminal and the second mobile terminal establish a communication connection through the bluetooth module, a communication protocol may be sent to the second mobile terminal, where the communication protocol is used to trigger the second mobile terminal to send the first signal strength to the first mobile terminal. Or directly setting the first signal intensity value sent by the second mobile terminal to the connecting device when the other mobile terminals establish communication connection through the Bluetooth module. The first signal strength value sent by the second mobile terminal is the signal strength value of bluetooth when the second mobile terminal receives the communication protocol or transmission data sent by the first mobile terminal.
In some embodiments, the receiving a first signal strength value sent by a second mobile terminal includes:
(1) and receiving the signal intensity values sent by the second mobile terminal every preset time length to obtain a plurality of signal intensity values.
(2) And if the difference value between any two signal strength values is smaller than a preset difference value, determining any one of the signal strength values as a first signal strength value.
The communication protocol may also be configured to trigger the second mobile terminal to send the signal strength value every other preset time period, or set the second mobile terminal to send the signal strength value every other preset time period. Therefore, the signal strength values sent by the second mobile terminal can be received. If the difference between any two signal strength values among the plurality of signal strength values is smaller than the preset difference, it can be proved that the distance between the first mobile terminal and the second mobile terminal is not changed greatly, and therefore the signal strength value is not changed greatly, and any one of the plurality of signal strength values can be determined as the first signal strength value.
And step 102, determining a first distance between the mobile terminal and the second mobile terminal according to the first signal strength value.
The mapping relationship between the signal strength value and the distance may be set in advance, so that when the first signal strength value is received, the first distance corresponding to the first signal strength value may be determined according to the mapping relationship.
In order to determine whether the first signal strength value can meet the data transmission condition or whether the parameter is set too large to cause electric quantity waste, a plurality of distance intervals can be set, and a preset signal strength value corresponding to each distance interval and meeting the data transmission condition is set, so that whether the first signal strength value can meet the data transmission condition or whether the parameter is set too large to cause electric quantity waste is determined according to the first signal strength value and the preset signal strength value of the distance interval where the first distance is located. Therefore, after the first distance corresponding to the first signal strength value is determined according to the mapping relationship, the first distance interval where the first distance is located can be determined, and the first preset signal strength value corresponding to the first distance interval is obtained.
And step 104, if the first signal strength value is not equal to the first preset signal strength value, acquiring a first target signal transmitting power corresponding to the first preset signal strength value.
The magnitude relation between the first signal strength value and the first preset signal strength value can be compared, and if the first signal strength value is not equal to the first preset signal strength value, it indicates that the current bluetooth signal transmitting power needs to be adjusted. For example: when the first signal strength value is smaller than a first preset signal strength value, the current first signal strength value cannot meet the data transmission condition; when the first signal strength value is greater than the first preset signal strength value, it indicates that the current first signal strength value can satisfy the data transmission condition, but the parameter set for bluetooth is too large, resulting in waste of electric quantity. Both of the above situations can be correspondingly improved by adjusting the current bluetooth signal transmission power.
Specifically, since the transmission power may affect the magnitude of the signal strength value, the corresponding relationship between the transmission power and the signal strength value may be set in advance, so that when it is determined that the first signal strength value is not equal to the first preset signal strength value, the first target signal transmission power corresponding to the first preset signal strength value may be obtained.
And 105, adjusting the current signal transmission power of the Bluetooth to a first target signal transmission power.
The current signal transmitting power is adjusted to the first target signal transmitting power, so that the problem that the data transmission condition cannot be met or the electric quantity is wasted due to overlarge set parameters is solved.
Specifically, the signal transmitting power is determined by the power supply current of the Bluetooth module, so that the signal transmitting power can be adjusted by adjusting the current. That is, the first target signal transmitting power corresponds to a first target current value. Furthermore, in order to avoid damage to the bluetooth module caused by a large adjustment span of the current when the current is adjusted, the current value of the bluetooth module can be adjusted in a step adjustment mode. Thus, in some embodiments, said adjusting the current signal transmit power of said bluetooth to said first target signal transmit power comprises:
(1) and acquiring a first target current value of the first target signal transmitting power.
(2) And step-by-step adjusting the current value of the Bluetooth according to a preset adjustment amplitude until the current value of the power supply current of the Bluetooth reaches the first target current value.
In some embodiments, the method further comprises:
(1.1) in the process of carrying out step adjustment on the current value according to a preset adjustment amplitude, if a second signal intensity value sent by a second mobile terminal is received, recording the second signal intensity value;
(1.2) after the current value of the power supply current of the Bluetooth is adjusted to the first target current value from the current value, adjusting the current value of the adjusted power supply current according to the second signal intensity value.
If the second mobile terminal sends the signal strength value to the first mobile terminal at the interval preset time length, the step adjustment process is not completed, that is, the signal strength value is not adjusted to the first target current value. The second signal intensity value can be recorded first, and after the current value of the Bluetooth is adjusted to the first target current value, the adjusted current value is adjusted according to the second signal intensity value.
In some embodiments, the method further comprises:
(1.1) if the first signal intensity value is smaller than a first preset signal intensity value, acquiring the data volume of the data to be transmitted;
(1.2) if the data volume is smaller than a preset data volume, executing step adjustment on the current value according to a preset adjustment amplitude until the current value of the power supply current of the Bluetooth reaches a first target current value;
(1.3) if the data volume is larger than a preset data volume, adjusting the current value to the first target current value.
And if the first signal intensity value is smaller than the first preset signal intensity value, the current value of the Bluetooth cannot meet the data transmission condition at present. Therefore, the data volume of the data to be transmitted can be obtained, the data to be transmitted can be data selected by a user, and if the data volume of the data to be transmitted is smaller than the preset data volume, the current value can be adjusted in a stepping adjustment mode; if the data to be transmitted is larger than the preset data volume, the data volume with the transmitted data is proved to be larger, and a large amount of time is needed for transmitting the data to be transmitted in a stepping adjustment mode, so that the current value can be directly adjusted to be the first target current value, the time for adjusting the current is shortened, and the data transmission efficiency is improved.
In some embodiments, the method further comprises:
(1.1) if the first signal intensity value is smaller than a first preset signal intensity value, acquiring transmission time of historical transmission data, wherein the historical transmission data is data transmitted to the second mobile terminal on the basis of a communication link corresponding to the communication connection;
(1.2) determining a preset transmission time according to the historical transmission data;
(1.3) if the transmission time is greater than a preset transmission time, executing a step of determining a first target current value corresponding to the first preset signal strength value.
And if the first signal intensity value is smaller than the first preset signal intensity value, the current value of the Bluetooth cannot meet the data transmission condition at present. Therefore, the transmission time of the historical transmission data transmitted to the second mobile terminal through the communication link corresponding to the communication connection can be obtained, and the preset transmission time required by the historical transmission data can be estimated. And when the transmission time is longer than the preset transmission time, executing the step of determining a first target current value corresponding to the first preset signal strength value. That is, if the transmission time is less than the preset transmission time, it indicates that the quality of the communication channel of the current communication link is high, and the data transmission of the bluetooth is not affected, and the signal transmission power of the bluetooth may not be adjusted.
As can be seen from the above, in the embodiment of the present application, when a communication connection is established with a second mobile terminal, a first signal strength value sent by the second mobile terminal is received; determining a first distance between the first mobile terminal and the second mobile terminal according to the first signal strength value; determining a first distance interval where the first distance is located, and acquiring a first preset signal strength value corresponding to the first distance interval; if the first signal intensity value is not equal to a first preset signal intensity value, acquiring a first target signal transmitting power corresponding to the first preset signal intensity value; and adjusting the current signal transmission power of the Bluetooth to the first target signal transmission power. The signal transmitting power of the transmitting signal can be dynamically adjusted, and the flexibility of the signal transmitting power is further improved.
In some embodiments, as shown in fig. 2, a method for adjusting the transmission power of a bluetooth signal is provided, and the method for adjusting the transmission power of the bluetooth signal includes:
step 201, when a communication connection is established with a second mobile terminal, receiving signal strength values sent by the second mobile terminal every preset time length to obtain a plurality of signal strength values.
When the first mobile terminal and the second mobile terminal establish communication connection through the Bluetooth module, a communication protocol can be sent to the second mobile terminal. The communication protocol may be to trigger the second mobile terminal to send the signal strength value every other preset time period, or to set the second mobile terminal to send the signal strength value every other preset time period. Therefore, the signal strength values sent by the second mobile terminal can be received.
Step 202, if the difference between any two signal strength values is smaller than the preset difference, determining any one of the signal strength values as a first signal strength value.
If the difference between any two signal strength values among the signal strength values is smaller than the preset difference, it can be proved that the distance between the first mobile terminal and the second mobile terminal is not changed greatly, and therefore the signal strength value is not changed greatly, and any one of the signal strength values can be determined as the first signal strength value.
The mapping relationship between the signal strength value and the distance may be set in advance, so that when the first signal strength value is received, the first distance corresponding to the first signal strength value may be determined according to the mapping relationship.
In order to determine whether the first signal strength value can meet the data transmission condition or whether the parameter is set too large to cause electric quantity waste, a plurality of distance intervals can be set, and a preset signal strength value corresponding to each distance interval and meeting the data transmission condition is set, so that whether the first signal strength value can meet the data transmission condition or whether the parameter is set too large to cause electric quantity waste is determined according to the first signal strength value and the preset signal strength value of the distance interval where the first distance is located. Therefore, after the first distance corresponding to the first signal strength value is determined according to the mapping relationship, the first distance interval where the first distance is located can be determined, and the first preset signal strength value corresponding to the first distance interval is obtained.
The magnitude relation between the first signal strength value and the first preset signal strength value can be compared, and if the first signal strength value is not equal to the first preset signal strength value, it indicates that the current bluetooth signal transmitting power needs to be adjusted. For example: when the first signal strength value is smaller than a first preset signal strength value, the current first signal strength value cannot meet the data transmission condition; when the first signal strength value is greater than the first preset signal strength value, it indicates that the current first signal strength value can satisfy the data transmission condition, but the parameter set for bluetooth is too large, resulting in waste of electric quantity. Both of the above situations can be correspondingly improved by adjusting the current bluetooth signal transmission power.
Specifically, since the transmission power may affect the magnitude of the signal strength value, the corresponding relationship between the transmission power and the signal strength value may be set in advance, so that when it is determined that the first signal strength value is not equal to the first preset signal strength value, the first target signal transmission power corresponding to the first preset signal strength value may be obtained.
Specifically, since the transmission power may affect the magnitude of the signal strength value, the corresponding relationship between the transmission power and the signal strength value may be set in advance, so that when it is determined that the first signal strength value is not equal to the first preset signal strength value, the first target signal transmission power corresponding to the first preset signal strength value may be obtained.
Specifically, the signal transmitting power is determined by the power supply current of the Bluetooth module, so that the signal transmitting power can be adjusted by adjusting the current. That is, the first target signal transmitting power corresponds to a first target current value.
And step 207, performing step adjustment on the current value of the Bluetooth according to a preset adjustment amplitude until the current value of the power supply current of the Bluetooth reaches a first target current value.
Specifically, in order to avoid damage to the bluetooth module caused by a large adjustment span of the current when the current is adjusted, the current value of the bluetooth module can be adjusted in a step adjustment manner.
As can be seen from the above, in the embodiment of the present application, when a communication connection is established with a second mobile terminal, a first signal strength value sent by the second mobile terminal is received; determining a first distance between the first mobile terminal and the second mobile terminal according to the first signal strength value; determining a first distance interval where the first distance is located, and acquiring a first preset signal strength value corresponding to the first distance interval; if the first signal intensity value is not equal to a first preset signal intensity value, acquiring a first target signal transmitting power corresponding to the first preset signal intensity value; and adjusting the current signal transmission power of the Bluetooth to the first target signal transmission power. The signal transmitting power of the transmitting signal can be dynamically adjusted, and the flexibility of the signal transmitting power is further improved.
In order to better implement the method for adjusting the transmission power of the bluetooth signal provided by the embodiment of the present application, in an embodiment, an apparatus for adjusting the transmission power of the bluetooth signal is further provided. The terms are the same as those in the above-mentioned method for adjusting the transmission power of the bluetooth signal, and the specific implementation details can refer to the description in the method embodiment.
In some embodiments, there is further provided a bluetooth signal transmission power adjusting device, as shown in fig. 3, the bluetooth signal transmission power adjusting device may include: a receiving module 301, a determining module 302, a first obtaining module 303, a second obtaining module 304, an adjusting module, and the like.
A receiving module 301, configured to receive a first signal strength value sent by a second mobile terminal when a communication connection is established with the second mobile terminal;
a determining module 302, configured to determine a first distance to the second mobile terminal according to the first signal strength value;
a first obtaining module 303, configured to determine a first distance interval where the first distance is located, and obtain a first preset signal strength value corresponding to the first distance interval;
a second obtaining module 304, configured to obtain a first target signal transmitting power corresponding to a first preset signal strength value if the first signal strength value is not equal to the first preset signal strength value;
an adjusting module 305, configured to adjust the current signal transmission power of the bluetooth to the first target signal transmission power.
In an embodiment, the adjusting module 305 is configured to perform step adjustment on a current value of the bluetooth according to a preset adjustment amplitude until a current value of the power supply current of the bluetooth reaches the first target current value.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, in the method for adjusting the bluetooth signal transmission power according to the embodiment of the present application, when the receiving module 301 establishes a communication connection with the second mobile terminal, the receiving module receives a first signal strength value sent by the second mobile terminal; the determining module 302 determines a first distance between the mobile terminal and the second mobile terminal according to the first signal strength value; the first obtaining module 303 determines a first distance interval where the first distance is located, and obtains a first preset signal strength value corresponding to the first distance interval; the second obtaining module 304 obtains a first target signal transmitting power corresponding to a first preset signal strength value if the first signal strength value is not equal to the first preset signal strength value; the adjusting module 305 adjusts the current signal transmit power of the bluetooth to the first target signal transmit power. The signal transmitting power of the transmitting signal can be dynamically adjusted, and the flexibility of the signal transmitting power is further improved.
Based on the above method, the present invention also provides a storage medium having a plurality of instructions stored thereon, wherein the instructions are adapted to be loaded by a processor and to perform the photographing method as described above.
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 storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Fig. 4 is a block diagram showing a specific structure of a terminal according to an embodiment of the present invention, where the terminal may be used to implement the shooting method, the storage medium, and the terminal provided in the above embodiments.
As shown in fig. 4, the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown), and a power supply 190. Those skilled in the art will appreciate that the mobile terminal 1200 configuration illustrated in fig. 4 is not intended to be limiting of the mobile terminal 1200 and may include more or less components than those illustrated, or some components in combination, or a different arrangement of components. Wherein:
the RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with a second device over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network.
The memory 120 may be configured to store software programs and modules, such as program instructions/modules corresponding to the method, the apparatus, the storage medium, and the mobile terminal for adjusting the bluetooth signal transmission power in the foregoing embodiments, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120, so as to implement functions of mutual chip identification. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or a second non-volatile solid-state memory. In some examples, memory 120 may be a storage medium as described above.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller.
The display unit 140 may be used to display information input by or provided to the user and various graphic user interfaces of the mobile terminal 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and further, the touch-sensitive surface 131 may cover the display panel 141. The display interface of the mobile terminal in the above embodiment may be represented by the display unit 140, that is, the display content for displaying the shot may be displayed by the display unit 140.
The mobile terminal 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and a second sensor. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the mobile terminal 1200 is moved to the ear. As for the second sensor such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 1200, the detailed description is omitted here.
The mobile terminal 1200, which can help a user send and receive e-mails, browse web pages, access streaming media, etc., provides the user with wireless broadband internet access through the transmission module 170.
The processor 180 is a control center of the mobile terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
Specifically, the processor 180 includes: an Arithmetic Logic Unit (ALU), an application processor, a Global Positioning System (GPS) and a control and status Bus (Bus) (not shown).
The mobile terminal 1200 also includes a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system in some embodiments to provide management of power, and power consumption via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a re-power system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein.
Specifically, in the present embodiment, the display unit 140 of the mobile terminal 1200 is a touch screen display, and the mobile terminal 1200 further includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs configured to be executed by the one or more processors 180 include instructions for:
when communication connection is established with a second mobile terminal, receiving a first signal intensity value sent by the second mobile terminal;
determining a first distance between the first mobile terminal and the second mobile terminal according to the first signal strength value;
determining a first distance interval where the first distance is located, and acquiring a first preset signal strength value corresponding to the first distance interval;
if the first signal intensity value is not equal to a first preset signal intensity value, acquiring a first target signal transmitting power corresponding to the first preset signal intensity value;
and adjusting the current signal transmission power of the Bluetooth to the first target signal transmission power.
In some embodiments, processor 380 may further execute the instructions to, when adjusting the current signal transmit power of the bluetooth to the first target signal transmit power:
acquiring a first target current value of the first target signal transmitting power;
and step-by-step adjusting the current value of the Bluetooth according to a preset adjustment amplitude until the current value of the power supply current of the Bluetooth reaches the first target current value.
In some embodiments, processor 380 may also execute instructions to:
in the process of carrying out step adjustment on the current value according to a preset adjustment amplitude, if a second signal intensity value sent by a second mobile terminal is received, recording the second signal intensity value;
and after the current value of the power supply current of the Bluetooth is adjusted to the first target current value from the current value, adjusting the adjusted current value of the power supply current according to the second signal intensity value.
In some embodiments, processor 380 may also execute instructions to:
if the first signal intensity value is smaller than a first preset signal intensity value, acquiring the data volume of the data to be transmitted;
if the data volume is smaller than the preset data volume, executing step adjustment on the current value according to a preset adjustment amplitude until the current value of the power supply current of the Bluetooth reaches a first target current value;
and if the data volume is larger than the preset data volume, adjusting the current value to the first target current value.
In some embodiments, processor 380 may also execute instructions to:
if the first signal intensity value is smaller than a first preset signal intensity value, obtaining the transmission time of historical transmission data, wherein the historical transmission data is data transmitted to the second mobile terminal based on a communication link corresponding to the communication connection;
determining preset transmission time according to the historical transmission data;
and if the transmission time is greater than the preset transmission time, executing a step of determining a first target current value corresponding to the first preset signal strength value.
In some embodiments, the processor 380 may further execute the following instructions when receiving the first signal strength value transmitted by the second mobile terminal:
receiving signal intensity values sent by a second mobile terminal every preset time length to obtain a plurality of signal intensity values;
and if the difference value between any two signal strength values is smaller than a preset difference value, determining any one of the signal strength values as a first signal strength value.
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.
The method, the apparatus, the storage medium, and the mobile terminal for adjusting the bluetooth signal transmission power provided by the embodiments of the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the embodiments is only used to help understanding the technical solution and the core idea of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.
Claims (10)
1. A method for adjusting the transmission power of a Bluetooth signal is applied to a first mobile terminal, and comprises the following steps:
when communication connection is established with a second mobile terminal, receiving a first signal intensity value sent by the second mobile terminal;
determining a first distance between the first mobile terminal and the second mobile terminal according to the first signal strength value;
determining a first distance interval where the first distance is located, and acquiring a first preset signal strength value corresponding to the first distance interval;
if the first signal intensity value is not equal to a first preset signal intensity value, acquiring a first target signal transmitting power corresponding to the first preset signal intensity value;
and adjusting the current signal transmission power of the Bluetooth to the first target signal transmission power.
2. The method of claim 1, wherein the adjusting the current signal transmission power of the bluetooth to the first target signal transmission power comprises:
acquiring a first target current value of the first target signal transmitting power;
and step-by-step adjusting the current value of the Bluetooth according to a preset adjustment amplitude until the current value of the power supply current of the Bluetooth reaches the first target current value.
3. The method of claim 2, further comprising:
in the process of carrying out step adjustment on the current value according to a preset adjustment amplitude, if a second signal intensity value sent by a second mobile terminal is received, recording the second signal intensity value;
and after the current value of the power supply current of the Bluetooth is adjusted to the first target current value from the current value, adjusting the adjusted current value of the power supply current according to the second signal intensity value.
4. The method of claim 2, further comprising:
if the first signal intensity value is smaller than a first preset signal intensity value, acquiring the data volume of the data to be transmitted;
if the data volume is smaller than the preset data volume, executing step adjustment on the current value according to a preset adjustment amplitude until the current value of the power supply current of the Bluetooth reaches a first target current value;
and if the data volume is larger than the preset data volume, adjusting the current value to the first target current value.
5. The method of claim 1, further comprising:
if the first signal intensity value is smaller than a first preset signal intensity value, obtaining the transmission time of historical transmission data, wherein the historical transmission data is data transmitted to the second mobile terminal based on a communication link corresponding to the communication connection;
determining preset transmission time according to the historical transmission data;
and if the transmission time is greater than the preset transmission time, executing a step of determining a first target current value corresponding to the first preset signal strength value.
6. The method of claim 1, wherein the receiving the first signal strength value sent by the second mobile terminal comprises:
receiving signal intensity values sent by a second mobile terminal every preset time length to obtain a plurality of signal intensity values;
and if the difference value between any two signal strength values is smaller than a preset difference value, determining any one of the signal strength values as a first signal strength value.
7. A bluetooth signal transmission power adjusting device is applied to a first mobile terminal, and comprises:
the receiving module is used for receiving a first signal strength value sent by a second mobile terminal when communication connection is established with the second mobile terminal;
the determining module is used for determining a first distance between the first mobile terminal and the second mobile terminal according to the first signal strength value;
the first obtaining module is used for determining a first distance interval where the first distance is located and obtaining a first preset signal strength value corresponding to the first distance interval;
the second obtaining module is used for obtaining a first target signal transmitting power corresponding to a first preset signal strength value if the first signal strength value is not equal to the first preset signal strength value;
and the adjusting module is used for adjusting the current signal transmitting power of the Bluetooth to the first target signal transmitting power.
8. The apparatus of claim 7, wherein the adjusting module is configured to perform step adjustment on the current value of the bluetooth according to a preset adjustment amplitude until the current value of the supply current of the bluetooth reaches the first target current value.
9. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to carry out the method of adjusting bluetooth signal transmission power according to any one of claims 1 to 6.
10. A mobile terminal, characterized in that the mobile terminal comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used for executing the adjusting method of the bluetooth signal transmission power according to any one of claims 1 to 6 by calling the computer program stored in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011103045.3A CN112235856A (en) | 2020-10-15 | 2020-10-15 | Method and device for adjusting transmission power of Bluetooth signal, storage medium and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011103045.3A CN112235856A (en) | 2020-10-15 | 2020-10-15 | Method and device for adjusting transmission power of Bluetooth signal, storage medium and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112235856A true CN112235856A (en) | 2021-01-15 |
Family
ID=74113730
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011103045.3A Pending CN112235856A (en) | 2020-10-15 | 2020-10-15 | Method and device for adjusting transmission power of Bluetooth signal, storage medium and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112235856A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114268984A (en) * | 2021-11-15 | 2022-04-01 | 珠海格力电器股份有限公司 | Signal processing method, electronic device and storage medium |
CN114630349A (en) * | 2022-03-18 | 2022-06-14 | 深圳绿米联创科技有限公司 | Control method, device, system, electronic equipment and storage medium |
CN115734326A (en) * | 2022-11-25 | 2023-03-03 | 苏州纳芯微电子股份有限公司 | Short-distance wireless communication method, device, wearable equipment and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100120406A1 (en) * | 2008-11-08 | 2010-05-13 | Phoenix Technologies Ltd. | Secure platform management with power savings capacity |
CN103684550A (en) * | 2013-12-20 | 2014-03-26 | 上海斐讯数据通信技术有限公司 | Bluetooth signal transmission power adjusting system and mobile terminal |
CN108701906A (en) * | 2017-02-22 | 2018-10-23 | 华为技术有限公司 | A kind of communication means and mobile terminal |
CN109302738A (en) * | 2017-07-25 | 2019-02-01 | 杭州海康威视数字技术股份有限公司 | A kind of methods, devices and systems adjusting wireless signal transmission power |
CN110139262A (en) * | 2019-06-10 | 2019-08-16 | Oppo广东移动通信有限公司 | Bluetooth communication control method and Related product |
CN111093259A (en) * | 2019-12-27 | 2020-05-01 | 惠州Tcl移动通信有限公司 | Bluetooth power adjustment method, device, storage medium and terminal |
-
2020
- 2020-10-15 CN CN202011103045.3A patent/CN112235856A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100120406A1 (en) * | 2008-11-08 | 2010-05-13 | Phoenix Technologies Ltd. | Secure platform management with power savings capacity |
CN103684550A (en) * | 2013-12-20 | 2014-03-26 | 上海斐讯数据通信技术有限公司 | Bluetooth signal transmission power adjusting system and mobile terminal |
CN108701906A (en) * | 2017-02-22 | 2018-10-23 | 华为技术有限公司 | A kind of communication means and mobile terminal |
CN109302738A (en) * | 2017-07-25 | 2019-02-01 | 杭州海康威视数字技术股份有限公司 | A kind of methods, devices and systems adjusting wireless signal transmission power |
CN110139262A (en) * | 2019-06-10 | 2019-08-16 | Oppo广东移动通信有限公司 | Bluetooth communication control method and Related product |
CN111093259A (en) * | 2019-12-27 | 2020-05-01 | 惠州Tcl移动通信有限公司 | Bluetooth power adjustment method, device, storage medium and terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114268984A (en) * | 2021-11-15 | 2022-04-01 | 珠海格力电器股份有限公司 | Signal processing method, electronic device and storage medium |
CN114630349A (en) * | 2022-03-18 | 2022-06-14 | 深圳绿米联创科技有限公司 | Control method, device, system, electronic equipment and storage medium |
CN114630349B (en) * | 2022-03-18 | 2024-04-09 | 深圳绿米联创科技有限公司 | Control method, device, system, electronic equipment and storage medium |
CN115734326A (en) * | 2022-11-25 | 2023-03-03 | 苏州纳芯微电子股份有限公司 | Short-distance wireless communication method, device, wearable equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103488939B (en) | Method, device and terminal for prompting user | |
CN112235856A (en) | Method and device for adjusting transmission power of Bluetooth signal, storage medium and mobile terminal | |
CN111176602B (en) | Picture display method and device, storage medium and intelligent device | |
CN112229507A (en) | Ambient light detection method and device, storage medium and mobile terminal | |
CN108990105A (en) | Wireless communication transmission method, device, mobile terminal and computer-readable storage medium | |
CN110972246A (en) | Power control method, transmission power control parameter determination method and related equipment | |
CN110611580B (en) | Cell management method, terminal and network side equipment | |
CN111131612B (en) | Screen color temperature control method and device, storage medium and mobile terminal | |
CN110708747A (en) | Data transmission rate adjusting method, system, storage medium and mobile terminal | |
CN109189360A (en) | Screen sounding control method, device and electronic device | |
CN110034872B (en) | Association relation indication method, association relation determination method and related equipment of resources and QCL | |
CN108683812A (en) | volume adjusting method, device and mobile terminal | |
CN112839326A (en) | Network switching method, device, storage medium and gateway equipment | |
CN110730013B (en) | Method for improving transmission stray and mobile terminal | |
CN110022600B (en) | Driving current adjusting method and device, storage medium and mobile terminal | |
CN109286414B (en) | Antenna determination method and terminal | |
CN111556248A (en) | Shooting method, shooting device, storage medium and mobile terminal | |
CN111314639A (en) | Video recording method and electronic equipment | |
CN111309224B (en) | Sound effect adjusting method and device, storage medium and mobile terminal | |
CN113099542B (en) | Parameter reporting method, uplink scheduling method, device and medium | |
CN110995324B (en) | Bluetooth communication method, device, storage medium and terminal equipment | |
CN108494907A (en) | mobile terminal screen control method, device, mobile terminal and storage medium | |
CN110839296B (en) | Network resource scheduling method, device, storage medium and mobile terminal | |
CN110035553B (en) | Resource scheduling request method and device and mobile terminal | |
CN110365454B (en) | Carrier selection method, terminal and network equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210115 |