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

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

Info

Publication number
CN112437421B
CN112437421B CN202011323243.0A CN202011323243A CN112437421B CN 112437421 B CN112437421 B CN 112437421B CN 202011323243 A CN202011323243 A CN 202011323243A CN 112437421 B CN112437421 B CN 112437421B
Authority
CN
China
Prior art keywords
bluetooth module
bluetooth
data
played
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.)
Active
Application number
CN202011323243.0A
Other languages
Chinese (zh)
Other versions
CN112437421A (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
Shenzhen Zongguan Infinite Technology 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 Shenzhen Zongguan Infinite Technology Co ltd filed Critical Shenzhen Zongguan Infinite Technology 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

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. TPC [Transmission Power Control], power saving 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)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a Bluetooth control method, a Bluetooth control device, a storage medium and a mobile terminal, wherein the Bluetooth control method comprises the following steps: after the Bluetooth module in the mobile terminal establishes communication connection with the Bluetooth headset, detecting whether data to be played need to be transmitted to the Bluetooth module within a preset duration; if not, stopping supplying power to the Bluetooth module; when the Bluetooth module is in a power-off state and detects that data to be played are required to be transmitted to the Bluetooth module, the power supply to the Bluetooth module is restored, so that the data to be played are transmitted to the Bluetooth earphone through the Bluetooth module after power supply, the Bluetooth module can be flexibly powered according to the actual working state of the Bluetooth module, the situation that the Bluetooth is in an on state but consumes redundant electric quantity in an idle state is avoided, and the mobile terminal has longer endurance time.

Description

Bluetooth control method and 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, device, storage medium, and mobile terminal.
Background
Bluetooth is a standard wireless communication technology that enables short-range data exchange between fixed devices, mobile devices, and building personal area networks. At present, bluetooth has become a standard technology on a mobile terminal, and is one of the most commonly used functions of the mobile terminal, and a user can connect other mobile terminals after starting bluetooth, so that data exchange is performed between the mobile terminals, and convenience is brought to the user.
The mobile terminal is connected with the Bluetooth headset through Bluetooth, so that the headset is connected with the mobile terminal in a wireless mode, the scene of using the headset by a user is enlarged, and the mobile terminal is particularly suitable for the user to use the headset during sports 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 for playing through bluetooth, because the playing speed is often slower than the data communication speed, the bluetooth of the mobile terminal is in an on-state 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 that when the Bluetooth of the mobile terminal is matched with a Bluetooth earphone, the Bluetooth is in an open but idle state, so that extra electric quantity is consumed, and 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 the Bluetooth module in the mobile terminal establishes communication connection with the Bluetooth headset, detecting whether data to be played need to be transmitted to the Bluetooth module within a preset duration;
if not, stopping supplying power to the Bluetooth module;
When the Bluetooth module is in a power-off state and the need to transmit data to be played to the Bluetooth module is detected, the power supply to the Bluetooth module is restored, and the data to be played is sent to the Bluetooth earphone through the Bluetooth module after power supply.
The application also provides a Bluetooth control device, which is applied to the mobile terminal and comprises:
The detection unit is used for detecting whether data to be played need to be transmitted to the Bluetooth module within a preset duration after the Bluetooth module in the mobile terminal is in communication connection with the Bluetooth earphone;
the stopping unit is used for stopping supplying power to the Bluetooth module if not;
And the recovery unit is used for recovering to supply power to the Bluetooth module 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, so that the data to be played is sent to the Bluetooth earphone through the Bluetooth module after power supply.
Wherein, the detecting unit specifically includes:
The first detection subunit is used for detecting whether the data to be played need to be transmitted to the Bluetooth module or not after the Bluetooth module in the mobile terminal establishes communication connection with the Bluetooth earphone;
and the second detection subunit is used for detecting whether the duration is within a preset duration when the data to be played do not need to be transmitted to the Bluetooth module.
Wherein, the stopping unit is specifically used for:
And disconnecting a controllable switch between the Bluetooth module and a power supply in the mobile terminal so as 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 so as to restore power supply to the Bluetooth module.
The Bluetooth control device provided by the application further comprises a control unit for:
Acquiring a Bluetooth starting instruction before the detection unit detects whether the data to be played need to be transmitted to the Bluetooth module within a preset time length;
supplying power to the Bluetooth module according to the Bluetooth starting instruction;
And the Bluetooth module after power supply control and the Bluetooth earphone are in communication connection.
In the bluetooth control device provided by the application, the control unit is further used for:
and 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 earphone.
The Bluetooth control device provided by the application further comprises a cache unit for:
Caching the data to be played in a preset cache area;
And after the power supply to the Bluetooth module is restored, acquiring the data to be played from the preset buffer area through the Bluetooth module after the power supply, and sending the data to be played to the Bluetooth headset.
The embodiment of the application also 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 Bluetooth control method.
The present application also 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 bluetooth control methods described above.
According to the Bluetooth control method, the Bluetooth control device, the storage medium and the mobile terminal, after the Bluetooth module in the mobile terminal is in communication connection with the Bluetooth earphone, whether the Bluetooth module needs to be transmitted to the Bluetooth module or not is detected within the preset time period, then, power supply to the Bluetooth module is stopped, after that, when the Bluetooth module is in a power supply stopping state and the Bluetooth module needs to be transmitted to the Bluetooth module is detected, power supply to the Bluetooth module is restored, the Bluetooth module after power supply is used for transmitting the data to be played to the Bluetooth earphone, and therefore, the Bluetooth module can be flexibly powered according to the actual working state of the Bluetooth module, unnecessary electric quantity consumed by Bluetooth in an on-state and idle state is avoided, and the mobile terminal has longer endurance time.
Drawings
The technical solution and other advantageous effects of the present application will be made apparent by the following detailed description of the specific embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of 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 flow chart of a bluetooth control method according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a mobile terminal in the bluetooth control method according to the embodiment of the present application.
Fig. 5 is a schematic structural diagram of a bluetooth control device according to an embodiment of the present application.
Fig. 6 is a schematic diagram of another structure of a bluetooth control device according to an embodiment of the present application.
Fig. 7 is a schematic diagram of another structure of a bluetooth control device according to an embodiment of the 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 following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the 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 flow chart of a bluetooth control method provided by an embodiment of the present application, where the bluetooth control method is applied to a mobile terminal, and the mobile terminal may be a device with bluetooth functions, such as a smart phone, an iPad, etc., and the specific flow may be as follows:
S101, after a Bluetooth module in the mobile terminal is in communication connection with a Bluetooth earphone, detecting whether data to be played need to be transmitted to the Bluetooth module within a preset duration, if not, executing the following step S102, and if so, continuing to supply power to the Bluetooth module.
The bluetooth headset may be a play device with bluetooth function, such as a real wireless headset or a wired bluetooth headset. In the mobile terminal, the bluetooth module and the bluetooth headset generally establish communication connection through searching and pairing, as shown in fig. 2, the specific connection mode is as follows: the mobile terminal starts the Bluetooth function, searches surrounding Bluetooth devices as a master 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 two devices can be paired to establish communication connection.
After the Bluetooth module in the mobile terminal is in communication connection with the Bluetooth headset, whether the data to be played need to be transmitted to the Bluetooth module within a preset time period or not can be detected.
The detecting whether the data to be played needs to be transmitted to the bluetooth module within the preset duration may specifically include:
detecting whether data to be played need to be transmitted to the Bluetooth module;
and when the data to be played do not need to be transmitted to the Bluetooth module, detecting whether the duration is within a preset duration.
The preset time period may be set manually, for example, preferably 5 seconds.
The condition that the data to be played is required to be transmitted to the Bluetooth module is triggered and generated when the mobile terminal plays a first song or plays a next song after playing the previous song, and a user can control the mobile terminal to play the first song or switch songs in a manual or voice mode.
In this embodiment, as shown in fig. 3, before executing the above-mentioned "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;
S106, controlling the Bluetooth module after power supply to establish communication connection with the Bluetooth headset.
When the Bluetooth function of the mobile terminal is started by a user through modes such as manual clicking or voice awakening, the mobile terminal acquires 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, in a specific manner, the main controller in the mobile terminal controls the controllable switch between the closed power supply and the Bluetooth module, namely, the Bluetooth module is powered. The controllable switch has the function of enabling the Bluetooth module to be flexibly connected with or disconnected from the power supply in the mobile terminal.
As shown in fig. 4, wherein the main controller further comprises: data communication pin DAT1, clock command pin CLK1, voltage output pin VDD1, 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 main controller is connected in series with a controllable switch and then connected to 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 main controller are directly connected to 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 perform 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 also needs to initialize the bluetooth module, and when the bluetooth module is in a powered state and initialized, the mobile terminal can control the bluetooth module to search for bluetooth devices around the scan, so as to be paired with the corresponding bluetooth headset to establish communication connection.
That is, before the bluetooth module after the control power supply establishes a communication connection with the bluetooth headset, the bluetooth control method further includes:
Initializing the Bluetooth module after power supply.
Specifically, the bluetooth module initializes the bluetooth serial port protocol SPP (Serial Port Profile) standard library, and sends a scanning instruction or a connection instruction without initializing the SPP library, and the bluetooth module returns an instruction error to indicate that the SPP library is not initialized and cannot work normally. Generally, the SPP library is reinitialized after the Bluetooth module is powered up after each power-off.
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 need not be transmitted to the bluetooth module, that is, the data to be played need not be transmitted within 5 seconds, the step of stopping power supply to the bluetooth module is performed. And when the transmission of the data to be played to the Bluetooth module is detected in the 4 th second, namely the transmission of the data to be played is required in 5 seconds, the power supply to the Bluetooth module is continued.
In fig. 3, the specific manner of "stopping power supply to the bluetooth module" is: and disconnecting the controllable switch between the power supply and the Bluetooth module in the mobile terminal.
S103, when the Bluetooth module is in a power-off state and the data to be played needs to be transmitted to the Bluetooth module is detected, the power supply to the Bluetooth module is restored, and the data to be played is sent to the Bluetooth headset through the Bluetooth module after power supply.
The "when the bluetooth module is in a power-off state", specifically: and when the controllable switch between the mobile terminal power supply and the Bluetooth module is in an off state.
In fig. 3, the specific manner of "recovering power to the bluetooth module" is:
and closing a controllable switch in the mobile terminal, wherein the controllable switch is in an open state between a power supply and the Bluetooth module.
Wherein, before the recovering to supply power to the bluetooth module, the bluetooth control method further comprises: caching the data to be played in a preset cache area;
after the recovering to supply power to the bluetooth module, the method further comprises: 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 is to read the data to be played, the data is generally searched from the buffer area of the main controller; if not found, the data block of the data to be played is read from the memory with slower reading speed and processed, and the data block is transferred into the buffer area, so that the data to be played can be read from the buffer later, and the memory is not required to be transferred. The buffer memory can retain stored data without a refresh circuit like a memory time, so that the buffer memory has better performance than a memory, and the speed of acquiring the data to be played by the main controller is greatly increased due to the existence of the buffer memory area.
Specifically, the main controller acquires 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.
As can be seen from the foregoing, the bluetooth control method provided by the present application is applied to a mobile terminal, after a bluetooth module in the mobile terminal establishes a communication connection with a bluetooth headset, it is detected whether data to be played needs to be transmitted to the bluetooth module within a preset period of time, then, if not, power supply to the bluetooth module is stopped, and then, when the bluetooth module is in a power-off state and it is detected that data to be played needs to be transmitted to the bluetooth module, power supply to the bluetooth module is resumed, so that the data to be played is transmitted to the bluetooth headset through the bluetooth module after power supply, power is flexibly supplied to the bluetooth module according to an actual working state of the bluetooth module, and unnecessary power consumption of bluetooth in an on-state is avoided, so that the mobile terminal has a longer endurance time.
According to the method described in the above embodiments, the present embodiment will be further described from the perspective of a bluetooth control device, which may be implemented as a separate entity, or may be integrated in a mobile terminal, where the mobile terminal may be a device with a camera, such as a smart phone, an iPad, or the like.
Referring to fig. 5, a specific description is given of a bluetooth control device provided by an embodiment of the present application, which is applied to a mobile terminal, and the bluetooth control device may include: a detection unit 10, a stopping unit 20, and a recovery unit 30, wherein:
(1) Detection unit 10
The detecting unit 10 is configured to detect whether data to be played needs to be transmitted to the bluetooth module within a preset duration after the bluetooth module in the mobile terminal establishes communication connection with the bluetooth headset;
the bluetooth headset may be a play device with bluetooth function, such as a real wireless headset or a wired bluetooth headset. The bluetooth module and the bluetooth headset in the mobile terminal generally establish communication connection in a searching and pairing mode, and the specific mode is as follows: the mobile terminal starts the Bluetooth function, and searches surrounding Bluetooth devices as a master device, and a user selects a device name corresponding to the Bluetooth headset as a slave device from a display interface in the mobile terminal, so that the two devices can be paired to establish communication connection.
After the mobile terminal Bluetooth module and the Bluetooth earphone are in communication connection, whether the data to be played need to be transmitted to the Bluetooth module within a preset time period or not can be detected.
For example, referring to fig. 6, the detecting unit 10 specifically includes:
The first detection subunit 11: the Bluetooth module is used for detecting whether the data to be played need to be transmitted to the Bluetooth module;
The second detection subunit 12: and the method is used for detecting whether the duration is within a 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, preferably 5 seconds.
Further, if the first detection subunit 11 detects that the data to be played does not need to be transmitted to the bluetooth module, and the second detection subunit 12 determines that the data to be played needs to be transmitted to the bluetooth module when the detection duration does not exceed 5 seconds.
For example, referring to fig. 7, the bluetooth control device further includes a control unit 40 for:
Acquiring a Bluetooth starting instruction before detecting whether the data to be played need to be transmitted to the Bluetooth module within a preset time length;
supplying power to the Bluetooth module according to the Bluetooth starting instruction;
and the Bluetooth module after power supply control establishes communication connection with the Bluetooth headset.
When the Bluetooth function of the mobile terminal is started by a user through modes such as manual clicking or voice awakening, the mobile terminal acquires a corresponding Bluetooth starting instruction. When the mobile terminal receives the Bluetooth opening instruction, the power supply in the mobile terminal supplies power for 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 Bluetooth module is powered. 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 for bluetooth devices around the scan, so as to pair with the corresponding bluetooth headset to establish communication connection.
In the bluetooth control device provided by the present application, the control unit 40 is further configured to:
before the Bluetooth module after the control power supply establishes communication connection with the Bluetooth headset, initializing the Bluetooth module after the power supply.
(2) Stop unit 20
A stopping unit 20 for stopping power supply to the bluetooth module if not;
Wherein, the "if not" specifically includes: if the fact that the data to be played do not need to be transmitted to the Bluetooth module within the preset time is detected.
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 second to 5 th second, that is, the data to be played does not need to be transmitted within 5 seconds, the step of stopping the power supply to the bluetooth module is performed, and the stopping unit 20 is started.
When the detection unit 10 detects that power needs to be supplied to the bluetooth module at the 4 th second, i.e. the data to be played needs to be transmitted within 5 seconds, the stop unit 20 is not activated.
(3) Recovery unit 30
And the recovery unit 30 is configured to, when the bluetooth module is in a power-off state and it is detected that the data to be played needs to be transmitted to the bluetooth module, recover to supply power to the bluetooth module, so as to send the data to be played to the bluetooth headset through the bluetooth module after power supply.
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 transmitting module, the recovering unit 30 is started to recover the power supply to the bluetooth module, so as to send the data to be played to the bluetooth headset through the bluetooth module after the power supply.
The Bluetooth control device provided by the application further comprises a cache unit for:
Caching the data to be played in a preset caching unit;
after the power supply to the Bluetooth module is restored, the data to be played is obtained from the preset cache unit through the Bluetooth module after the power supply and is sent to the Bluetooth headset.
Specifically, the working principle of the buffer unit is that when the mobile terminal is to read the data to be played, the data is generally searched from the buffer unit; if the data is not found, the data is read from the memory with 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 transferred 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 transferred. The cache does not need to be like a memory time refreshing circuit to keep 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 a 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 the implementation, each unit may be implemented as an independent entity, or may be implemented as the same entity or several entities in any combination, and the implementation of each unit may be referred to the foregoing method embodiment, which is not described herein again.
As can be seen from the foregoing, the bluetooth control device provided in this embodiment is applied to a mobile terminal, when a bluetooth module in the mobile terminal is in communication connection with a bluetooth headset, the detection unit 10 detects whether the bluetooth module needs to transmit data to be played in a preset period of time, if not, the stopping unit 20 stops supplying power to the bluetooth module, and when the bluetooth module is in a state of stopping supplying power and detects that the bluetooth module needs to transmit data to be played, the recovery unit 30 recovers supplying power to the bluetooth module, so as to send the data to be played to the bluetooth headset through the bluetooth module after power supply.
Correspondingly, the embodiment of the invention also provides a Bluetooth control system, which comprises any Bluetooth control device provided by the embodiment of the invention, and the Bluetooth control device can be integrated in the 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 need to be transmitted to the Bluetooth module within a preset duration, if not, the mobile terminal stops supplying power to the Bluetooth module, and if not, the mobile terminal resumes supplying power to the Bluetooth module when the Bluetooth module is in a power-stop state and the mobile terminal detects that the data to be played need to be transmitted to the Bluetooth module, so that the data to be played after power is transmitted to the Bluetooth headset through the Bluetooth module after power is supplied.
The specific implementation of each device can be referred to the previous embodiments, and will not be repeated here.
The bluetooth control system may include any bluetooth control device provided by the embodiment of the present invention, so that the beneficial effects that any bluetooth control device provided by the embodiment of the present invention can achieve can be achieved, which are detailed in the previous embodiments and are not described herein.
In addition, the embodiment of the application also provides terminal equipment which can be equipment such as a smart phone and an intelligent vehicle. As shown in fig. 8, the terminal device 200 includes a processor 201, 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 respective parts of the entire terminal device 200 using 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 the 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 the processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 executes the application programs stored in the memory 202, thereby implementing various functions:
after the Bluetooth module in the mobile terminal establishes communication connection with the Bluetooth earphone, detecting whether data to be played need to be transmitted to the Bluetooth module within a preset duration;
if not, stopping supplying power to the Bluetooth module;
When the Bluetooth module is in a power-off state and the data to be played needs to be transmitted to the Bluetooth module is detected, the power supply to the Bluetooth module is recovered, and the data to be played is sent to the Bluetooth earphone through the Bluetooth module after power supply.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be performed by instructions, or by instruction control related hardware, which may be stored in a computer readable storage medium and loaded and executed by the processor 201. To this end, an embodiment of the present invention provides a storage medium having stored therein a plurality of instructions capable of being loaded by the processor 201 to perform the steps of any of the bluetooth control methods provided by the embodiment of the present invention.
Fig. 9 shows a specific block diagram of a terminal device according to an embodiment of the present invention, and the terminal device 300 may be used to implement the bluetooth control method according to the above embodiment. The terminal device 300 may be a smart phone or a tablet computer.
The RF circuit 310 is configured to receive and transmit electromagnetic waves, and to perform mutual conversion between the electromagnetic waves and the 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 the like. The RF circuitry 310 may communicate with various networks such as the internet, intranets, wireless networks, or other devices via wireless networks. The wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The wireless networks described above may use a variety of communication standards, protocols, and technologies including, but not limited to, global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communications technology (ENHANCED DATA GSM Environment, EDGE), wideband code division multiple access technology (Wideband Code Division Multiple Access, WCDMA), code division multiple access technology (Code Division Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA), wireless fidelity technology (WIRELESS FIDELITY, wi-Fi) (e.g., american institute of electrical and electronics engineers standards IEEE 802.11a,IEEE 802.11b,IEEE802.11g and/or IEEE802.11 n), voice over internet protocol (Voice over Internet Protocol, voIP), worldwide interoperability for microwave access (Worldwide Interoperability for Microwave Access, wi-Max), other protocols for mail, instant messaging, and short messaging, as well as any other suitable communication protocols, even those not currently developed.
The memory 320 may be used for storing software programs and modules, such as program instructions/modules corresponding to the front-end camera photographing automatic light filling system and method in the above embodiments, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, that is, implements the front-end camera photographing automatic light filling function. 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 remotely located relative to 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 to 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 display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch-sensitive surface 331 or thereabout using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 380, and can receive and execute commands sent from the processor 380. In addition, the touch-sensitive surface 331 may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 331, the input unit 330 may also comprise other input devices 332. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 340 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal device 300, which may be composed of 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, the touch sensitive surface 331 may overlay the display panel 341 and, upon detection of a touch operation thereon or thereabout by the touch sensitive surface 331, is communicated to the processor 380 to determine the type of touch event, and the processor 380 then provides a corresponding visual output on the display panel 341 based on the type of touch event. Although in fig. 9 the touch sensitive surface 331 and the display panel 341 are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface 331 may be integrated with the display panel 341 to implement the 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 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the terminal device 300 are not described in detail herein.
Audio circuitry 360, speaker 361, and microphone 362 may provide an audio interface between a user and terminal device 300. The audio circuit 360 may transmit the received electrical signal converted from audio data to the speaker 361, and the electrical signal is converted into a sound signal by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signals into electrical signals, receives the electrical signals from the audio circuit 360, converts the electrical signals into audio data, outputs the audio data to the processor 380 for processing, and transmits the audio data to, for example, another terminal via the RF circuit 310, or outputs the audio data to the memory 320 for further processing. Audio circuitry 360 may also include an ear bud jack to provide communication of the peripheral ear bud with terminal device 300.
The terminal device 300 may facilitate user email, web browsing, streaming media access, etc. via the transmission module 370 (e.g., wi-Fi module), which provides wireless broadband internet access to the user. 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 of not changing the essence of the invention.
Processor 380 is a control center of terminal device 300 that connects the various parts of the overall handset using various interfaces and lines, performs various functions of terminal device 300 and processes data by running or executing software programs and/or modules stored in memory 320, and invoking data stored in memory 320, thereby performing overall monitoring of the handset. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 380.
The terminal device 300 also includes a power supply 390 (e.g., a battery) that provides power to the various components, and in some embodiments, may be logically coupled to the processor 380 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. Power supply 390 may also include one or more of any 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 (such as a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. In particular, 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, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:
after the Bluetooth module in the mobile terminal establishes communication connection with the Bluetooth earphone, detecting whether data to be played need to be transmitted to the Bluetooth module within a preset duration;
if not, stopping supplying power to the Bluetooth module;
When the Bluetooth module is in a power-off state and the data to be played needs to be transmitted to the Bluetooth module is detected, the power supply to the Bluetooth module is recovered, and the data to be played is sent to the Bluetooth earphone through the Bluetooth module after power supply.
In the implementation, each module may be implemented as an independent entity, or may be combined arbitrarily, and implemented as the same entity or several entities, and the implementation of each module may be referred to the foregoing method embodiment, which is not described herein again.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of 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, random Access Memory), magnetic or optical disk, and the like.
The steps in any bluetooth control method provided by the embodiment of the present invention may be executed by the instructions stored in the storage medium, so that the beneficial effects that any bluetooth control method provided by the embodiment of the present invention may be achieved are detailed in the previous embodiments, and will not be described herein.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
In summary, although the present application has been described in terms of the preferred embodiments, the preferred embodiments are not limited to the above embodiments, and various modifications and changes can be made by one skilled in the art without departing from the spirit and scope of the application, and the scope of the application is defined by the appended claims.

Claims (8)

1. The Bluetooth control method is applied to the mobile terminal and is characterized by comprising the following steps:
After the Bluetooth module in the mobile terminal is in communication connection with the Bluetooth earphone, detecting whether data to be played need to be transmitted to the Bluetooth module, wherein when the mobile terminal is controlled to play songs, the data to be played need to be transmitted to the Bluetooth module, and when the mobile terminal is controlled to stop playing songs, the data to be played need not to be transmitted to the Bluetooth module;
When the data to be played do not need to be transmitted to the Bluetooth module, detecting whether the duration time of the data to be played does not need to be transmitted to the Bluetooth module is within a preset duration time;
If the duration of the data to be played does not need to be transmitted to the Bluetooth module is not within the preset duration, a controllable switch between the Bluetooth module and a power supply in the mobile terminal is disconnected to stop supplying power to the Bluetooth module;
when the Bluetooth module is in a power-off state and detects that data to be played needs to be transmitted to the Bluetooth module, detecting whether the data to be played exists in a preset buffer area of a main controller in the mobile terminal, if the data to be played does not exist in the preset buffer area, reading the data to be played from a memory to buffer the data to be played in the preset buffer area, closing a controllable switch between the Bluetooth module and a power supply in the mobile terminal to restore power supply to the Bluetooth module, and acquiring the data to be played from the preset buffer area through the Bluetooth module after power supply and sending the data to the Bluetooth earphone.
2. The bluetooth control method according to claim 1, further comprising, before the detecting whether the data to be played needs to be transmitted to the bluetooth module within the preset period of time:
Acquiring a Bluetooth starting instruction;
supplying power to the Bluetooth module according to the Bluetooth starting instruction;
And the Bluetooth module after power supply control and the Bluetooth earphone are in communication connection.
3. The bluetooth control method according to claim 2, wherein before the bluetooth module after the control power supply establishes a communication connection with the bluetooth headset, further comprising:
Initializing the Bluetooth module after power supply.
4. A bluetooth control device applied to a mobile terminal, comprising:
The detection unit is used for detecting whether the data to be played need to be transmitted to the Bluetooth module after the Bluetooth module in the mobile terminal is in communication connection with the Bluetooth earphone, wherein the data to be played need to be transmitted to the Bluetooth module when the mobile terminal is controlled to play songs, and the data to be played does not need to be transmitted to the Bluetooth module when the mobile terminal is controlled to stop playing songs; when the data to be played do not need to be transmitted to the Bluetooth module, detecting whether the duration time of the data to be played does not need to be transmitted to the Bluetooth module is within a preset duration time;
the stopping unit is used for switching off a controllable switch between the Bluetooth module and a power supply in the mobile terminal to stop supplying power to the Bluetooth module if the duration of data to be played which does not need to be transmitted to the Bluetooth module is not within a preset duration;
And the recovery unit is used for detecting whether the data to be played exist in a preset buffer area of a main controller in the mobile terminal when the Bluetooth module is in a power-off state and detecting that the data to be played needs to be transmitted to the Bluetooth module, if the data to be played does not exist in the preset buffer area, reading the data to be played from a memory to buffer the data to be played in the preset buffer area, closing a controllable switch between the Bluetooth module and a power supply in the mobile terminal to recover power supply to the Bluetooth module, and acquiring the data to be played from the preset buffer area through the Bluetooth module after power supply and transmitting the data to the Bluetooth earphone.
5. The bluetooth control device according to claim 4, further comprising a control unit for:
Acquiring a Bluetooth starting instruction before the detection unit detects whether the data to be played need to be transmitted to the Bluetooth module within a preset time length;
supplying power to the Bluetooth module according to the Bluetooth starting instruction;
And the Bluetooth module after power supply control and the Bluetooth earphone are in communication connection.
6. The bluetooth control device according to claim 5, wherein the control unit is further configured to:
and initializing the Bluetooth module after power supply before the Bluetooth module after power supply is controlled to establish communication connection with the Bluetooth headset.
7. A mobile terminal comprising a processor and a memory, the memory storing a computer program, the processor implementing the steps of the method of any one of claims 1 to 3 when the computer program is executed.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 3.
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 CN112437421A (en) 2021-03-02
CN112437421B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112888062B (en) * 2021-03-16 2023-01-31 芯原微电子(成都)有限公司 Data synchronization method and device, electronic equipment and computer readable storage medium

Citations (8)

* 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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9961633B2 (en) * 2015-07-26 2018-05-01 Qualcomm Incorporated Bluetooth low energy combined listen and scan window
CN105376357B (en) * 2015-09-30 2019-04-05 青岛海信移动通信技术股份有限公司 A kind of antenna installation method and device of mobile device

Patent Citations (8)

* 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
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

Also Published As

Publication number Publication date
CN112437421A (en) 2021-03-02

Similar Documents

Publication Publication Date Title
CN105632491B (en) Method and electronic device for speech recognition
US11366510B2 (en) Processing method for reducing power consumption and mobile terminal
CN108494030B (en) Wireless charging method, terminal and transmitting terminal equipment
CN107635069B (en) UART and USB multiplex circuit and mobile terminal
CN112596625A (en) Electronic equipment, display control method and device
CN111443803B (en) Mode switching method and device, storage medium and mobile terminal
US11050282B2 (en) Power supply control method and device, storage medium and electronic device
CN111158815B (en) Dynamic wallpaper blurring method, terminal and computer readable storage medium
CN112437421B (en) Bluetooth control method and device, storage medium and mobile terminal
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN111045737B (en) Equipment identifier acquisition method, device, terminal equipment and storage medium
CN111372003A (en) Camera switching method and device and terminal
CN111885591A (en) Network connection method, device, storage medium and terminal
CN108777627B (en) Power supply method and device
CN106255146A (en) The electricity-saving control method of a kind of terminal, device and terminal
CN110048824B (en) Communication module control method, control device, and computer-readable storage medium
CN112486309B (en) Method for determining corresponding duration of idle state, control chip and electronic equipment
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN113722260A (en) Protection circuit, serial bus system, circuit protection method 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
CN111355991A (en) Video playing method and device, storage medium and mobile terminal
CN218445773U (en) Intelligent device, DOCK accessory and DOCK accessory identification and detection system
CN109995441B (en) Communication information processing method, device and storage medium
CN110972220B (en) Wireless communication method, device, storage medium and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
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