[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112437421A - Bluetooth control method, device, storage medium and mobile terminal - Google Patents

Bluetooth control method, device, storage medium and mobile terminal Download PDF

Info

Publication number
CN112437421A
CN112437421A CN202011323243.0A CN202011323243A CN112437421A CN 112437421 A CN112437421 A CN 112437421A CN 202011323243 A CN202011323243 A CN 202011323243A CN 112437421 A CN112437421 A CN 112437421A
Authority
CN
China
Prior art keywords
bluetooth
bluetooth module
power supply
data
mobile terminal
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
CN202011323243.0A
Other languages
Chinese (zh)
Other versions
CN112437421B (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.)
Shenzhen Zongguan Infinite Technology Co ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202011323243.0A priority Critical patent/CN112437421B/en
Publication of CN112437421A publication Critical patent/CN112437421A/en
Application granted granted Critical
Publication of CN112437421B publication Critical patent/CN112437421B/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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/028Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
    • 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)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a Bluetooth control method, a Bluetooth control device, a storage medium and a mobile terminal, wherein the control method comprises the following steps: after a Bluetooth module in the mobile terminal establishes communication connection with a Bluetooth earphone, detecting whether data to be played needs to be transmitted to the Bluetooth module within a preset time; if not, stopping supplying power to the Bluetooth module; when the Bluetooth module is in a power supply stop state and detects that data to be played needs to be transmitted to the Bluetooth module, power supply to the Bluetooth module is recovered, the data to be played is sent to the Bluetooth headset through the Bluetooth module after power supply is achieved, power can be flexibly supplied to the Bluetooth module according to the actual working state of the Bluetooth module, redundant electric quantity consumed when the Bluetooth module is started but in an idle state is avoided, and the mobile terminal has longer endurance time.

Description

Bluetooth control method, device, storage medium and mobile terminal
Technical Field
The present application relates to the field of bluetooth technologies, and in particular, to a bluetooth control method, apparatus, storage medium, and mobile terminal.
Background
Bluetooth is a standard wireless communication technology, and can realize short-distance data exchange among fixed equipment, mobile equipment and a building personal area network. Currently, bluetooth is a standard technology on a mobile terminal, and is one of the most common functions of the mobile terminal, and a user can connect other mobile terminals by starting the bluetooth of the mobile terminal, so that data exchange is performed between the mobile terminal and the mobile terminal, which brings convenience to the user.
The most common Bluetooth function is to connect the mobile terminal with a Bluetooth headset through Bluetooth, so that the headset is connected with the mobile terminal in a wireless manner, the scene that a user uses the headset is enlarged, and the mobile terminal is particularly suitable for the user to use the headset during movement and driving. However, when the user uses the bluetooth headset to wirelessly connect with the mobile terminal for communication, for example, the mobile terminal sends data to be played to the headset through bluetooth for playing, because the playing speed is usually slower than the data communication speed, the bluetooth of the mobile terminal is in an open but idle state after the data to be played is transmitted, which additionally consumes the electric quantity of the mobile terminal.
Disclosure of Invention
The application provides a Bluetooth control method, a Bluetooth control device, a storage medium and a mobile terminal, which effectively solve the problem of extra power consumption caused by the fact that the Bluetooth of the mobile terminal is in an open state but in an idle state when the Bluetooth of the mobile terminal is used in cooperation with a Bluetooth headset, and therefore the mobile terminal has longer endurance time.
The embodiment of the application provides a Bluetooth control method, which is applied to a mobile terminal and comprises the following steps:
after a Bluetooth module in the mobile terminal establishes communication connection with a Bluetooth headset, detecting whether data to be played needs to be transmitted to the Bluetooth module within a preset time;
if not, stopping supplying power to the Bluetooth module;
when the Bluetooth module is in a power supply stopping state and detects that data to be played needs to be transmitted to the Bluetooth module, power supply to the Bluetooth module is recovered, so that the data to be played is sent to the Bluetooth headset through the Bluetooth module after power supply.
This application still provides a bluetooth controlling means, is applied to mobile terminal, includes:
the mobile terminal comprises a detection unit, a processing unit and a display unit, wherein the detection unit is used for detecting whether to transmit data to be played to a Bluetooth module within a preset time length after the Bluetooth module in the mobile terminal establishes communication connection with a Bluetooth headset;
the stopping unit is used for stopping supplying power to the Bluetooth module if the Bluetooth module is not powered on;
and the recovery unit is used for recovering power supply to the Bluetooth module when the Bluetooth module is in a power supply stop state and detects that the data to be played needs to be transmitted to the Bluetooth module, so that the data to be played is sent to the Bluetooth headset by the Bluetooth module after power supply.
Wherein, the detecting element specifically includes:
the first detection subunit is used for detecting whether to transmit data to be played to the Bluetooth module or not after the Bluetooth module in the mobile terminal establishes communication connection with the Bluetooth headset;
and the second detection subunit is used for detecting whether the duration is within the preset duration or not when the data to be played does not need to be transmitted to the Bluetooth module.
Wherein the stopping unit is specifically configured to:
and disconnecting a controllable switch between the Bluetooth module and a power supply in the mobile terminal to stop supplying power to the Bluetooth module.
Wherein, the recovery unit is specifically configured to include:
and closing the controllable switch between the Bluetooth module and a power supply in the mobile terminal to restore power supply to the Bluetooth module.
In the bluetooth control apparatus provided by the present application, further comprising a control unit configured to:
acquiring a Bluetooth starting instruction before the detection unit detects whether data to be played needs to be transmitted to the Bluetooth module within a preset time;
supplying power to the Bluetooth module according to the Bluetooth starting instruction;
and controlling the power-supplied Bluetooth module to establish communication connection with the Bluetooth headset.
In the bluetooth control apparatus provided by the present application, the control unit is further configured to:
initializing the Bluetooth module after power supply before the control unit controls the Bluetooth module after power supply to establish communication connection with the Bluetooth headset.
In the bluetooth control apparatus provided in the present application, further comprising a buffer unit, configured to:
caching the data to be played in a preset cache region;
and after the power supply to the Bluetooth module is recovered, acquiring the data to be played from the preset cache region through the Bluetooth module after power supply, and sending the data to be played to the Bluetooth headset.
The embodiment of the application further provides a mobile terminal, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in any one of the bluetooth control methods.
The present application further provides a computer readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform any of the above-described bluetooth control methods.
The application provides a bluetooth control method, device, storage medium and mobile terminal, work as after bluetooth module and bluetooth headset establish communication connection among the mobile terminal, through detecting whether in the predetermined duration need to the bluetooth module transmission treat the broadcast data, later, if not, then stop to the bluetooth module power supply, later, work as bluetooth module is in the power supply stop state, and detects need to when the broadcast data is treated in the bluetooth module transmission, resume to the bluetooth module power supply to after through the power supply bluetooth module will treat the broadcast data send to the bluetooth headset, thereby can supply power to bluetooth module according to the actual operating condition of bluetooth module is nimble, avoid the bluetooth to be in opening but unnecessary electric quantity of consumption under the idle state, make mobile terminal possess longer duration.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a bluetooth control method according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a bluetooth control scenario provided in an embodiment of the present application.
Fig. 3 is another flowchart of the bluetooth control method according to the embodiment of the present application.
Fig. 4 is a schematic structural diagram of a mobile terminal in a bluetooth control method according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a bluetooth control apparatus according to an embodiment of the present application.
Fig. 6 is another schematic structural diagram of a bluetooth control apparatus according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a bluetooth control apparatus according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Fig. 9 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a Bluetooth control method, a Bluetooth control device, a storage medium and a mobile terminal.
As shown in fig. 1 and fig. 2, fig. 1 is a schematic flowchart of a bluetooth control method provided in an embodiment of the present application, where the bluetooth control method is applied to a mobile terminal, and the mobile terminal may be a smart phone, an iPad, and other devices having a bluetooth function, and a specific flow may be as follows:
s101, after the Bluetooth module in the mobile terminal is in communication connection with the Bluetooth headset, whether data to be played needs to be transmitted to the Bluetooth module within a preset time is detected, if not, the following step S102 is executed, and if yes, power is continuously supplied to the Bluetooth module.
The bluetooth headset can be a real wireless headset, a wired bluetooth headset and other playing devices with bluetooth functions. The bluetooth module and the bluetooth headset in the mobile terminal generally establish communication connection in a searching and pairing manner, as shown in fig. 2, the specific connection manner is as follows: the mobile terminal starts a Bluetooth function, searches surrounding Bluetooth devices as a main device, displays the search result on a display interface, and a user selects a device name corresponding to the Bluetooth headset as a slave device from the display interface, so that the Bluetooth device and the slave device can be paired to establish communication connection.
After the communication connection between the Bluetooth module and the Bluetooth earphone in the mobile terminal is completed, whether data to be played needs to be transmitted to the Bluetooth module within a preset time can be detected.
Wherein, the "detecting whether the data to be played needs to be transmitted to the bluetooth module within the preset time" may specifically include:
detecting whether data to be played needs to be transmitted to the Bluetooth module;
and when the data to be played does not need to be transmitted to the Bluetooth module, detecting whether the duration is within the preset duration.
The preset time period may be set manually, for example, 5 seconds is preferred.
The condition that data to be played needs to be transmitted to the bluetooth module is generated by triggering when the mobile terminal plays a first song or plays a next song after the last song is played, and the user can control the mobile terminal to play the first song or switch songs manually or by voice and the like.
As shown in fig. 3, before the step of detecting whether the data to be played needs to be transmitted to the bluetooth module within the preset time period, the bluetooth control method further includes:
s104, acquiring a Bluetooth starting instruction;
s105, supplying power to the Bluetooth module according to the Bluetooth starting instruction;
and S106, controlling the Bluetooth module after power supply to establish communication connection with the Bluetooth headset.
When the user starts the Bluetooth function of the mobile terminal in a manual click mode or a voice wake-up mode, the mobile terminal obtains a corresponding Bluetooth starting instruction. When the mobile terminal receives the bluetooth opening instruction, the power supply in the mobile terminal supplies power to the bluetooth module, as shown in fig. 4, the specific mode is that the main controller in the mobile terminal controls the controllable switch between the power supply and the bluetooth module to be closed, that is, the bluetooth module is supplied with power. The function of the controllable switch is to enable the electric connection between the Bluetooth module and the power supply in the mobile terminal to be flexibly connected or disconnected.
As shown in fig. 4, wherein the main controller further comprises: the data communication pin DAT1, the clock command pin CLK1, the voltage output pin VDD1, and the ground pin GND. The bluetooth module includes a data receiving pin DAT2, a clock command pin CLK2, a voltage input pin VDD2, and a ground pin GND. Further, except that the voltage output pin VDD1 of the host controller is connected in series with a controllable switch and then connected with the voltage input pin VDD2 of the bluetooth module, the data communication pin DAT1, the clock command pin CLK1, and the ground pin GND of the host controller are directly connected with the data receiving pin DAT2, the clock command pin CLK2, and the ground pin GND of the bluetooth module, respectively. When the controllable switch is closed, the power supply in the mobile terminal can supply power to the Bluetooth module through the main controller, the main controller can carry out data transmission with the Bluetooth module through the data communication pin, and a clock circuit is established between the clock instruction pin and the Bluetooth module.
After that, the mobile terminal needs to initialize the bluetooth module, and when the bluetooth module is in a powered state and is initialized, the mobile terminal can control the bluetooth module to search and scan the surrounding bluetooth devices, and can establish communication connection with the corresponding bluetooth headset in a pairing manner.
That is, before the bluetooth module and the bluetooth headset establish a communication connection after the controlling power supply, the bluetooth controlling method further includes:
and initializing the Bluetooth module after power supply.
Specifically, the bluetooth module initialization refers to initializing a bluetooth Serial Port Protocol (SPP) (serial Port profile) specification library, and if the SPP library is not initialized, a scan instruction or a connection instruction is sent, and the bluetooth module returns an instruction error indicating that the SPP library is not initialized and cannot work normally. Typically, the SPP library is reinitialized each time the bluetooth module is powered off and then on.
And S102, stopping supplying power to the Bluetooth module.
For example, when the preset time is preferably 5 seconds, if it is detected from 0 th second to 5 th second that the data to be played does not need to be transmitted to the bluetooth module, that is, the data to be played does not need to be transmitted within 5 seconds, the step of stopping power supply to the bluetooth module is performed. When the data to be played needs to be transmitted to the Bluetooth module in the 4 th second, namely the data to be played needs to be transmitted in the 5 th second, power is continuously supplied to the Bluetooth module.
In fig. 3, the specific manner of "stopping power supply to the bluetooth module" is as follows: and disconnecting a controllable switch between a power supply in the mobile terminal and the Bluetooth module.
S103, when the Bluetooth module is in a power supply stop state and the situation that data to be played needs to be transmitted to the Bluetooth module is detected, power supply to the Bluetooth module is recovered, so that the data to be played is sent to the Bluetooth headset through the Bluetooth module after power supply.
Wherein, should "when this bluetooth module is in the power supply stop state", specifically be: when the controllable switch between the power supply of the mobile terminal and the Bluetooth module is in an off state.
In fig. 3, the specific manner of "resuming power supply to the bluetooth module" is as follows:
and closing the controllable switch which is in the disconnection state between the power supply and the Bluetooth module in the mobile terminal.
Wherein before the power supply to the bluetooth module is resumed, the bluetooth control method further comprises: caching the data to be played in a preset cache region;
after the power supply to the bluetooth module is resumed, the method further comprises the following steps: and acquiring the data to be played from the preset buffer area through the Bluetooth module after power supply, and sending the data to be played to the Bluetooth headset.
Specifically, the working principle of the buffer area is that when the main controller in the mobile terminal wants to read the data to be played, the main controller generally searches the buffer area of the main controller; if the data block is not found, the data block with the data to be played is read from the memory with the slower reading speed and processed, and the data block with the data to be played is called into the cache region, so that the data to be played can be read from the cache in the future, and the memory does not need to be called. The cache does not need a memory refresh circuit to retain the stored data, so that the cache has better performance than a memory, and the speed of the main controller for acquiring the data to be played is greatly increased due to the existence of the cache region.
Specifically, the main controller obtains data to be played from the buffer area in a wired transmission mode;
the main controller controls the Bluetooth module to send the data to be played to the Bluetooth headset in a wireless transmission mode.
Therefore, the bluetooth control method provided by the application is applied to a mobile terminal, after a bluetooth module in the mobile terminal is in communication connection with a bluetooth headset, whether data to be played needs to be transmitted to the bluetooth module within a preset time is detected, then, if not, power supply to the bluetooth module is stopped, then, when the bluetooth module is in a power supply stop state and the data to be played needs to be transmitted to the bluetooth module is detected, power supply to the bluetooth module is resumed, the data to be played is transmitted to the bluetooth headset through the bluetooth module after power supply, the bluetooth module is flexibly powered according to the actual working state of the bluetooth module, the situation that the bluetooth consumes redundant electric quantity when the bluetooth is started but is in an idle state is avoided, and the mobile terminal has longer endurance time.
According to the method described in the foregoing embodiment, this embodiment will be further described from the perspective of a bluetooth control apparatus, which may be specifically implemented as an independent entity, or may be integrated in a mobile terminal, where the mobile terminal may be a smartphone, an iPad, or other device with a camera.
Referring to fig. 5, a bluetooth control apparatus provided in this embodiment is specifically described, which is applied to a mobile terminal, and the bluetooth control apparatus may include: a detection unit 10, a stop unit 20 and a recovery unit 30, wherein:
(1) detection unit 10
The mobile terminal comprises a detection unit 10, a processing unit and a display unit, wherein the detection unit is used for detecting whether data to be played needs to be transmitted to a Bluetooth module within a preset time period after the Bluetooth module in the mobile terminal establishes communication connection with a Bluetooth headset;
the bluetooth headset can be a real wireless headset, a wired bluetooth headset and other playing devices with bluetooth functions. The bluetooth module and the bluetooth headset in the mobile terminal generally establish communication connection in a searching and pairing manner, and the specific manner is as follows: the mobile terminal starts a Bluetooth function, the mobile terminal serves as a main device to search surrounding Bluetooth devices, a user selects a device name corresponding to the Bluetooth headset serving as a slave device from a display interface of the mobile terminal, and the mobile terminal and the slave device can be paired to establish communication connection.
After the mobile terminal Bluetooth module and the Bluetooth headset complete communication connection, whether data to be played needs to be transmitted to the Bluetooth module within a preset time can be detected.
For example, referring to fig. 6, the detecting unit 10 specifically includes:
first detection subunit 11: the Bluetooth module is used for detecting whether data to be played needs to be transmitted to the Bluetooth module;
second detection subunit 12: and the device is used for detecting whether the duration is within the preset duration or not when the data to be played do not need to be transmitted to the Bluetooth module.
The preset time period may be set manually, for example, 5 seconds is preferred.
Further, if the second detecting subunit 12 detects that the duration time does not exceed 5 seconds after the first detecting subunit 11 detects that the data to be played does not need to be transmitted to the bluetooth module, it is determined that the data to be played needs to be transmitted to the bluetooth module.
For example, referring to fig. 7, the bluetooth control apparatus further includes a control unit 40 configured to:
acquiring a Bluetooth starting instruction before detecting whether data to be played needs to be transmitted to the Bluetooth module within a preset time;
supplying power to the Bluetooth module according to the Bluetooth starting instruction;
and controlling the Bluetooth module after power supply to establish communication connection with the Bluetooth headset.
When the user starts the Bluetooth function of the mobile terminal in a manual click mode or a voice wake-up mode, the mobile terminal obtains a corresponding Bluetooth starting instruction. When the mobile terminal receives the Bluetooth starting instruction, the power supply in the mobile terminal supplies power to the Bluetooth module, and the specific mode is that the mobile terminal closes a controllable switch between the power supply in the mobile terminal and the Bluetooth module, namely, the power supply for the Bluetooth module is realized. After that, the mobile terminal initializes the bluetooth module, and when the bluetooth module is in a powered state and initialized, the control unit 40 can control the bluetooth module to search and scan the surrounding bluetooth devices, and can only pair with the corresponding bluetooth headset to establish a communication connection.
In the bluetooth control apparatus provided in the present application, the control unit 40 is further configured to:
before the Bluetooth module which controls power supply establishes communication connection with the Bluetooth headset, the Bluetooth module which controls power supply is initialized.
(2) Stop unit 20
A stopping unit 20, configured to stop power supply to the bluetooth module if the bluetooth module is not powered on;
wherein, the "if not" includes: if the data to be played does not need to be transmitted to the Bluetooth module within the preset time.
For example, when the preset time is preferably 5 seconds, if the detection unit 10 detects that the data to be played does not need to be transmitted to the bluetooth module from 0 th to 5 th seconds, that is, the data to be played does not need to be transmitted within 5 seconds, the step of stopping power supply to the bluetooth module is performed, and the stopping unit 20 is started.
When the detecting unit 10 detects that power needs to be supplied to the bluetooth module at the 4 th second, that is, the data to be played needs to be transmitted within 5 seconds, the stopping unit 20 is not activated.
(3) Recovery unit 30
And the recovery unit 30 is configured to recover power supply to the bluetooth module when the bluetooth module is in a power supply stop state and detects that data to be played needs to be transmitted to the bluetooth module, so that the data to be played is sent to the bluetooth headset through the powered bluetooth module.
For example, when the stopping unit 20 is started and the determining module determines that the data to be played needs to be transmitted to the bluetooth module transmission module, the recovering unit 30 is started to recover power supply to the bluetooth module, so as to send the data to be played to the bluetooth headset through the bluetooth module after power supply.
In the bluetooth control apparatus provided in the present application, further comprising a buffer unit, configured to:
caching the data to be played in a preset caching unit;
after the power supply to the Bluetooth module is recovered, the data to be played is acquired from the preset cache unit through the Bluetooth module after power supply, and the data to be played is sent to the Bluetooth headset.
Specifically, the working principle of the cache unit is that when the mobile terminal wants to read the data to be played, the mobile terminal generally searches the cache unit first; if the data to be played is not found, the data to be played is read from the memory with the slower reading speed and sent to the Bluetooth control device for processing, and meanwhile, the data block where the data to be played is located is called into the cache unit, so that the data to be played can be read from the cache unit later, and the memory does not need to be called. The cache does not need a memory refresh circuit to retain the stored data, so that the cache has better performance than a memory, and the speed of acquiring the data to be played is greatly increased due to the existence of the cache unit. Specifically, the bluetooth control device acquires data to be played from the cache unit in a wired transmission mode;
the Bluetooth control device controls the Bluetooth module to send the data to be played to the Bluetooth headset in a wireless transmission mode.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
It can be known from the above description that, the bluetooth control apparatus provided in this embodiment is applied to a mobile terminal, after a bluetooth module in the mobile terminal establishes a communication connection with a bluetooth headset, detect whether to transmit data to be played to the bluetooth module within a preset time period through the detection unit 10, then, if not, stop supplying power to the bluetooth module through the stop unit 20, then, when the bluetooth module is in a power supply stop state and detects that data to be played needs to be transmitted to the bluetooth module, resume supplying power to the bluetooth module through the resume unit 30, so as to send the data to be played to the bluetooth headset through the bluetooth module after supplying power.
Correspondingly, the embodiment of the invention also provides a Bluetooth control system, which comprises any one of the Bluetooth control devices provided by the embodiment of the invention, and the Bluetooth control device can be integrated in a mobile terminal.
After the Bluetooth module in the mobile terminal is in communication connection with the Bluetooth headset, the mobile terminal detects whether data to be played needs to be transmitted to the Bluetooth module within preset time, and then if not, the mobile terminal stops supplying power to the Bluetooth module.
The specific implementation of each device can be referred to the previous embodiment, and is not described herein again.
Since the bluetooth control system may include any bluetooth control device provided in the embodiment of the present invention, the beneficial effects that can be achieved by any bluetooth control device provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
In addition, the embodiment of the application also provides a terminal device, and the terminal device can be a smart phone, a smart vehicle and other devices. As shown in fig. 8, the terminal device 200 includes a processor 201 and a memory 202. The processor 201 is electrically connected to the memory 202.
The processor 201 is a control center of the terminal device 200, connects various parts of the entire terminal device 200 with various interfaces and lines, and performs various functions of the terminal device and processes data by running or loading an application program stored in the memory 202 and calling data stored in the memory 202, thereby performing overall monitoring of the terminal device.
In this embodiment, the processor 201 in the terminal device 200 loads instructions corresponding to processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 runs the application programs stored in the memory 202, thereby implementing various functions:
after a Bluetooth module in the mobile terminal establishes communication connection with a Bluetooth earphone, detecting whether data to be played needs to be transmitted to the Bluetooth module within a preset time;
if not, stopping supplying power to the Bluetooth module;
when the Bluetooth module is in a power supply stop state and detects that data to be played needs to be transmitted to the Bluetooth module, power supply to the Bluetooth module is recovered, so that the data to be played is sent to the Bluetooth headset through the Bluetooth module after power supply.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by the processor 201. To this end, the embodiment of the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by the processor 201 to execute the steps in any one of the bluetooth control methods provided by the embodiment of the present invention.
Fig. 9 is a block diagram showing a specific structure of a terminal device according to an embodiment of the present invention, where the terminal device 300 may be used to implement the bluetooth control method provided in the foregoing embodiment. The terminal device 300 may be a smart phone or a tablet computer.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 320 may be configured to store software programs and modules, such as program instructions/modules corresponding to the automatic light supplement system and method for front-facing camera photographing in the foregoing embodiments, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, so as to implement the function of automatic light supplement for front-facing camera photographing. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 320 may further include memory located remotely from processor 380, which may be connected to terminal device 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphic user interfaces of the terminal apparatus 300, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 9, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The terminal device 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the terminal device 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal device 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, microphone 362 may provide an audio interface between a user and terminal device 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 300.
The terminal device 300 may assist the user in e-mail, web browsing, streaming media access, etc. through the transmission module 370 (e.g., a Wi-Fi module), which provides the user with wireless broadband internet access. Although fig. 9 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the terminal device 300, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 380 is a control center of the terminal device 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 300 and processes data by running or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby performing overall monitoring of the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
Terminal device 300 also includes a power supply 390 (e.g., a battery) for powering the various components, which may be logically coupled to processor 380 via a power management system in some embodiments to manage charging, discharging, and power consumption management functions via the power management system. The power supply 390 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
after a Bluetooth module in the mobile terminal establishes communication connection with a Bluetooth earphone, detecting whether data to be played needs to be transmitted to the Bluetooth module within a preset time;
if not, stopping supplying power to the Bluetooth module;
when the Bluetooth module is in a power supply stop state and detects that data to be played needs to be transmitted to the Bluetooth module, power supply to the Bluetooth module is recovered, so that the data to be played is sent to the Bluetooth headset through the Bluetooth module after power supply.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, embodiments of the present invention provide a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any of the bluetooth control methods provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any of the bluetooth control methods provided in the embodiments of the present invention, the beneficial effects that can be achieved by any of the bluetooth control methods provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described again here.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In summary, although the present application has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present application, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, so that the scope of the present application shall be determined by the appended claims.

Claims (10)

1. A Bluetooth control method is applied to a mobile terminal and is characterized by comprising the following steps:
after a Bluetooth module in the mobile terminal establishes communication connection with a Bluetooth headset, detecting whether data to be played needs to be transmitted to the Bluetooth module within a preset time;
if not, stopping supplying power to the Bluetooth module;
when the Bluetooth module is in a power supply stopping state and detects that data to be played needs to be transmitted to the Bluetooth module, power supply to the Bluetooth module is recovered, so that the data to be played is sent to the Bluetooth headset through the Bluetooth module after power supply.
2. The bluetooth control method according to claim 1, wherein before detecting whether the data to be played needs to be transmitted to the bluetooth module within a preset time period, the method further comprises:
acquiring a Bluetooth starting instruction;
supplying power to the Bluetooth module according to the Bluetooth starting instruction;
and controlling the power-supplied Bluetooth module to establish communication connection with the Bluetooth headset.
3. The bluetooth control method according to claim 2, before the bluetooth module after the controlling power supply establishes a communication connection with the bluetooth headset, further comprising:
and initializing the Bluetooth module after power supply.
4. The Bluetooth control method according to claim 1,
the stopping of the power supply to the bluetooth module includes: disconnecting a controllable switch between the Bluetooth module and a power supply in the mobile terminal to stop supplying power to the Bluetooth module;
the resuming power to the bluetooth module includes: and closing the controllable switch between the Bluetooth module and a power supply in the mobile terminal to restore power supply to the Bluetooth module.
5. The bluetooth control method according to claim 1, further comprising, before the resuming power supply to the bluetooth module:
caching the data to be played in a preset cache region;
after the power supply to the bluetooth module is resumed, the method further comprises: and acquiring the data to be played from the preset cache region through the Bluetooth module after power supply, and sending the data to be played to the Bluetooth headset.
6. The utility model provides a bluetooth controlling means, is applied to mobile terminal, its characterized in that includes:
the mobile terminal comprises a detection unit, a processing unit and a display unit, wherein the detection unit is used for detecting whether to transmit data to be played to a Bluetooth module within a preset time length after the Bluetooth module in the mobile terminal establishes communication connection with a Bluetooth headset;
the stopping unit is used for stopping supplying power to the Bluetooth module if the Bluetooth module is not powered on;
and the recovery unit is used for recovering power supply to the Bluetooth module when the Bluetooth module is in a power supply stop state and detects that the data to be played needs to be transmitted to the Bluetooth module, so that the data to be played is sent to the Bluetooth headset by the Bluetooth module after power supply.
7. The bluetooth control device according to claim 6, characterized by further comprising a control unit for:
acquiring a Bluetooth starting instruction before the detection unit detects whether the data to be played needs to be transmitted to the Bluetooth module within a preset time;
supplying power to the Bluetooth module according to the Bluetooth starting instruction;
and controlling the power-supplied Bluetooth module to establish communication connection with the Bluetooth headset.
8. The bluetooth control device according to claim 7, wherein the control unit is further configured to:
and initializing the Bluetooth module after power supply before controlling the Bluetooth module after power supply to establish communication connection with the Bluetooth headset.
9. A mobile terminal, characterized in that it comprises a processor and a memory, said memory storing a computer program, said processor implementing the steps of the method according to any one of claims 1 to 5 when executing said computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202011323243.0A 2020-11-23 2020-11-23 Bluetooth control method and device, storage medium and mobile terminal Active CN112437421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011323243.0A CN112437421B (en) 2020-11-23 2020-11-23 Bluetooth control method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011323243.0A CN112437421B (en) 2020-11-23 2020-11-23 Bluetooth control method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN112437421A true CN112437421A (en) 2021-03-02
CN112437421B CN112437421B (en) 2024-05-10

Family

ID=74694606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011323243.0A Active CN112437421B (en) 2020-11-23 2020-11-23 Bluetooth control method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN112437421B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112888062A (en) * 2021-03-16 2021-06-01 芯原微电子(成都)有限公司 Data synchronization method and device, electronic equipment and computer readable storage medium
CN115348345A (en) * 2021-05-12 2022-11-15 Oppo广东移动通信有限公司 Control method, protective shell of terminal, terminal and computer storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067810A (en) * 2012-12-28 2013-04-24 无锡中星微电子有限公司 Bluetooth headset with audio playback function and method thereof
CN204334965U (en) * 2014-07-25 2015-05-13 中兴通讯股份有限公司 A kind of Bluetooth control device, mobile terminal and communication system
US20170026905A1 (en) * 2015-07-26 2017-01-26 Qualcomm Incorporated Bluetooth low energy combined listen and scan window
US20170208551A1 (en) * 2015-09-30 2017-07-20 Hisense Mobile Communications Technology Co., Ltd. Apparatus and method for setting antennas of mobile device, and mobile device
CN107852762A (en) * 2016-06-30 2018-03-27 华为技术有限公司 Manage method, bluetooth master and the device of bluetooth connection
CN108024239A (en) * 2017-11-29 2018-05-11 深圳创维数字技术有限公司 Remote terminal and its control method, computer-readable recording medium
CN108235288A (en) * 2017-11-30 2018-06-29 维沃移动通信有限公司 A kind of Bluetooth audio frequency playback method and mobile terminal
CN208299976U (en) * 2018-05-04 2018-12-28 深圳市博贝特科技发展有限公司 A kind of Bluetooth earphone device of band storage transmission
CN109660973A (en) * 2018-12-28 2019-04-19 努比亚技术有限公司 Bluetooth control method, mobile terminal and storage medium
CN111212371A (en) * 2019-12-19 2020-05-29 东莞宇龙通信科技有限公司 Bluetooth headset control method and device, storage medium and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067810A (en) * 2012-12-28 2013-04-24 无锡中星微电子有限公司 Bluetooth headset with audio playback function and method thereof
CN204334965U (en) * 2014-07-25 2015-05-13 中兴通讯股份有限公司 A kind of Bluetooth control device, mobile terminal and communication system
US20170026905A1 (en) * 2015-07-26 2017-01-26 Qualcomm Incorporated Bluetooth low energy combined listen and scan window
US20170208551A1 (en) * 2015-09-30 2017-07-20 Hisense Mobile Communications Technology Co., Ltd. Apparatus and method for setting antennas of mobile device, and mobile device
CN107852762A (en) * 2016-06-30 2018-03-27 华为技术有限公司 Manage method, bluetooth master and the device of bluetooth connection
CN108024239A (en) * 2017-11-29 2018-05-11 深圳创维数字技术有限公司 Remote terminal and its control method, computer-readable recording medium
CN108235288A (en) * 2017-11-30 2018-06-29 维沃移动通信有限公司 A kind of Bluetooth audio frequency playback method and mobile terminal
CN208299976U (en) * 2018-05-04 2018-12-28 深圳市博贝特科技发展有限公司 A kind of Bluetooth earphone device of band storage transmission
CN109660973A (en) * 2018-12-28 2019-04-19 努比亚技术有限公司 Bluetooth control method, mobile terminal and storage medium
CN111212371A (en) * 2019-12-19 2020-05-29 东莞宇龙通信科技有限公司 Bluetooth headset control method and device, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112888062A (en) * 2021-03-16 2021-06-01 芯原微电子(成都)有限公司 Data synchronization method and device, electronic equipment and computer readable storage medium
CN115348345A (en) * 2021-05-12 2022-11-15 Oppo广东移动通信有限公司 Control method, protective shell of terminal, terminal and computer storage medium

Also Published As

Publication number Publication date
CN112437421B (en) 2024-05-10

Similar Documents

Publication Publication Date Title
US11366510B2 (en) Processing method for reducing power consumption and mobile terminal
CN107635069B (en) UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal
CN107678989B (en) UART and USB multiplexing circuit and mobile terminal
CN108322599B (en) Network access method and mobile terminal
CN107834640B (en) Charging method and terminal
EP3570404B1 (en) Power supply control method and apparatus, storage medium, and electronic device
CN112437421B (en) Bluetooth control method and device, storage medium and mobile terminal
CN107979385B (en) A kind of radio frequency front-end data processing method and mobile terminal
CN111443803A (en) Mode switching method, device, storage medium and mobile terminal
CN108777627B (en) A power supply method and device
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN110620602A (en) Reverse charging and data transmission sharing system, multiplexing data line and electronic device
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN110048824B (en) Communication module control method, control device, and computer-readable storage medium
CN110086508B (en) Voltage adjusting method, system, storage medium and mobile terminal
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN111651299A (en) Wireless chip reset control method and device, storage medium and mobile terminal
CN109995441B (en) Communication information processing method, device and storage medium
CN112256610B (en) Connection control method, system, storage medium and mobile terminal
CN110972220B (en) Wireless communication method, device, storage medium and terminal equipment
CN218445773U (en) Intelligent device, DOCK accessory and DOCK accessory identification and detection system
CN111026486B (en) Application sorting method, application sorting device and computer readable storage medium
CN108808871A (en) A kind of wireless charging receiving terminal, wireless charging method and mobile terminal
CN112491562B (en) Communication control method and device and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240403

Address after: 518000, Building 2, Aerospace Building, No. 53 Gaoxin South 9th Road, Gaoxin Community, Yuehai Street, Nanshan District, Shenzhen, Guangdong Province 908

Applicant after: Shenzhen Zongguan Infinite Technology Co.,Ltd.

Country or region after: China

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Applicant before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant