CN113810888B - Method and device for adjusting power of Bluetooth equipment and storage medium - Google Patents
Method and device for adjusting power of Bluetooth equipment and storage medium Download PDFInfo
- Publication number
- CN113810888B CN113810888B CN202110910663.7A CN202110910663A CN113810888B CN 113810888 B CN113810888 B CN 113810888B CN 202110910663 A CN202110910663 A CN 202110910663A CN 113810888 B CN113810888 B CN 113810888B
- Authority
- CN
- China
- Prior art keywords
- terminal equipment
- area
- target
- bluetooth
- positioning
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 142
- 238000004891 communication Methods 0.000 claims abstract description 57
- 238000012545 processing Methods 0.000 claims description 53
- 238000004590 computer program Methods 0.000 claims description 16
- 230000001133 acceleration Effects 0.000 claims description 11
- 230000006978 adaptation Effects 0.000 claims 4
- 230000005540 biological transmission Effects 0.000 abstract description 6
- 230000006870 function Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 12
- 238000005516 engineering process Methods 0.000 description 11
- 238000013461 design Methods 0.000 description 6
- 238000010295 mobile communication Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 239000000835 fiber Substances 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/70—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
- H04B5/72—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
-
- 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/28—TPC being performed according to specific parameters using user profile, e.g. mobile speed, priority or network state, e.g. standby, idle or non transmission
- H04W52/283—Power depending on the position of the mobile
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the application provides a method, a device and a storage medium for adjusting the power of Bluetooth equipment, relating to the technical field of terminals; the method comprises the following steps: the terminal equipment and the Bluetooth headset establish communication connection based on a Bluetooth communication protocol; in the process of communication between the terminal equipment and the Bluetooth headset, the terminal equipment acquires an area label of an area where the terminal equipment is located; and in the case that the area tag is of the first type, the terminal equipment reduces the power of the first Bluetooth module. Like this, terminal equipment is when being in the great region of probability ratio that takes place to lose, the power of first bluetooth module of transfer down for the signal distance that the power of first bluetooth module can support transmission or receipt diminishes, consequently, if terminal equipment loses appears, terminal equipment and bluetooth headset's distance will grow, bluetooth headset will be difficult to receive terminal equipment's signal, the user can not hear or can not hear the audio frequency of terminal equipment clearly in bluetooth headset, the user can in time discover that terminal equipment loses.
Description
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method and an apparatus for adjusting power of a bluetooth device, and a storage medium.
Background
With the development of terminal technology, bluetooth wireless headsets (also called bluetooth headsets) are gradually applied to the lives of people. The Bluetooth headset can establish communication connection with terminal equipment such as a mobile phone based on a Bluetooth communication protocol, and then the Bluetooth headset can play audio in the mobile phone. For example, a user may listen to music or make a call through a bluetooth headset connected to a cell phone.
However, when a user uses the bluetooth headset to listen to music or make a call, the mobile phone is lost, and the user can still clearly listen to the sound from the bluetooth headset, so that the user cannot find that the mobile phone is lost in time.
Disclosure of Invention
The embodiment of the application provides a method and a device for adjusting power of Bluetooth equipment and a storage medium, relates to the technical field of terminals, and is beneficial to being discovered by a user in time under the condition that a mobile phone is lost. The method comprises the following steps:
in a first aspect, an embodiment of the present application provides a method for adjusting power of a bluetooth device, which is applied to a bluetooth device system, where the bluetooth device system includes a terminal device and a bluetooth headset; the method comprises the following steps: the terminal equipment and the Bluetooth headset establish communication connection based on a Bluetooth communication protocol; in the process of communication between the terminal equipment and the Bluetooth headset, the terminal equipment acquires an area label of an area where the terminal equipment is located; the area label is used for representing the probability of loss of the terminal equipment; under the condition that the area tag is of the first type, the terminal equipment reduces the power of the first Bluetooth module; the first type is used for representing that the probability of loss of the terminal equipment is greater than a probability threshold value; the first Bluetooth module is a Bluetooth module in the terminal equipment; the reduced power of the first Bluetooth module is greater than a first power threshold value.
In the embodiment of the application, when the terminal device is in the area where the probability of loss is greater than the probability threshold, the power of the first bluetooth module is reduced, so that the distance between the terminal device and the bluetooth headset becomes smaller if the power of the first bluetooth module can support transmission or reception, therefore, if the terminal device is lost, the distance between the terminal device and the bluetooth headset becomes larger, the bluetooth headset is difficult to receive signals of the terminal device, the user cannot hear or cannot hear the audio frequency of the terminal device in the bluetooth headset, and the user can find the loss of the terminal device in time.
In a possible implementation, the method further includes: the terminal equipment records a plurality of connection information when a user uses the terminal equipment; the connection information includes a network identification; the network identification is the identification of a wireless local area network provided by an access point connected when a user uses the terminal equipment; the terminal equipment obtains a plurality of first target corresponding relations according to the plurality of connection information; the first target corresponding relation comprises a corresponding relation between the identification of the wireless local area network and the area label; the above-mentioned terminal equipment obtains the regional label of the region that terminal equipment is located, includes: the terminal equipment acquires a target network identifier; the target network identification is an identification of a wireless local area network provided by a target access point; the target access point is an access point connected with the terminal equipment when the terminal equipment is communicated with the Bluetooth headset; and the terminal equipment obtains the area labels in the corresponding relations of the first targets according to the target network identifications.
Therefore, the terminal equipment can obtain the corresponding relation between the identifier of the wireless local area network and the area label according to the recorded connection information, so that the terminal equipment can quickly obtain the area label of the area where the terminal equipment is located according to the identifier of the accessed wireless local area network.
In another possible implementation manner, the terminal device obtains a plurality of first target corresponding relationships according to a plurality of connection information; the method comprises the following steps: the terminal equipment obtains the corresponding relation between the first network identification and the first type under the condition that the terminal equipment determines that the first network identification exists in a preset network identification library; the first network identification is any one of a plurality of connection information. In this way, the terminal device may preset a network identifier library, for example: the network identification library comprises identifications of wireless local area networks of commercial restaurants, identifications of wireless local area networks of hotel lobbies, identifications of wireless local area networks of shopping malls and the like. The terminal device can establish a corresponding relationship between the network identifier in the network identifier library and the first type, so that the efficiency of acquiring the corresponding relationship of the first target is improved.
In another possible implementation manner, the connection information further includes connection time; the connection time comprises the starting time and the ending time of the terminal equipment for connecting the access point; the terminal equipment obtains a plurality of first target corresponding relations according to the plurality of connection information; the method comprises the following steps: under the condition that the terminal equipment determines that the first network identification does not exist in the network identification library, the terminal equipment acquires the connection time recorded in the target connection information; the target connection information is connection information of a plurality of pieces of connection information including a first network identifier; the terminal equipment acquires connection duration corresponding to the target connection information according to the connection time recorded in the target connection information; under the condition that the connection duration is greater than a first preset threshold value, the terminal equipment obtains the corresponding relation between the first network identification and the second type; the second type is used for representing that the probability of loss of the terminal equipment is less than or equal to a probability threshold value; and/or the terminal equipment acquires the number of the target connection information; and under the condition that the number of the target connection information is larger than a second preset threshold value, the terminal equipment obtains the corresponding relation between the first network identification and the second type. In this way, when the connection duration corresponding to the target connection information is greater than the first preset threshold, it indicates that the time that the user stays in the area is longer, then the terminal device may determine the area tag corresponding to the network identifier as the second type, and when the number of the target connection information is greater than the second preset threshold, it indicates that the user often connects to the wireless local area network represented by the network identifier, and therefore the terminal device may also determine the area tag corresponding to the network identifier as the second type.
In another possible implementation manner, the obtaining, by the terminal device, an area tag of an area where the terminal device is located includes: the terminal equipment acquires the area where the terminal equipment is located according to a target positioning method; the target positioning method comprises at least one of Beidou positioning, global positioning system positioning, global satellite navigation system positioning, Galileo satellite positioning, quasi-zenith satellite system positioning, position-based service base station positioning, auxiliary global satellite positioning system positioning, acceleration sensor auxiliary positioning, gyroscope auxiliary positioning, Wi-Fi real-time positioning, Bluetooth positioning and camera auxiliary positioning; and the terminal equipment acquires the area label corresponding to the area where the terminal equipment is located according to the second target corresponding relation, wherein the second target corresponding relation comprises the corresponding relation between the area and the area label. Therefore, as the current positioning technology gradually matures and the positioning error becomes smaller and smaller, the terminal device can determine the area label corresponding to the area according to the area where the terminal device is positioned in real time.
In another possible implementation manner, the method further includes: the terminal equipment records a plurality of connection information when a user uses the terminal equipment; the connection information includes a network identification; the network identification is the identification of a wireless local area network provided by an access point connected when a user uses the terminal equipment; the terminal equipment obtains a plurality of first target corresponding relations according to the plurality of connection information; the first target corresponding relation comprises a corresponding relation between the identification of the wireless local area network and the area label; the above-mentioned terminal equipment obtains the regional label of the region that terminal equipment is located, includes: the terminal equipment acquires a target network identifier; the target network identification is the identification of the wireless local area network provided by the target access point; the target access point is an access point connected with the terminal equipment when the terminal equipment is communicated with the Bluetooth headset; the terminal equipment acquires a first area label corresponding to the target network identifier according to the corresponding relation of the plurality of first targets; the first zone label is of a first type or the first zone label is of a second type; the second type is used for representing that the probability of loss of the terminal equipment is less than or equal to a probability threshold value; the terminal equipment acquires the area where the terminal equipment is located according to the target positioning method; the target positioning method comprises at least one of Beidou positioning, global positioning system positioning, global satellite navigation system positioning, Galileo satellite positioning, quasi-zenith satellite system positioning, position-based service base station positioning, auxiliary global satellite positioning system positioning, acceleration sensor auxiliary positioning, gyroscope auxiliary positioning, Wi-Fi real-time positioning, Bluetooth positioning and camera auxiliary positioning; the terminal equipment acquires a second area label corresponding to the area where the terminal equipment is located according to the corresponding relation of a second target, wherein the corresponding relation of the second target comprises the corresponding relation between the area and the area label; the second zone label is of the first type or the second zone label is of the second type; under the condition that the first area label is the same as the second area label, the terminal equipment determines that the area label is the first area label; and under the condition that the first area label is different from the second area label, the terminal equipment determines that the area label is of the first type.
In this way, the terminal device can obtain the area label of the area where the terminal device is located by combining the two different modes of obtaining the area label of the area where the terminal device is located, so that the obtained area label is more likely to be in an actual situation.
In another possible implementation manner, the method further includes: the terminal equipment sends a first indication message to the Bluetooth headset; the first indication message is used for indicating the Bluetooth headset to reduce the power of the second Bluetooth module; the second Bluetooth module is a Bluetooth module in a Bluetooth headset; the power of the second Bluetooth module is reduced by the Bluetooth headset; the reduced power of the second Bluetooth module is greater than a second power threshold. Like this, bluetooth headset also transfers the power of second bluetooth module down, and under the condition that terminal equipment loses, the user will not hear or not hear terminal equipment's audio frequency in bluetooth headset to make the user can in time discover that terminal equipment loses.
In another possible implementation manner, the turning down the power of the first bluetooth module by the terminal device includes: the terminal equipment reduces the power of the first Bluetooth module to a first power threshold value.
In another possible implementation manner, the turning down the power of the first bluetooth module by the terminal device includes: the terminal equipment reduces the power of the first Bluetooth module by a third preset threshold value; the power of the first Bluetooth module after being turned down is larger than or equal to a first power threshold value.
In another possible implementation manner, the method further includes: under the condition that the area tag is of a second type, the terminal equipment increases the power of the first Bluetooth module; the second type is used for representing that the probability of loss of the terminal equipment is less than or equal to a probability threshold value; the power of the first Bluetooth module after being adjusted is smaller than or equal to a third power threshold value. In this way, the terminal device powers up the bluetooth module if the probability of the terminal device being lost is less than or equal to the probability threshold. If the terminal device and the bluetooth headset are separated by an obstacle such as a wall, the bluetooth module of the terminal device is powered up, so that the capability of the terminal device for supporting the transmitted or received signal to pass through the obstacle is enhanced, the bluetooth headset can still receive the signal of the terminal device, and a user can clearly hear the audio frequency of the terminal device in the bluetooth headset.
In another possible implementation manner, the step of increasing the power of the first bluetooth module by the terminal device includes: and the terminal equipment increases the power of the first Bluetooth module to a third power threshold value.
In another possible implementation manner, the step of increasing the power of the first bluetooth module by the terminal device includes: and the terminal equipment increases the power of the first Bluetooth module by a fourth preset threshold value, and the increased power of the first Bluetooth module is smaller than or equal to a third power threshold value.
In another possible implementation manner, the method further includes: the terminal equipment sends a second indication message to the Bluetooth headset; the second indication message is used for indicating the Bluetooth headset to increase the power of the second Bluetooth module; the second Bluetooth module is a Bluetooth module in a Bluetooth headset; the Bluetooth headset increases the power of the second Bluetooth module; the power of the second Bluetooth module after being adjusted is smaller than a fourth power threshold value.
In a second aspect, an embodiment of the present application provides a terminal device, where the terminal device includes: the Bluetooth module and the processing module; the Bluetooth module is used for establishing communication connection with the Bluetooth headset based on a Bluetooth communication protocol; the processing module is used for acquiring an area label of an area where the terminal equipment is located by the terminal equipment in the process of communication between the terminal equipment and the Bluetooth headset; the area label is used for representing the probability of loss of the terminal equipment; under the condition that the area tag is of the first type, the terminal equipment reduces the power of the first Bluetooth module; the first type is used for representing that the probability of loss of the terminal equipment is greater than a probability threshold value; the first Bluetooth module is a Bluetooth module in the terminal equipment; the reduced power of the first Bluetooth module is greater than a first power threshold value.
Optionally, the processing module is further configured to: recording a plurality of connection information when a user uses the terminal equipment; the connection information includes a network identification; the network identification is the identification of a wireless local area network provided by an access point connected when a user uses the terminal equipment; obtaining a plurality of first target corresponding relations according to the plurality of connection information; the first target corresponding relation comprises a corresponding relation between the identification of the wireless local area network and the area label; the processing module is specifically configured to: acquiring a target network identifier; the target network identification is the identification of the wireless local area network provided by the target access point; the target access point is an access point connected with the terminal equipment when the terminal equipment is communicated with the Bluetooth headset; and obtaining the area labels in the plurality of first target corresponding relations according to the target network identification.
Optionally, the processing module is specifically configured to: obtaining a corresponding relation between the first network identifier and the first type under the condition that the first network identifier exists in a preset network identifier library; the first network identification is any one of a plurality of connection information.
Optionally, the connection information further includes connection time; the connection time comprises the starting time and the ending time of the terminal equipment for connecting the access point; the processing module is specifically configured to: under the condition that the first network identification does not exist in the network identification library, acquiring the connection time recorded in the target connection information; the target connection information is connection information of a plurality of pieces of connection information including a first network identifier; acquiring connection duration corresponding to the target connection information according to the connection time recorded in the target connection information; obtaining a corresponding relation between the first network identifier and the second type under the condition that the connection duration is greater than a first preset threshold value; the second type is used for representing that the probability of loss of the terminal equipment is less than or equal to a probability threshold value; and/or the processing module is specifically configured to: acquiring the number of target connection information; and obtaining the corresponding relation between the first network identifier and the second type under the condition that the number of the target connection information is larger than a second preset threshold value.
Optionally, the processing module is specifically configured to: acquiring the area where the terminal equipment is located according to a target positioning method; the target positioning method comprises at least one of Beidou positioning, global positioning system positioning, global satellite navigation system positioning, Galileo satellite positioning, quasi-zenith satellite system positioning, position-based service base station positioning, auxiliary global satellite positioning system positioning, acceleration sensor auxiliary positioning, gyroscope auxiliary positioning, Wi-Fi real-time positioning, Bluetooth positioning and camera auxiliary positioning; and acquiring an area label corresponding to the area where the terminal equipment is located according to the second target corresponding relation, wherein the second target corresponding relation comprises the corresponding relation between the area and the area label.
Optionally, the processing module is further configured to: recording a plurality of connection information when a user uses the terminal equipment; the connection information includes a network identification; the network identification is the identification of a wireless local area network provided by an access point connected when a user uses the terminal equipment; obtaining a plurality of first target corresponding relations according to the plurality of connection information; the first target corresponding relation comprises a corresponding relation between the identification of the wireless local area network and the area label; the processing module is specifically configured to: acquiring a target network identifier; the target network identification is the identification of the wireless local area network provided by the target access point; the target access point is an access point connected with the terminal equipment when the terminal equipment is communicated with the Bluetooth headset; acquiring a first area label corresponding to a target network identifier according to the corresponding relation of the plurality of first targets; the first zone label is of a first type or the first zone label is of a second type; the second type is used for representing that the probability of loss of the terminal equipment is less than or equal to a probability threshold value; acquiring the area where the terminal equipment is located according to a target positioning method; the target positioning method comprises at least one of Beidou positioning, global positioning system positioning, global satellite navigation system positioning, Galileo satellite positioning, quasi-zenith satellite system positioning, position-based service base station positioning, auxiliary global satellite positioning system positioning, acceleration sensor auxiliary positioning, gyroscope auxiliary positioning, Wi-Fi real-time positioning, Bluetooth positioning and camera auxiliary positioning; acquiring a second area label corresponding to the area where the terminal equipment is located according to the second target corresponding relation, wherein the second target corresponding relation comprises the corresponding relation between the area and the area label; the second area label is of the first type or the second area label is of the second type; determining the area label as a first area label under the condition that the first area label is the same as the second area label; in the case where the first area tag is different from the second area tag, the area tag is determined to be of the first type.
Optionally, the bluetooth module is further configured to: sending a first indication message to the Bluetooth headset; the first indication message is used for indicating the Bluetooth headset to reduce the power of the second Bluetooth module; the second Bluetooth module is a Bluetooth module in the Bluetooth headset.
Optionally, the processing module is specifically configured to: and reducing the power of the first Bluetooth module to a first power threshold value.
Optionally, the processing module is specifically configured to: the power of the first Bluetooth module is reduced by a third preset threshold value; the reduced power of the first Bluetooth module is greater than or equal to a first power threshold value.
Optionally, the processing module is further configured to: under the condition that the area tag is of a second type, increasing the power of the first Bluetooth module; the second type is used for representing that the probability of loss of the terminal equipment is less than or equal to a probability threshold value; the power of the first Bluetooth module after being adjusted is smaller than or equal to a third power threshold value.
Optionally, the processing module is specifically configured to: and increasing the power of the first Bluetooth module to a third power threshold value.
Optionally, the processing module is specifically configured to: and increasing the power of the first Bluetooth module by a fourth preset threshold, wherein the increased power of the first Bluetooth module is smaller than or equal to the third power threshold.
Optionally, the bluetooth module is further configured to: sending a second indication message to the Bluetooth headset; the second indication message is used for indicating the Bluetooth headset to increase the power of the second Bluetooth module; the second Bluetooth module is a Bluetooth module in the Bluetooth headset.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program or an instruction is stored, and when the computer program or the instruction runs on a computer, the computer is caused to execute a method performed by a terminal device in a method for adjusting power of a bluetooth device described in the first aspect or any one of the possible implementations of the first aspect, or the computer is caused to execute a method performed by a bluetooth headset in a method for adjusting power of a bluetooth device described in the first aspect or any one of the possible implementations of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer program product including a computer program, when the computer program runs on a computer, the computer is caused to execute a method performed by a terminal device in a method for adjusting power of a bluetooth device described in the first aspect or any one of the possible implementations of the first aspect, or the computer is caused to execute a method performed by a bluetooth headset in a method for adjusting power of a bluetooth device described in the first aspect or any one of the possible implementations of the first aspect.
In a fifth aspect, the present application provides a chip or a chip system, where the chip or the chip system includes at least one processor and a communication interface, where the communication interface and the at least one processor are interconnected by a line, and the at least one processor is configured to execute a computer program or instructions to perform a method performed by a terminal device in a method for adjusting power of a bluetooth device described in the first aspect or any one of the possible implementations of the first aspect, or to perform a method performed by a bluetooth headset in a method for adjusting power of a bluetooth device described in the first aspect or any one of the possible implementations of the first aspect. The communication interface in the chip may be an input/output interface, a pin, a circuit, or the like.
In one possible implementation, the chip or chip system described above in this application further comprises at least one memory having instructions stored therein. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or may be a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).
In a sixth aspect, an embodiment of the present application provides a bluetooth device, where the bluetooth device includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to execute the computer program to perform the method performed by the terminal device in the method for adjusting power of a bluetooth device described in the first aspect or any one of the possible implementations of the first aspect, or to perform the method performed by the bluetooth headset in the method for adjusting power of a bluetooth device described in the first aspect or any one of the possible implementations of the first aspect.
It should be understood that the second aspect to the sixth aspect of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by the aspects and the corresponding possible implementations are similar and will not be described again.
Drawings
Fig. 1 is a schematic diagram of a bluetooth headset and a mobile phone for communication according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a bluetooth headset to which the embodiment of the present application is applied;
fig. 3 is a schematic structural diagram of a terminal device to which the embodiment of the present application is applied;
fig. 4 is a flowchart illustrating a method for adjusting power of a bluetooth device according to an embodiment of the present disclosure;
fig. 5 is a schematic interface diagram of a terminal device in a process of connecting to a first Wi-Fi access point according to an embodiment of the present application;
FIG. 6 is a diagram illustrating a private area scenario to which embodiments of the present application are applicable;
fig. 7 is a flowchart illustrating another method for adjusting power of a bluetooth device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a chip according to an embodiment of the present disclosure.
Detailed Description
In the embodiments of the present application, terms such as "first" and "second" are used to distinguish the same or similar items having substantially the same function and action. For example, the first chip and the second chip are only used for distinguishing different chips, and the sequence order thereof is not limited. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present relevant concepts in a concrete fashion.
In the embodiments of the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c can be single or multiple.
As shown in fig. 1, the bluetooth headset 20 may establish a communication connection with the handset 10 based on a bluetooth communication protocol, so that a user can play audio in the handset 10 through the bluetooth headset 20 or make a call through the bluetooth headset 20.
For example, when the mobile phone 10 communicates with the bluetooth headset 20, the mobile phone 10 may transmit or receive signals based on a bluetooth module in the mobile phone 10, and the bluetooth headset 20 may transmit or receive signals based on a bluetooth module in the bluetooth headset 20. The higher the power of the bluetooth module of the mobile phone 10 is, the longer the distance between the signals that can be supported by the bluetooth module of the mobile phone 10 for transmission or reception is, but the power consumption is larger, and the lower the power of the bluetooth module of the mobile phone 10 is, the closer the distance between the signals that can be supported by the bluetooth module of the mobile phone 10 for transmission or reception is, but the power consumption is smaller. Similarly, the higher the power of the bluetooth module of the bluetooth headset 20, the longer the distance that the bluetooth module of the bluetooth headset 20 can support transmitting or receiving signals, but the greater the power consumption, and the lower the power of the bluetooth module of the bluetooth headset 20, the closer the bluetooth module of the bluetooth headset 20 can support transmitting or receiving signals, but the less the power consumption.
In order to enable the mobile phone 10 and the bluetooth headset 20 to communicate well, the power of the bluetooth module of the mobile phone 10 or the power of the bluetooth module of the bluetooth headset 20 may be set in two ways.
In the first mode, the bluetooth module of the mobile phone 10 and the bluetooth module of the bluetooth headset 20 both transmit signals with a fixed large power, so that the mobile phone 10 and the bluetooth headset 20 can maintain good communication.
In the second mode, when the bluetooth module of the mobile phone 10 and the bluetooth module of the bluetooth headset 20 operate at respective default powers, if the distance between the mobile phone 10 and the bluetooth headset 20 becomes longer, or the mobile phone 10 and the bluetooth headset 20 are located in an area with larger noise, the power of the bluetooth module of the mobile phone 10 is increased and the power of the bluetooth module of the bluetooth headset 20 is increased, so that better communication can be maintained between the mobile phone 10 and the bluetooth headset 20; if the distance between the mobile phone 10 and the bluetooth headset 20 is close or the mobile phone 10 and the bluetooth headset 20 are in a quiet area, the power of the bluetooth module of the mobile phone 10 is reduced and the power of the bluetooth module of the bluetooth headset 20 is reduced, so that better communication can be maintained between the mobile phone 10 and the bluetooth headset 20, and power consumption is saved.
It is understood that in the first and second modes, when the mobile phone 10 is far away from the bluetooth headset 20 or in a noisy area, both the bluetooth module of the mobile phone 10 and the bluetooth module of the bluetooth headset 20 are set to have higher power based on the concept of keeping the mobile phone 10 and the bluetooth headset 20 in good communication.
However, this design will cause that when the mobile phone 10 is lost, although the distance between the mobile phone 10 and the bluetooth headset 20 becomes far, both the bluetooth module of the mobile phone 10 and the bluetooth module of the bluetooth headset 20 are set to have larger power, so that the bluetooth headset 20 can still clearly play the audio in the mobile phone 10, and the user will not sense the loss of the mobile phone 10, and when the user cannot hear the audio of the mobile phone 10 clearly from the bluetooth headset 20, the distance between the mobile phone 10 and the bluetooth headset 20 is far, and the user cannot find the mobile phone 10 in time.
Based on this, the embodiment of the present application provides a method for adjusting power of a bluetooth device, when a mobile phone is in a public area, the power of a bluetooth module of the mobile phone may be reduced, or the power of the bluetooth module of the mobile phone and the power of a bluetooth module of a bluetooth headset may be reduced, so that if the mobile phone is lost, a distance between the mobile phone and the bluetooth headset may become large, because the power of the bluetooth module of the mobile phone and the power of the bluetooth module of the bluetooth headset are both small, the bluetooth headset may not receive a signal of the mobile phone, and a user may not hear or cannot hear an audio of the mobile phone in the bluetooth headset, and the user may find the mobile phone is lost in time.
It will be appreciated that the functionality of the handset 10 described above may also be implemented by other terminal devices than handsets. The terminal device may be a mobile phone (mobile phone), a tablet computer (Pad), a notebook computer or a palm computer. The embodiment of the present application does not limit the specific technology and the specific device form adopted by the terminal device.
In order to better understand the embodiments of the present application, the following describes the structure of the bluetooth headset according to the embodiments of the present application. As shown in fig. 2, which is a schematic structural diagram of a bluetooth headset according to an embodiment of the present disclosure, the bluetooth headset 20 shown in fig. 2 may include at least one processor 201, a communication line 202, a memory 203, and at least one communication interface 204.
The processor 201 may be a general-purpose Central Processing Unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more ics for controlling the execution of programs according to the present disclosure.
The communication link 202 may include at least one path, such as a data bus, and/or a control bus, for transferring information between the aforementioned components (e.g., the at least one processor 201, the communication link 202, the memory 203, and the at least one communication interface 204).
The communication interface 204 may be any device, such as a transceiver, for communicating with other devices or communication networks, such as Wide Area Networks (WAN), Local Area Networks (LAN), and the like. The communication interface 204 includes a bluetooth module.
The memory 203 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 203 may be separate and coupled to the processor 201 via the communication line 202. The memory 203 may also be integrated with the processor 201. The memory 203 provided by the embodiment of the present application generally includes a nonvolatile memory. The memory 203 is used for storing computer instructions for executing the scheme of the application, and is controlled by the processor 201 to execute. The processor 201 is configured to execute the computer instructions stored in the memory 203, thereby implementing the methods provided by the embodiments described below. Illustratively, the memory 203 stores therein computer instructions for implementing a method for regulating power of a bluetooth device.
Optionally, the computer instructions in the embodiments of the present application may also be referred to as application program code or system, which is not specifically limited in the embodiments of the present application.
The following describes a structure of a terminal device according to an embodiment of the present application. Exemplarily, fig. 3 is a schematic structural diagram of a terminal device provided in an embodiment of the present application. The terminal device 30 shown in fig. 3 includes an antenna 1, an antenna 2, a processor 301, a memory 302, a wireless communication module 303, a power supply 304, a mobile communication module 305, a display 306, a key 307, a sensor module 308, and the like.
A memory may also be provided in processor 301 for storing instructions and data. In some embodiments, the memory in the processor 301 may be a cache memory that may hold instructions or data that have just been used or recycled by the processor 301.
In some embodiments, the processor 301 may include one or more interfaces, which may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, and/or a Universal Serial Bus (USB) interface, among others.
The power supply 304 supplies power to the processor 301, the memory 302, the wireless communication module 303, the mobile communication module 305, the display 306, the keys 307, and the like.
The wireless communication function of the terminal device 30 can be realized by the antenna 1, the antenna 2, the mobile communication module 305, the wireless communication module 303, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. The antennas in terminal equipment 30 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network.
The mobile communication module 305 may provide a solution including wireless communication of 2G/3G/4G/5G and the like applied on the terminal device 30; the wireless communication module 303 may provide a solution for wireless communication applied to the terminal device 30, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity networks), bluetooth, Global Navigation Satellite System (GNSS), FM, short-range wireless communication technology, infrared technology (IR), and the like.
In some embodiments, the antenna 1 of the terminal device 30 is coupled to the mobile communication module 305 and the antenna 2 is coupled to the wireless communication module 303, so that the terminal device 30 can communicate with the network and other devices through wireless communication technology; the wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc.
The terminal device 30 implements a display function through the display screen 306, the display screen 306 is used for displaying images, videos, and the like, and the display screen 306 includes a display panel. In some embodiments, the terminal device 30 may include 1 or N display screens 306, N being a positive integer greater than 1.
The terminal device 30 may implement the audio receiving and transmitting function through the audio processing module 306 and the like. In some embodiments, the terminal device 30 may include 1 or N audio receivers (e.g., microphones) and an audio player (e.g., speaker spreader), where N is a positive integer greater than 1.
The memory 302 may be used to store computer-executable program code, which includes instructions. The memory 302 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function) required by at least one function, data for implementing the application program function, and the like. The data may include: the network identification system comprises connection information, a plurality of first target corresponding relations, a network identification library, a plurality of second target corresponding relations and the like. The connection information is information that the terminal equipment is connected with the Wi-Fi access point through the Wi-Fi. The connection information comprises the identification of the wireless local area network provided by the Wi-Fi access point, the connection time of the terminal equipment connected with the Wi-Fi access point and the like. The first target corresponding relation is the relation between the identification of the wireless local area network and the area label. The network identification library comprises the identification of the wireless local area network. The second target corresponding relation is a corresponding relation between the area and the area label.
The sensor module 308 includes a pressure sensor 3081 for sensing a pressure signal, which may be converted to an electrical signal. In some embodiments, the pressure sensor 3081 may be disposed in the display screen 306.
The touch sensor 3082, also referred to as a "touch device". The touch sensor 3082 may be disposed on the display screen 306, and the touch sensor 3082 and the display screen 306 form a touch screen, which is also called a "touch screen". The touch sensor 3082 is used to detect a touch operation applied thereto or therearound.
The keys 307 include a volume key, an on-off key, and the like, and the keys 307 may be mechanical keys or touch keys. The terminal device 30 may receive a key input, and generate a key signal input related to user setting and function control of the terminal device 30.
It should be noted that, in the embodiment of the present application, the terminal device 30 configured with the bluetooth module may also be referred to as a bluetooth device. For example: the terminal device can be a mobile phone equipped with a bluetooth module, a tablet computer equipped with a bluetooth module, a palm computer equipped with a bluetooth module, and the like.
It should be noted that the structure illustrated in the embodiment of the present application does not constitute a specific limitation to the terminal device 30 and the bluetooth headset 20; it will be appreciated that the terminal device 30 and the bluetooth headset 20 may include more or fewer components than illustrated, or some components may be combined, some components may be split, or a different arrangement of components; where the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following embodiments may be implemented independently or in combination, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 4 is a flowchart illustrating a method for adjusting power of a bluetooth device according to an embodiment of the present disclosure, where as shown in fig. 4, the method for adjusting power of a bluetooth device may include the following steps:
s400: the terminal equipment records the connection information when the user uses the terminal equipment.
In the embodiment of the application, the connection information is information of a Wi-Fi access point. The Wi-Fi access point is a Wi-Fi access point to which the terminal equipment is connected. The connection information includes an identification of a wireless local area network provided by the Wi-Fi access point. Optionally, the connection information further includes information such as connection time when the terminal device connects to the Wi-Fi access point. The Wi-Fi access point may be a router or the like.
In a possible implementation, the terminal device records connection information of the user using the terminal device in a memory.
Illustratively, the terminal device may be a mobile phone and the Wi-Fi access point may be a router. One piece of connection information recorded by the mobile phone comprises: first Wi-Fi, connection time: 0 minutes and 0 seconds at 20 pm on 7/22/2021 to 10 minutes and 20 seconds at 8 am on 23/7/2021. Wherein the first Wi-Fi is an identification of a wireless local area network provided by the router. The connection time is 0 minutes and 0 seconds between 20 pm at 7/22/2021 and 10 minutes and 20 seconds between 8 am at 7/23/2021.
S401: and the terminal equipment obtains a plurality of first target corresponding relations according to the recorded plurality of connection information, wherein the first target corresponding relations are the relations between the identification of the wireless local area network and the area label.
In the embodiment of the application, the network identifier is an identifier of a wireless local area network provided by a Wi-Fi access point. The area label of the area where the terminal device is located is used for representing the probability of loss when the terminal device is located in the specific area. The particular area includes an area within wireless local area network coverage provided by a Wi-Fi access point. The zone tags may include a first type and a second type. The first type is used for representing that the probability of losing the terminal equipment is smaller than or equal to a probability threshold value, and the second type is used for representing that the probability of losing the terminal equipment is larger than the probability threshold value.
In a possible implementation manner, for any network identifier in the multiple pieces of connection information, the terminal device obtains an area tag corresponding to the network identifier by analyzing the multiple pieces of connection information through the following steps:
the method comprises the following steps: and the terminal equipment judges whether the network identification exists in a preset network identification library or not, if so, the fourth step is executed, and if not, the second step is executed. The preset network identifier library may be preset in the terminal device through a code.
Step two: the terminal equipment acquires the connection duration of the network identifier and the number of the connection information including the network identifier. The connection duration of the network identifier is used for representing the connection duration of the terminal equipment and the Wi-Fi access point. The connection duration of the network identifier may be calculated according to the connection time in the connection information including the network identifier.
Based on the example of the connection information in S400, the connection duration of the first Wi-Fi in the connection information acquired by the terminal device is: 0 minute 0 second at 20 pm on 7/22/2021 to 0 minute 0 second at 8 am on 23/7/2021, which is 12 hours. If the first Wi-Fi exists in the 30 pieces of connection information, the number of the connection information including the first Wi-Fi acquired by the terminal device is 30.
Step three: and under the condition that the connection duration of the network identifier is greater than a first preset threshold and/or the number of the connection information comprising the network identifier is greater than a second preset threshold, the terminal equipment obtains the corresponding relation between the network identifier and the first type.
And under the condition that the connection duration of the network identifier is less than or equal to a first preset threshold and the number of the connection information of the network identifier is less than or equal to a second preset threshold, the terminal equipment obtains the corresponding relation between the network identifier and the second type.
It is understood that the first preset threshold and the second preset threshold may be set by codes empirically.
Based on the example in the second step, if the first preset threshold is 8 hours, the connection duration of the first Wi-Fi is 12 hours, and the 12 hours are greater than 8 hours, then the terminal device obtains the corresponding relationship between the first Wi-Fi and the first type.
Step four: the terminal equipment obtains the corresponding relation between the network identification and the second type.
S402: under the condition that the terminal equipment is connected with the Bluetooth headset, the terminal equipment acquires the area label of the area where the terminal equipment is located.
Optionally, the terminal device further obtains the first operating power.
In the embodiment of the present application, the area label of the area may be understood as the size of the probability that the terminal device is lost when the terminal device is in the area. The first working power is the working power of the Bluetooth module of the terminal equipment.
Different methods for the terminal device to obtain the area label of the area where the terminal device is located are described in different cases.
In the first case, the terminal device connects to any one of the Wi-Fi access points:
the method comprises the following steps: and under the condition that the target network identification of the wireless local area network provided by the Wi-Fi access point exists in the first target corresponding relations, the terminal equipment takes the area label corresponding to the target network identification in the first target corresponding relations as the area label of the area where the terminal equipment is located.
In a possible implementation manner, the terminal device obtains an area tag corresponding to the target network identifier in the plurality of first target correspondence relationships. The area label acquired by the terminal equipment is the area label of the area where the terminal equipment is located.
The second method comprises the following steps: and the terminal equipment acquires the area where the terminal equipment is located according to the target positioning method. The method comprises the steps that when an area where the terminal equipment is located is a private area, the terminal equipment determines that an area label of the area is of a first type, and when the area where the terminal equipment is located is a public area, the terminal equipment determines that the area label of the area is of a second type.
In an embodiment of the present application, the target positioning method includes at least one of beidou positioning, Global Positioning System (GPS) positioning, global navigation satellite system (GLONASS) positioning, galileo satellite positioning, quasi-zenith satellite system (QZSS) positioning, Location Based Service (LBS) base station positioning, Assisted Global Positioning System (AGPS) positioning, acceleration sensor assisted positioning, gyroscope assisted positioning, Wi-Fi real-time positioning, bluetooth positioning, and camera assisted positioning. The private area may include: residential areas and office areas. Public areas may include mall areas, airport areas, station areas, outdoor areas, and the like.
In a possible implementation manner, the terminal device obtains the area where the terminal device is located according to the position information of the terminal device obtained by the target positioning method, and further determines the area tag of the area where the terminal device is located according to the second target corresponding relation. The second target corresponding relation is a corresponding relation between the area and the area label.
Illustratively, when the location information of the terminal device obtained by the terminal device according to the target positioning method is indoor in the cell a, the terminal device determines that the area where the terminal device is located is a private area, and when the location information obtained by the terminal device is in the market B, the terminal device determines that the area where the terminal device is located is a public area. In the second target correspondence, the area label corresponding to the private area is of a first type, and the area label corresponding to the public area is of a second type.
The third method comprises the following steps: and combining the area label of the area where the terminal equipment is located obtained by the first method and the area label of the area where the terminal equipment is located obtained by the second method to obtain the corrected area label of the area where the terminal equipment is located.
For convenience of description, the area label of the area where the terminal device is located obtained by the first method is simply referred to as a first method type, and the area label of the area where the terminal device is located obtained by the second method is simply referred to as a second method type.
And under the condition that the type of the method I is the same as that of the method II, the terminal equipment obtains the area label of the area where the terminal equipment is located, and the area label is the type of the method I.
Illustratively, when the type of the method one is the first type, and the type of the method two is the first type, the area tag of the area where the terminal device is located is obtained by the terminal device as the first type.
And under the condition that the type of the method I is different from the type of the method II, the area label of the area where the terminal equipment is obtained by the terminal equipment is of the second type.
Exemplary, method one: the terminal equipment is connected with an access point of a first Wi-Fi, the area label corresponding to the first Wi-Fi in the first target corresponding relations is of a first type, and the access point of the first Wi-Fi is an access point of a wireless local area network represented by the first Wi-Fi. Thus, method one type is the first type. In the second method: the terminal device obtains the position information of the terminal device as a road beside the residential area, the terminal device obtains that the area where the terminal device is located is a public area, and then the area label of the area where the terminal device is located is of the second type. The first method type is different from the second method type, so that the terminal device determines that the area label of the area where the terminal device is located is of the second type.
In case two, the terminal device is not connected to the Wi-Fi access point: and the terminal equipment acquires the area label of the area where the terminal equipment is located by adopting the method of the method II in the case I. And will not be described in detail.
S403: and under the condition that the area label of the area where the terminal equipment is located is of the second type, the terminal equipment reduces the power of the first Bluetooth module. The reduced power of the first Bluetooth module is greater than or equal to a first power threshold value.
Alternatively, when the area tag of the area where the terminal device is located is of the second type and the first operating power is greater than the first power threshold, the terminal device reduces the power of the first bluetooth module.
In the embodiment of the present application, the first power threshold may be empirically set by a code. For example: the first power threshold may be a minimum operating power of a bluetooth module of the terminal device set by the code. The Bluetooth module of the terminal device works under the first power threshold value, and the distance of the signals which can be supported to be transmitted or received by the Bluetooth module of the terminal device is smaller than the distance of the signals which can be supported to be transmitted or received by the Bluetooth module of the terminal device under the first working power. The first Bluetooth module is a Bluetooth module in the terminal equipment.
In a possible implementation manner, when the area tag of the area where the terminal device is located is of the second type and the first operating power is greater than the first power threshold, the terminal device reduces the power of the first bluetooth module to the first power threshold.
In another possible implementation manner, when the area tag of the area where the terminal device is located is of the second type and the first operating power is greater than the first power threshold, the terminal device decreases the power of the bluetooth module by a third preset threshold. The reduced power of the first Bluetooth module is greater than or equal to a first power threshold value.
In the embodiment of the present application, the third preset threshold may also be set empirically by a code. For example, the third preset threshold may be a difference between the first operating power and a power corresponding to a next level of the terminal device. If the power of the bluetooth module of the terminal device is divided into three levels, the power corresponding to the first level is 20dBm, the power corresponding to the second level is 4dBm, the power corresponding to the third level is odBm, and the first working power of the terminal device is 20dBm, then, the third preset threshold may be 16 dBm.
Based on the first working power and the third preset threshold, when the area tag of the area where the terminal device is located is of the second type and the first working power is greater than the first power threshold, the terminal device reduces the power of the bluetooth module by 16 dBm.
In the embodiment of the application, when the area where the terminal device is located is a public area, the area tag of the area is of the second type. And the terminal equipment reduces the power of the Bluetooth module of the terminal equipment under the condition that the power of the Bluetooth module of the terminal equipment is greater than a preset first power threshold value. Like this, if terminal equipment loses appears, terminal equipment and bluetooth headset's distance will grow, because terminal equipment's bluetooth module's power is transferred and is dwindled, its signal distance that can support transmission or receipt diminishes, consequently, bluetooth headset will be difficult to receive terminal equipment's signal, and the user will not hear or not hear terminal equipment's audio frequency in bluetooth headset to make the user can in time discover that terminal equipment loses.
S404: the terminal equipment sends a first indication message to a Bluetooth headset connected with the terminal equipment.
In this embodiment, the first indication message is used to instruct the bluetooth headset to reduce the power of the bluetooth module of the bluetooth headset.
S405: the Bluetooth headset obtains a second working power of the second Bluetooth module.
In this embodiment, the second bluetooth module is a bluetooth module in a bluetooth headset.
S406: and under the condition that the second working power is larger than a preset second power threshold value, the Bluetooth headset reduces the power of the second Bluetooth module. The reduced power of the second Bluetooth module is greater than or equal to a second power threshold value.
In the embodiment of the present application, the preset second power threshold may be set empirically by a code. And the distance of the signals which can be supported to be transmitted or received by the Bluetooth module of the Bluetooth headset is less than the distance of the signals which can be supported to be transmitted or received by the Bluetooth module of the Bluetooth headset under the second working power when the Bluetooth module of the Bluetooth headset works under the second working power.
For a possible implementation manner, refer to the method for the terminal device in S403 to reduce the power of the bluetooth module in the terminal device, which is not described again.
It can be understood that, in this embodiment, S404 to S406 are optional steps, and after S404 to S406 are executed, the power of the bluetooth module of the bluetooth headset is also turned down, and the distance between the bluetooth module and the bluetooth headset that can support transmission or reception becomes smaller, so that if the terminal device is lost, the distance between the terminal device and the bluetooth headset becomes larger, the bluetooth headset will hardly receive the signal of the terminal device, and a user will not hear or cannot hear the audio of the terminal device in the bluetooth headset, which further helps the user to find that the terminal device is lost in time. In addition, the power of the Bluetooth module of the Bluetooth headset is reduced, so that the power consumption of the Bluetooth headset is reduced.
It should be noted that, in the embodiment shown in fig. 4, the function of analyzing the plurality of connection information recorded by the terminal device to obtain the plurality of first target correspondences in S401 may also be implemented by another device. Illustratively, the terminal device sends a plurality of connection information recorded by the terminal device to other devices; and the other equipment analyzes the plurality of connection information to obtain a plurality of first target corresponding relations and sends the plurality of first target corresponding relations to the terminal equipment. The other device may be a server or a terminal device other than the terminal device, which is not limited in this embodiment of the present application.
In addition, the plurality of first target correspondences stored in the terminal device may also be obtained according to a tagging operation performed by the user on the network identifier. The operation of the user for tagging the network identifier may be an operation of the terminal device in the process of connecting with the Wi-Fi access point.
Exemplarily, as shown in fig. 5, a schematic interface diagram in a process of connecting a terminal device to a first Wi-Fi access point according to an embodiment of the present application is provided. The terminal device receives a click operation of joining the network control 501 by a user aiming at a network identifier of a first Wi-Fi on an interface shown in fig. 5, the terminal device responds to the click operation and displays an interface shown in B in fig. 5, the terminal device receives a password input by the user, a closing operation of a switch 502 of a private area label by the user and a click operation of an access control 503 on the interface shown in B, the terminal device responds to the operations, and under the condition that the password input by the user is the same as the password of the wireless local area network represented by the first Wi-Fi, the terminal device connects to an access point of the first Wi-Fi and stores a corresponding relation between the first Wi-Fi and a second type.
In the embodiment of the present application, the closing operation of the private area tag switch 502 by the user is the tagging operation of the user on the first Wi-Fi. The closing operation is used for indicating the terminal equipment to establish a corresponding relation between the first Wi-Fi and the second type.
The above description has been mainly made on the method of turning down the power of the bluetooth module of the terminal device, or turning down the power of the bluetooth module of the terminal device and turning down the power of the bluetooth module of the bluetooth headset when the terminal device is in the public area. The following describes how to adjust the power of the bluetooth module of the terminal device and the power of the bluetooth module of the bluetooth headset when the terminal device is in the private area.
When the mobile phone 10 and the bluetooth headset 20 shown in fig. 1 are in a private area, both the bluetooth module of the mobile phone 10 and the bluetooth module of the bluetooth headset 20 are set to have smaller power based on the concept of limited private area space and saving the power consumption of the mobile phone 10 and the power consumption of the bluetooth headset 20.
However, the lower the power of the bluetooth module of the mobile phone 10, the weaker the obstacle crossing capability of the transmitted signal that can be supported by the bluetooth module of the mobile phone 10, and the higher the power of the bluetooth module of the mobile phone 10, the stronger the obstacle crossing capability of the transmitted signal that can be supported by the bluetooth module of the mobile phone 10. Similarly, the lower the power of the bluetooth module of the bluetooth headset 20, the weaker the obstacle crossing capability of the transmitted signal that can be supported by the bluetooth module of the bluetooth headset 20, and the higher the power of the bluetooth module of the bluetooth headset 20, the stronger the obstacle crossing capability of the transmitted signal that can be supported by the bluetooth module of the bluetooth headset 20.
Therefore, this design may cause a problem that the user does not hear the audio of the cellular phone 10 clearly from the bluetooth headset 20 in the case where there is an obstacle between the cellular phone 10 and the bluetooth headset 20. In the private area scenario shown in fig. 6, the user wears the bluetooth headset 20 in the room and the mobile phone 10 is on the table in the living room, and the bluetooth headset 20 in the room is not far away from the mobile phone 10 in the living room, but the bluetooth headset 20 in the room is separated from the mobile phone 10 in the living room by a wall, so that the user cannot hear or cannot hear the audio of the mobile phone 10 in the room.
Based on this, the embodiment of the present application provides another method for adjusting power of a bluetooth device, where when a mobile phone is in a private area, the power of a bluetooth module of the mobile phone may be increased, or both the power of the bluetooth module of the mobile phone and the power of a bluetooth module of a bluetooth headset may be increased, so that even if there is an obstacle such as a wall between the bluetooth headset and the mobile phone, the bluetooth headset may still receive a signal of the mobile phone well, and a user may still clearly hear an audio of the mobile phone in the bluetooth headset.
Fig. 7 is a flowchart illustrating another method for adjusting power of a bluetooth device according to an embodiment of the present disclosure, where as shown in fig. 7, the method for adjusting power of a bluetooth device may include the following steps:
s700: under the condition that the terminal equipment is connected with the Bluetooth headset, the terminal equipment acquires an area tag of an area where the terminal equipment is located and first working power.
Possible implementation manners and examples refer to the description in S402, and are not described again.
S701: and under the condition that the area label of the area where the terminal equipment is located is of the first type and the first working power is smaller than a preset third power threshold, the terminal equipment increases the power of the Bluetooth module. And the power of the Bluetooth module in the terminal equipment after being adjusted is less than or equal to a third power threshold value.
In the embodiment of the application, the first type is used for representing that the probability of loss when the terminal device is in the specific area is less than or equal to the probability threshold. The preset third power threshold may be empirically set by the code. And the Bluetooth module of the terminal device can support the capability of the transmitted or received signal to cross the obstacle under the third power threshold value, and the capability of the Bluetooth module of the terminal device to support the capability of the transmitted or received signal to cross the obstacle under the first working power is higher than that of the Bluetooth module of the terminal device.
In a possible implementation manner, when the area tag of the area where the terminal device is located is of the first type and the first working power is smaller than a preset third power threshold, the terminal device adjusts the power of the bluetooth module to the third power threshold.
In another possible implementation manner, when the area tag of the area where the terminal device is located is of the first type and the first working power is smaller than the preset third power threshold, the terminal device increases the power of the bluetooth module by a fourth preset threshold. And the power of the Bluetooth module in the terminal equipment after being adjusted is less than or equal to a third power threshold value.
In the embodiment of the present application, the fourth preset threshold may also be set empirically by a code. For example, the fourth preset threshold may be a difference between the first operating power and a power corresponding to a previous level of the terminal device. If the power of the bluetooth module of the terminal device is divided into three levels, the power corresponding to the first level is 20dBm, the power corresponding to the second level is 4dBm, the power corresponding to the third level is odBm, and the first working power of the terminal device is 0dBm, then, the fourth preset threshold value may be 4 dBm.
Based on the first working power and the fourth preset threshold, when the area tag of the area where the terminal device is located is of the first type and the first working power is greater than the preset third power threshold, the terminal device increases the power of the bluetooth module by 4 dBm.
In the embodiment of the application, when the area where the terminal device is located is a private area, the area tag of the area is of a first type. And the terminal equipment increases the power of the Bluetooth module of the terminal equipment under the condition that the power of the Bluetooth module of the terminal equipment is smaller than a preset third power threshold value. Therefore, if the terminal device and the bluetooth headset are separated by an obstacle such as a wall, the power of the bluetooth module of the terminal device is increased, and the capability of the bluetooth module for supporting the transmitted or received signal to pass through the obstacle is enhanced, so that the bluetooth headset can still receive the signal of the terminal device, and a user can clearly hear the audio frequency of the terminal device in the bluetooth headset.
S702: and the terminal equipment sends a second indication message to the Bluetooth headset connected with the terminal equipment.
In this embodiment, the second indication message is used to instruct the bluetooth headset to increase the power of the bluetooth module of the bluetooth headset.
S703: the Bluetooth headset acquires a second working power of the second Bluetooth module.
In this embodiment, the second bluetooth module is a bluetooth module in a bluetooth headset.
S704: and under the condition that the second working power is smaller than a preset fourth power threshold, the Bluetooth headset increases the power of the second Bluetooth module. And the power of the second Bluetooth module after being adjusted to be larger than or equal to a fourth power threshold value.
In the embodiment of the present application, the preset fourth power threshold may be set empirically by a code. The Bluetooth module of the Bluetooth headset works under the fourth power threshold value, and the capability of the Bluetooth module of the Bluetooth headset for supporting the transmitted or received signals to pass through the obstacles is higher than the capability of the Bluetooth module of the Bluetooth headset for supporting the transmitted or received signals to pass through the obstacles when the Bluetooth module of the Bluetooth headset works under the second working power.
In a possible implementation manner, reference is made to the method for increasing the power of the bluetooth module in the terminal device by the terminal device in S701, which is not described again.
It is understood that, in this embodiment, S702 to S704 are optional steps, and after S702 to S704 are executed, the power of the bluetooth module of the bluetooth headset is also increased, which further enhances the capability of supporting the transmitted or received signal to pass through an obstacle, so that even if the bluetooth headset and the terminal device are separated by an obstacle such as a wall, the user can still clearly hear the audio of the terminal device in the bluetooth headset.
The scheme provided by the embodiment of the application is mainly introduced from the perspective of a method. To implement the above functions, it includes hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the present application is capable of being implemented in hardware or a combination of hardware and computer software for performing the exemplary method steps described in connection with the embodiments disclosed 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 terminal device implementing the method for adjusting the power of the bluetooth device may be divided into functional modules according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. Illustratively, the functions of the target application, drawing interface, and display engine are integrated in the display control unit. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
As shown in fig. 8, which is a schematic structural diagram of a terminal device according to an embodiment of the present application, the terminal device 80 shown in fig. 8 includes a bluetooth module 801 and a processing module 802. The Bluetooth module 801 is used for establishing communication connection with a Bluetooth headset based on a Bluetooth communication protocol; the processing module 802 is configured to, in a process of communication between the terminal device and the bluetooth headset, obtain, by the terminal device, an area tag of an area where the terminal device is located; the area label is used for representing the probability of loss of the terminal equipment; under the condition that the area tag is of the first type, the terminal equipment reduces the power of the Bluetooth module 801; the first type is used for representing that the probability of loss of the terminal equipment is greater than a probability threshold value; the Bluetooth module 801 is a Bluetooth module 801 in the terminal equipment; the power of the bluetooth module 801 after being turned down is greater than the first power threshold. For example, in conjunction with fig. 4, the bluetooth module 801 may be configured to perform the transmitting step in S404. The processing module 802 may be used to perform S400-S403 in conjunction with fig. 4. Referring to fig. 7, the bluetooth module 801 may be configured to perform the transmitting step in S702, and the processing module 802 may be configured to perform S700 to S701.
Optionally, the processing module 802 is further configured to: recording a plurality of connection information when a user uses the terminal equipment; the connection information includes a network identification; the network identification is the identification of a wireless local area network provided by an access point connected when a user uses the terminal equipment; obtaining a plurality of first target corresponding relations according to the plurality of connection information; the first target corresponding relation comprises a corresponding relation between the identification of the wireless local area network and the area label; the processing module 802 is specifically configured to: acquiring a target network identifier; the target network identification is the identification of the wireless local area network provided by the target access point; the target access point is an access point connected with the terminal equipment when the terminal equipment is communicated with the Bluetooth headset; and obtaining the area labels in the plurality of first target corresponding relations according to the target network identification.
Optionally, the processing module 802 is specifically configured to: obtaining a corresponding relation between the first network identifier and the first type under the condition that the first network identifier exists in a preset network identifier library; the first network identification is any one of a plurality of connection information.
Optionally, the connection information further includes connection time; the connection time comprises the starting time and the ending time of the terminal equipment for connecting the access point; the processing module 802 is specifically configured to: under the condition that the first network identification does not exist in the network identification library, acquiring connection time recorded in the target connection information; the target connection information is connection information of a plurality of pieces of connection information including a first network identifier; acquiring connection duration corresponding to the target connection information according to the connection time recorded in the target connection information; obtaining a corresponding relation between the first network identifier and the second type under the condition that the connection duration is greater than a first preset threshold value; the second type is used for representing that the probability of loss of the terminal equipment is less than or equal to a probability threshold value; and/or the processing module 802 is specifically configured to: acquiring the number of target connection information; and obtaining the corresponding relation between the first network identifier and the second type under the condition that the number of the target connection information is larger than a second preset threshold value.
Optionally, the processing module 802 is specifically configured to: acquiring the area of the terminal equipment according to a target positioning method; the target positioning method comprises at least one of Beidou positioning, global positioning system positioning, global satellite navigation system positioning, Galileo satellite positioning, quasi-zenith satellite system positioning, position-based service base station positioning, auxiliary global satellite positioning system positioning, acceleration sensor auxiliary positioning, gyroscope auxiliary positioning, Wi-Fi real-time positioning, Bluetooth positioning and camera auxiliary positioning; and acquiring an area label corresponding to the area where the terminal equipment is located according to the second target corresponding relation, wherein the second target corresponding relation comprises the corresponding relation between the area and the area label.
Optionally, the processing module 802 is further configured to: recording a plurality of connection information when a user uses the terminal equipment; the connection information includes a network identification; the network identification is an identification of a wireless local area network provided by an access point connected when a user uses the terminal equipment; obtaining a plurality of first target corresponding relations according to the plurality of connection information; the first target corresponding relation comprises a corresponding relation between the identification of the wireless local area network and the area label; the processing module 802 is specifically configured to: acquiring a target network identifier; the target network identification is the identification of the wireless local area network provided by the target access point; the target access point is an access point connected with the terminal equipment when the terminal equipment is communicated with the Bluetooth headset; acquiring a first area label corresponding to a target network identifier according to the corresponding relation of the plurality of first targets; the first zone label is of a first type or the first zone label is of a second type; the second type is used for representing that the probability of loss of the terminal equipment is less than or equal to a probability threshold value; acquiring the area where the terminal equipment is located according to a target positioning method; the target positioning method comprises at least one of Beidou positioning, global positioning system positioning, global satellite navigation system positioning, Galileo satellite positioning, quasi-zenith satellite system positioning, position-based service base station positioning, auxiliary global satellite positioning system positioning, acceleration sensor auxiliary positioning, gyroscope auxiliary positioning, Wi-Fi real-time positioning, Bluetooth positioning and camera auxiliary positioning; acquiring a second area label corresponding to the area where the terminal equipment is located according to the second target corresponding relation, wherein the second target corresponding relation comprises the corresponding relation between the area and the area label; the second area label is of the first type or the second area label is of the second type; determining the area label as a first area label under the condition that the first area label is the same as the second area label; in the case where the first area tag is different from the second area tag, the area tag is determined to be of the first type.
Optionally, the bluetooth module 801 is further configured to: sending a first indication message to the Bluetooth headset; the first indication message is used for indicating the Bluetooth headset to reduce the power of a Bluetooth module in the Bluetooth headset.
Optionally, the processing module 802 is specifically configured to: the power of the bluetooth module 801 is turned down to the first power threshold.
Optionally, the processing module 802 is specifically configured to: the power of the bluetooth module 801 is reduced by a third preset threshold value; the power of the bluetooth module 801 after being turned down is greater than or equal to the first power threshold.
Optionally, the processing module 802 is further configured to: in the case where the zone tag is of the second type, the power of the bluetooth module 801 is turned up; the second type is used for representing that the probability of loss of the terminal equipment is less than or equal to a probability threshold value; the power of the bluetooth module 801 after being adjusted up is less than or equal to the third power threshold.
Optionally, the processing module 802 is specifically configured to: the power of the bluetooth module 801 is adjusted up to the third power threshold.
Optionally, the processing module 802 is specifically configured to: the power of the bluetooth module 801 is increased by a fourth preset threshold, and the power of the bluetooth module 801 after the increase is less than or equal to the third power threshold.
Optionally, the bluetooth module 801 is further configured to: sending a second indication message to the Bluetooth headset; the second indication message is used for indicating the Bluetooth headset to increase the power of the Bluetooth module in the Bluetooth headset.
In one example, in conjunction with fig. 3, the functions of the processing module 802 described above may be implemented by the processor 301 in fig. 3 calling a computer program in the memory 302. The function of the bluetooth module 801 may be implemented by the wireless communication module 303 in fig. 3.
Fig. 9 is a schematic structural diagram of a chip according to an embodiment of the present application. Chip 120 includes one or more than two (including two) processors 1201, communication lines 1202, and communication interfaces 1203, optionally, chip 120 also includes memory 1204.
In some embodiments, the memory 1204 stores the following elements: an executable module or a data structure, or a subset thereof, or an expanded set thereof.
The method described in the embodiment of the present application may be applied to the processor 1201, or implemented by the processor 1201. The processor 1201 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 1201. The processor 1201 may be a general-purpose processor (e.g., a microprocessor or a conventional processor), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an FPGA (field-programmable gate array) or other programmable logic device, discrete gate, transistor logic device, or discrete hardware component, and the processor 1201 may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present application.
The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium mature in the field, such as a random access memory, a read only memory, a programmable read only memory, or a charged erasable programmable memory (EEPROM). The storage medium is located in the memory 1204, and the processor 1201 reads the information in the memory 1204, and completes the steps of the method in combination with the hardware thereof.
The processor 1201, the memory 1204, and the communication interface 1203 may communicate with each other via a communication line 1202.
In the above embodiments, the instructions stored by the memory for execution by the processor may be implemented in the form of a computer program product. The computer program product may be written in the memory in advance, or may be downloaded in the form of software and installed in the memory.
Embodiments of the present application also provide a computer program product comprising one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. Computer instructions may be stored in, or transmitted from, a computer-readable storage medium to another computer-readable storage medium, e.g., from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optics, Digital Subscriber Line (DSL), or wireless (e.g., infrared, wireless, microwave, etc.), the computer-readable storage medium may be any available medium that a computer can store or a data storage device including one or more available media integrated servers, data centers, etc., the available media may include, for example, magnetic media (e.g., floppy disks, hard disks, or magnetic tape), optical media (e.g., digital versatile disks, DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), etc.
The embodiment of the present application provides a bluetooth device, where the bluetooth device may execute a method executed by a terminal device or a method executed by a bluetooth headset in any of the above methods for adjusting power of a bluetooth device.
The embodiment of the application also provides a computer readable storage medium. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer-readable media may include computer storage media and communication media, and may include any medium that can communicate a computer program from one place to another. A storage media may be any target media that can be accessed by a computer.
As one possible design, the computer-readable medium may include a compact disk read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disk storage; the computer readable medium may include a disk memory or other disk storage device. Also, any connecting line may also be properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.
Combinations of the above should also be included within the scope of computer-readable media. The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (26)
1. A method for adjusting the power of Bluetooth equipment is characterized by being applied to a Bluetooth equipment system, wherein the Bluetooth equipment system comprises terminal equipment and a Bluetooth earphone; the method comprises the following steps:
the terminal equipment and the Bluetooth headset establish communication connection based on a Bluetooth communication protocol;
in the process of communication between the terminal equipment and the Bluetooth headset, the terminal equipment acquires an area tag of an area where the terminal equipment is located; the area label is used for representing the probability of loss of the terminal equipment;
when the area tag is of the first type, the terminal equipment reduces the power of the first Bluetooth module; the first type is used for representing that the probability of losing the terminal equipment is greater than a probability threshold value; the first Bluetooth module is a Bluetooth module in the terminal equipment; the reduced power of the first Bluetooth module is greater than a first power threshold value.
2. The method of adjusting of claim 1, further comprising:
the terminal equipment records a plurality of connection information when a user uses the terminal equipment; the connection information comprises a network identification; the network identification is the identification of a wireless local area network provided by an access point connected when a user uses the terminal equipment;
the terminal equipment obtains a plurality of first target corresponding relations according to the plurality of connection information; the first target corresponding relation comprises a corresponding relation between an identifier of a wireless local area network and the area label;
the method for acquiring the area label of the area where the terminal device is located by the terminal device includes:
the terminal equipment acquires a target network identifier; the target network identification is an identification of a wireless local area network provided by a target access point; the target access point is an access point connected with the terminal equipment when the terminal equipment is communicated with the Bluetooth headset;
and the terminal equipment obtains the area labels in the plurality of first target corresponding relations according to the target network identification.
3. The adjusting method according to claim 2, wherein the terminal device obtains a plurality of first target correspondences according to the plurality of connection information; the method comprises the following steps:
the terminal equipment obtains the corresponding relation between the first network identification and the first type under the condition that the terminal equipment determines that the first network identification exists in a preset network identification library; the first network identifier is any one of the plurality of connection information.
4. The adjustment method according to claim 3, characterized in that the connection information further comprises a connection time; the connection time comprises the starting time and the ending time of the terminal equipment for connecting the access point; the terminal equipment obtains a plurality of first target corresponding relations according to the plurality of connection information; the method comprises the following steps:
under the condition that the terminal equipment determines that the first network identification does not exist in the network identification library, the terminal equipment acquires connection time recorded in target connection information; the target connection information is the connection information of the plurality of pieces of connection information including the first network identifier; the terminal equipment acquires connection duration corresponding to the target connection information according to the connection time recorded in the target connection information; under the condition that the connection duration is greater than a first preset threshold, the terminal equipment obtains the corresponding relation between the first network identifier and the second type; the second type is used for representing that the probability of loss of the terminal equipment is less than or equal to the probability threshold;
and/or the presence of a gas in the gas,
the terminal equipment acquires the number of the target connection information; and under the condition that the number of the target connection information is larger than a second preset threshold value, the terminal equipment obtains the corresponding relation between the first network identification and the second type.
5. The adjusting method according to claim 1, wherein the obtaining, by the terminal device, an area tag of an area where the terminal device is located includes:
the terminal equipment acquires the area where the terminal equipment is located according to a target positioning method; the target positioning method comprises at least one of Beidou positioning, global positioning system positioning, global satellite navigation system positioning, Galileo satellite positioning, quasi-zenith satellite system positioning, position-based service base station positioning, auxiliary global satellite positioning system positioning, acceleration sensor auxiliary positioning, gyroscope auxiliary positioning, Wi-Fi real-time positioning, Bluetooth positioning and camera auxiliary positioning;
and the terminal equipment acquires the area label corresponding to the area where the terminal equipment is located according to a second target corresponding relation, wherein the second target corresponding relation comprises the corresponding relation between the area and the area label.
6. The method of adjusting of claim 1, further comprising:
the terminal equipment records a plurality of connection information when a user uses the terminal equipment; the connection information comprises a network identification; the network identification is the identification of a wireless local area network provided by an access point connected when a user uses the terminal equipment;
the terminal equipment obtains a plurality of first target corresponding relations according to the plurality of connection information; the first target corresponding relation comprises a corresponding relation between an identifier of a wireless local area network and the area label;
the method for acquiring the area label of the area where the terminal device is located by the terminal device includes:
the terminal equipment acquires a target network identifier; the target network identification is an identification of a wireless local area network provided by a target access point; the target access point is an access point connected with the terminal equipment when the terminal equipment is communicated with the Bluetooth headset;
the terminal equipment acquires a first area label corresponding to the target network identifier according to the plurality of first target corresponding relations; the first zone tag is of the first type or the first zone tag is of a second type; the second type is used for representing that the probability of loss of the terminal equipment is less than or equal to the probability threshold;
the terminal equipment acquires the area where the terminal equipment is located according to a target positioning method; the target positioning method comprises at least one of Beidou positioning, global positioning system positioning, global satellite navigation system positioning, Galileo satellite positioning, quasi-zenith satellite system positioning, position-based service base station positioning, auxiliary global satellite positioning system positioning, acceleration sensor auxiliary positioning, gyroscope auxiliary positioning, Wi-Fi real-time positioning, Bluetooth positioning and camera auxiliary positioning;
the terminal equipment acquires a second area label corresponding to an area where the terminal equipment is located according to a second target corresponding relation, wherein the second target corresponding relation comprises a corresponding relation between the area and the area label; the second zone label is the first type or the second zone label is the second type;
under the condition that the first area label is the same as the second area label, the terminal equipment determines that the area label is the first area label;
and under the condition that the first area label is different from the second area label, the terminal equipment determines that the area label is of the first type.
7. The method of adjusting according to any one of claims 1-6, characterized in that the method further comprises:
the terminal equipment sends a first indication message to the Bluetooth headset; the first indication message is used for indicating the Bluetooth headset to reduce the power of a second Bluetooth module; the second Bluetooth module is a Bluetooth module in the Bluetooth headset;
the Bluetooth headset reduces the power of the second Bluetooth module; and the power of the second Bluetooth module after being reduced is greater than a second power threshold value.
8. The method according to any one of claims 1 to 6, wherein the terminal device powers down the first Bluetooth module, and comprises:
and the terminal equipment reduces the power of the first Bluetooth module to the first power threshold value.
9. The method according to any one of claims 1 to 6, wherein the terminal device powers down the first Bluetooth module, and comprises:
the terminal equipment reduces the power of the first Bluetooth module by a third preset threshold value; the reduced power of the first Bluetooth module is greater than or equal to the first power threshold.
10. The method of adjusting according to any one of claims 1-6, characterized in that the method further comprises:
under the condition that the area tag is of a second type, the terminal equipment increases the power of the first Bluetooth module; the second type is used for representing that the probability of losing the terminal equipment is less than or equal to the probability threshold value; the power of the first Bluetooth module after being adjusted is smaller than or equal to a third power threshold value.
11. The method of claim 10, wherein the step of the terminal device increasing the power of the first bluetooth module comprises:
and the terminal equipment increases the power of the first Bluetooth module by a fourth preset threshold value, and the increased power of the first Bluetooth module is smaller than or equal to the third power threshold value.
12. The method of adjusting of claim 11, further comprising:
the terminal equipment sends a second indication message to the Bluetooth headset; the second indication message is used for indicating the Bluetooth headset to increase the power of a second Bluetooth module; the second Bluetooth module is a Bluetooth module in the Bluetooth headset;
the Bluetooth headset increases the power of the second Bluetooth module; and the power of the second Bluetooth module after being adjusted to be larger than a fourth power threshold value.
13. A terminal device, comprising:
the Bluetooth module is used for establishing communication connection with the Bluetooth headset based on a Bluetooth communication protocol;
the processing module is used for acquiring an area label of an area where the terminal equipment is located by the terminal equipment in the process of communication between the terminal equipment and the Bluetooth headset; the area label is used for representing the probability of loss of the terminal equipment; under the condition that the area tag is of a first type, the terminal equipment reduces the power of the Bluetooth module; the first type is used for representing that the probability of losing the terminal equipment is greater than a probability threshold value; the power of the Bluetooth module after being reduced is larger than a first power threshold value.
14. The terminal device of claim 13,
the processing module is further configured to: recording a plurality of connection information when a user uses the terminal equipment; the connection information comprises a network identification; the network identification is the identification of a wireless local area network provided by an access point connected when a user uses the terminal equipment; obtaining a plurality of first target corresponding relations according to the plurality of connection information; the first target corresponding relation comprises a corresponding relation between an identifier of a wireless local area network and the area label;
the processing module is specifically configured to: acquiring a target network identifier; the target network identification is an identification of a wireless local area network provided by a target access point; the target access point is an access point connected with the terminal equipment when the terminal equipment is communicated with the Bluetooth headset; and obtaining the area label in the plurality of first target corresponding relations according to the target network identifier.
15. The terminal device of claim 14, wherein the processing module is specifically configured to:
determining that a first network identifier exists in a preset network identifier library, and obtaining a corresponding relation between the first network identifier and the first type; the first network identifier is any one of the plurality of connection information.
16. The terminal device of claim 15, wherein the connection information further includes a connection time; the connection time comprises the starting time and the ending time of the terminal equipment for connecting the access point; the processing module is specifically configured to:
under the condition that the first network identification does not exist in the network identification library, acquiring connection time recorded in target connection information; the target connection information is connection information of the plurality of connection information including the first network identifier; acquiring connection duration corresponding to the target connection information according to the connection time recorded in the target connection information; obtaining a corresponding relation between the first network identifier and a second type under the condition that the connection duration is greater than a first preset threshold; the second type is used for representing that the probability of loss of the terminal equipment is less than or equal to the probability threshold;
and/or the presence of a gas in the gas,
the processing module is specifically configured to: acquiring the number of the target connection information; and obtaining the corresponding relation between the first network identifier and the second type under the condition that the number of the target connection information is larger than a second preset threshold value.
17. The terminal device of claim 13, wherein the processing module is specifically configured to:
acquiring the area where the terminal equipment is located according to a target positioning method; the target positioning method comprises at least one of Beidou positioning, global positioning system positioning, global satellite navigation system positioning, Galileo satellite positioning, quasi-zenith satellite system positioning, position-based service base station positioning, auxiliary global satellite positioning system positioning, acceleration sensor auxiliary positioning, gyroscope auxiliary positioning, Wi-Fi real-time positioning, Bluetooth positioning and camera auxiliary positioning;
and acquiring the area label corresponding to the area where the terminal equipment is located according to a second target corresponding relation, wherein the second target corresponding relation comprises the corresponding relation between the area and the area label.
18. The terminal device of claim 13,
the processing module is further configured to: recording a plurality of connection information when a user uses the terminal equipment; the connection information comprises a network identification; the network identification is the identification of a wireless local area network provided by an access point connected when a user uses the terminal equipment; obtaining a plurality of first target corresponding relations according to the plurality of connection information; the first target corresponding relation comprises a corresponding relation between an identifier of a wireless local area network and the area label;
the processing module is specifically configured to: acquiring a target network identifier; the target network identification is an identification of a wireless local area network provided by a target access point; the target access point is an access point connected with the terminal equipment when the terminal equipment is communicated with the Bluetooth headset; acquiring a first area label corresponding to the target network identifier according to the plurality of first target corresponding relations; the first zone tag is of the first type or the first zone tag is of a second type; the second type is used for representing that the probability of loss of the terminal equipment is less than or equal to the probability threshold;
acquiring the area where the terminal equipment is located according to a target positioning method; the target positioning method comprises at least one of Beidou positioning, global positioning system positioning, global satellite navigation system positioning, Galileo satellite positioning, quasi-zenith satellite system positioning, position-based service base station positioning, auxiliary global satellite positioning system positioning, acceleration sensor auxiliary positioning, gyroscope auxiliary positioning, Wi-Fi real-time positioning, Bluetooth positioning and camera auxiliary positioning; acquiring a second area label corresponding to an area where the terminal equipment is located according to a second target corresponding relation, wherein the second target corresponding relation comprises a corresponding relation between the area and the area label; the second zone label is the first type or the second zone label is the second type;
determining that the area tag is the first area tag if the first area tag is the same as the second area tag;
determining that the zone tag is of the first type if the first zone tag is different from the second zone tag.
19. The terminal device of any of claims 14-18, wherein the bluetooth module is further configured to:
sending a first indication message to the Bluetooth headset; the first indication message is used for indicating the Bluetooth headset to reduce the power of a Bluetooth module in the Bluetooth headset.
20. The terminal device according to any one of claims 14 to 18, wherein the processing module is specifically configured to:
and reducing the power of the Bluetooth module to the first power threshold value.
21. The terminal device according to any one of claims 14 to 18, wherein the processing module is specifically configured to:
adjusting the power of the Bluetooth module to be lower than a third preset threshold value; the power of the Bluetooth module after being turned down is larger than or equal to the first power threshold value.
22. The terminal device of any one of claims 14-18, wherein the processing module is further configured to:
increasing the power of the Bluetooth module under the condition that the area tag is of a second type; the second type is used for representing that the probability of loss of the terminal equipment is less than or equal to the probability threshold; and the power of the Bluetooth module after being increased is less than or equal to a third power threshold.
23. The terminal device of claim 22, wherein the processing module is specifically configured to:
and increasing the power of the Bluetooth module by a fourth preset threshold, wherein the increased power of the Bluetooth module is smaller than or equal to the third power threshold.
24. The terminal device of claim 23, wherein the bluetooth module is further configured to:
sending a second indication message to the Bluetooth headset; the second indication message is used for indicating the Bluetooth headset to increase the power of a Bluetooth module in the Bluetooth headset.
25. A bluetooth device, characterized in that the bluetooth device comprises a processor and a memory, the processor being configured to invoke a computer program in the memory to perform the steps performed by the terminal device in the adaptation method according to any of claims 1-12 or to perform the steps performed by the bluetooth headset in the adaptation method according to any of claims 1-12.
26. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, carries out the steps performed by the terminal device in the adaptation method of any of claims 1-12, or the steps performed by the bluetooth headset in the adaptation method of any of claims 1-12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110910663.7A CN113810888B (en) | 2021-08-09 | 2021-08-09 | Method and device for adjusting power of Bluetooth equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110910663.7A CN113810888B (en) | 2021-08-09 | 2021-08-09 | Method and device for adjusting power of Bluetooth equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113810888A CN113810888A (en) | 2021-12-17 |
CN113810888B true CN113810888B (en) | 2022-08-30 |
Family
ID=78942906
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110910663.7A Active CN113810888B (en) | 2021-08-09 | 2021-08-09 | Method and device for adjusting power of Bluetooth equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113810888B (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014121578A1 (en) * | 2013-02-05 | 2014-08-14 | Li Ming | Anti-lost device for implementing anti-lost function of mobile device |
US9602919B2 (en) * | 2013-05-02 | 2017-03-21 | Apple Inc. | Electronic device with wireless power control system |
US10096311B1 (en) * | 2017-09-12 | 2018-10-09 | Plantronics, Inc. | Intelligent soundscape adaptation utilizing mobile devices |
CN114205900B (en) * | 2019-03-26 | 2024-09-17 | 华为技术有限公司 | Method for adjusting Bluetooth output power and terminal equipment |
CN112118357B (en) * | 2020-09-21 | 2021-08-20 | 珠海格力电器股份有限公司 | Intelligent terminal management method and device, storage medium and electronic device |
-
2021
- 2021-08-09 CN CN202110910663.7A patent/CN113810888B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113810888A (en) | 2021-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190281437A1 (en) | Broadcasting a Device State in a Wireless Communication Network | |
CN113873444B (en) | Positioning method and electronic equipment | |
CN114499587B (en) | Audio synchronization communication method, system, wireless earphone, terminal and storage medium | |
CN112839303B (en) | Method and related device for device reconnection | |
CN110582109A (en) | Wireless Local Area Network (WLAN) network access method and device | |
US11659488B2 (en) | Information processing device, information processing method, and program | |
CN113986034A (en) | Electronic equipment and display screen control method thereof | |
EP3843459A1 (en) | Communication system switching method and terminal device | |
EP4138434B1 (en) | Method for detecting bluetooth positioning device, device, and storage medium | |
US20180007633A1 (en) | Information processing device, communication system, information processing method, and program | |
CN112469014A (en) | Method and electronic equipment for configuring Bluetooth connection parameters | |
EP4398614A1 (en) | Data processing method and system, electronic device, bluetooth peripheral and storage medium | |
CN113810888B (en) | Method and device for adjusting power of Bluetooth equipment and storage medium | |
EP4404625A1 (en) | Cell handover method, terminal device, and readable storage medium | |
CN114390502B (en) | Bluetooth communication method, device and storage medium | |
US20240053460A1 (en) | Device location determining method, apparatus, and system | |
CN113825146B (en) | Beam determination method and device | |
CN115412387A (en) | Audio playing method and system and electronic equipment | |
US20180242240A1 (en) | Information processing device, wireless communication device, information processing method, and program | |
CN112788713A (en) | Network connection method, terminal and computer storage medium | |
CN114696961B (en) | Multimedia data transmission method and equipment | |
CN114095607B (en) | Communication method, terminal equipment and computer storage medium | |
US20240314388A1 (en) | Combined display method, mobile device, and electronic device | |
WO2023165347A1 (en) | Method and apparatus for channel switching | |
CN113660732A (en) | Earphone communication method and system and earphone |
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 |