CN113810888A - 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 PDF

Info

Publication number
CN113810888A
CN113810888A CN202110910663.7A CN202110910663A CN113810888A CN 113810888 A CN113810888 A CN 113810888A CN 202110910663 A CN202110910663 A CN 202110910663A CN 113810888 A CN113810888 A CN 113810888A
Authority
CN
China
Prior art keywords
terminal equipment
area
target
bluetooth
power
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.)
Granted
Application number
CN202110910663.7A
Other languages
Chinese (zh)
Other versions
CN113810888B (en
Inventor
董洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110910663.7A priority Critical patent/CN113810888B/en
Publication of CN113810888A publication Critical patent/CN113810888A/en
Application granted granted Critical
Publication of CN113810888B publication Critical patent/CN113810888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/72Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/28TPC 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/283Power depending on the position of the mobile
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (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

Method and device for adjusting power of Bluetooth equipment and storage medium
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 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 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 method comprises the steps that under the condition that terminal equipment determines that a first network identifier exists in a preset network identifier library, the terminal equipment obtains the corresponding relation between the first network identifier and a first type; 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 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; 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 area label is of the first type or the second area 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 the 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 reduced power of the first Bluetooth module is greater 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 the 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 the 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 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 the computer is caused to execute 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.
In a fourth aspect, 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 the method executed by a 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 the computer is caused to execute the method executed by a 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.
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 an instruction to perform a method performed by a 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 a method performed by a 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. 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 in 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 application.
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 concepts related 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 processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more ics for controlling the execution of programs in accordance with the present invention.
The communication link 202 may include at least one path, such as a data bus, and/or a control bus, for communicating 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 media 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.
Processor 301 may include one or more processing units, such as: the processor 301 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
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 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 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 handset 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, if so, the step four is executed, and if not, the step two 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.
For example, when the location information of the terminal device obtained by the terminal device according to the target location 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 for a short time, 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 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.
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 of the application, S404 to S406 are optional steps, and after S404 to S406 are performed, the power of the bluetooth module of the bluetooth headset is also turned down, and the distance that the bluetooth module can support transmitting or receiving 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 the 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 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 handset 10 from the bluetooth headset 20 in the case where there is an obstacle between the handset 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 of the terminal device in a specific area is less than or equal to a 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. The power of the second Bluetooth module after being adjusted is smaller 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 can be understood that, in this embodiment of the application, S702 to S704 are optional steps, and after S702 to S704 are performed, the power of the bluetooth module of the bluetooth headset is also increased, which can support the capability of 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 hardware or a combination of hardware and computer software implementing 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 configured 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 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 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 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 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; 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 the power adjustment 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 (including two) processors 1201, communication lines 1202, and a communication interface 1203, and optionally chip 120 also includes a 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 medium may be any target medium 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 (28)

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 identifier does not exist in the network identifier library, the terminal equipment acquires the connection time recorded in the target connection information; the target connection information is connection information of the plurality 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 reduced power of the second Bluetooth module is greater than a second power threshold value.
8. The method according to any one of claims 1 to 7, 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 7, 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 to 9, 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 loss of the terminal equipment is less than or equal to the probability threshold; 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 powering up the first bluetooth module comprises:
and the terminal equipment increases the power of the first Bluetooth module to the third power threshold value.
12. The method of claim 10, wherein the step of the terminal device powering up 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.
13. The method of adjusting according to any one of claims 10-12, characterized in that the method further comprises:
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.
14. 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; the terminal equipment reduces the power of the Bluetooth module under the condition that the area tag is of a first type; 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.
15. The terminal device of claim 14,
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.
16. The terminal device of claim 15, 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.
17. The terminal device of claim 16, 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.
18. The terminal device of claim 14, 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.
19. The terminal device of claim 14,
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.
20. The terminal device of any of claims 14-19, 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.
21. The terminal device according to any one of claims 14 to 20, wherein the processing module is specifically configured to:
and reducing the power of the Bluetooth module to the first power threshold value.
22. The terminal device according to any one of claims 14 to 20, wherein the processing module is specifically configured to:
reducing the power of the Bluetooth module by a third preset threshold value; the power of the Bluetooth module after being reduced is larger than or equal to the first power threshold value.
23. The terminal device of any one of claims 14-22, 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 adjusted to be larger is smaller than or equal to a third power threshold value.
24. The terminal device of claim 23, wherein the processing module is specifically configured to:
and increasing the power of the Bluetooth module to the third power threshold value.
25. The terminal device of claim 23, 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.
26. The terminal device of any one of claims 23-25, 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.
27. 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-13 or to perform the steps performed by the bluetooth headset in the adaptation method according to any of claims 1-13.
28. A computer-readable storage medium, characterized in that it stores computer instructions which, when run on a terminal device, cause the terminal device to perform the steps performed by the terminal device in the adaptation method according to any one of claims 1-13, or cause the terminal device to perform the steps performed by the bluetooth headset in the adaptation method according to any one of claims 1-13.
CN202110910663.7A 2021-08-09 2021-08-09 Method and device for adjusting power of Bluetooth equipment and storage medium Active CN113810888B (en)

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 true CN113810888A (en) 2021-12-17
CN113810888B 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)

Citations (5)

* Cited by examiner, † Cited by third party
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
CN105191152A (en) * 2013-05-02 2015-12-23 苹果公司 Electronic device with acoustic transmit power control system
US10096311B1 (en) * 2017-09-12 2018-10-09 Plantronics, Inc. Intelligent soundscape adaptation utilizing mobile devices
CN111757451A (en) * 2019-03-26 2020-10-09 华为技术有限公司 Method for adjusting Bluetooth output power and terminal equipment
CN112118357A (en) * 2020-09-21 2020-12-22 珠海格力电器股份有限公司 Intelligent terminal management method and device, storage medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
CN105191152A (en) * 2013-05-02 2015-12-23 苹果公司 Electronic device with acoustic transmit power control system
US10096311B1 (en) * 2017-09-12 2018-10-09 Plantronics, Inc. Intelligent soundscape adaptation utilizing mobile devices
CN111757451A (en) * 2019-03-26 2020-10-09 华为技术有限公司 Method for adjusting Bluetooth output power and terminal equipment
CN112118357A (en) * 2020-09-21 2020-12-22 珠海格力电器股份有限公司 Intelligent terminal management method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN113810888B (en) 2022-08-30

Similar Documents

Publication Publication Date Title
US20190281437A1 (en) Broadcasting a Device State in a Wireless Communication Network
CN110989860B (en) Electronic equipment and display screen control method thereof
CN112839303B (en) Method and related device for device reconnection
CN113873444B (en) Positioning method and electronic equipment
CN114499587B (en) Audio synchronization communication method, system, wireless earphone, terminal and storage medium
US11659488B2 (en) Information processing device, information processing method, and program
EP3843459A1 (en) Communication system switching method and terminal device
EP4138434A1 (en) Method for detecting bluetooth positioning device, device, and storage medium
US10397874B2 (en) Information processing device, communication system, information processing method, and program
KR20110103625A (en) Dual standby portable terminal and method for connecting audio path
CN112469014A (en) Method and electronic equipment for configuring Bluetooth connection parameters
WO2024103888A1 (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
CN114390502B (en) Bluetooth communication method, device and storage medium
US20240053460A1 (en) Device location determining method, apparatus, and system
JP2005538653A (en) Cordless wireless telephone for subscriber line
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
CN113660732B (en) Earphone communication method and system and earphone
WO2023165347A1 (en) Method and apparatus for channel switching
US20240223995A1 (en) Device Tracking Detection Method and Electronic Device
CN115412387A (en) Audio playing method and system and electronic equipment
CN117412271A (en) Bluetooth connection method, audio device and computer storage medium

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