WO2019192030A1 - 一种蓝牙播放方法及电子设备 - Google Patents

一种蓝牙播放方法及电子设备 Download PDF

Info

Publication number
WO2019192030A1
WO2019192030A1 PCT/CN2018/083432 CN2018083432W WO2019192030A1 WO 2019192030 A1 WO2019192030 A1 WO 2019192030A1 CN 2018083432 W CN2018083432 W CN 2018083432W WO 2019192030 A1 WO2019192030 A1 WO 2019192030A1
Authority
WO
WIPO (PCT)
Prior art keywords
processor
data
decoded
electronic device
bluetooth
Prior art date
Application number
PCT/CN2018/083432
Other languages
English (en)
French (fr)
Inventor
易涛
胡昶
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US17/043,665 priority Critical patent/US11310646B2/en
Priority to CN201880089136.0A priority patent/CN111713141B/zh
Publication of WO2019192030A1 publication Critical patent/WO2019192030A1/zh

Links

Images

Classifications

    • 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/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/07Applications of wireless loudspeakers or wireless microphones
    • 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

Definitions

  • the present application relates to the field of Bluetooth technologies, and in particular, to a Bluetooth playback method and an electronic device.
  • an electronic device having a Bluetooth connection function can support music playback by a playback device such as a headset connected to the electronic device via Bluetooth.
  • the application processor in the mobile phone can transmit the data to be decoded, for example, the data to be decoded in the MP3 (Moving Picture Experts Group Audio Layer-3) format, to the digital signal processor (DSP). decoding.
  • the digital signal processor then performs post-processing on the decoded data, and sends the data obtained by the post-processing to the application processor.
  • the Bluetooth protocol stack running in the application processor processes the data transmitted by the digital signal processor, sends it to the Bluetooth chip, and transmits the received data to the playback device in the form of a wireless signal by the Bluetooth chip to implement music. Bluetooth playback.
  • the application processor not only needs to transmit the data to be decoded to the digital signal processor, but also needs to further process the data transmitted by the digital signal processor. Therefore, during the Bluetooth playback process of the music, the application processor inside the mobile phone is in a state of continuous operation, which generates a large amount of power consumption.
  • the present application provides a Bluetooth playback method and an electronic device, which can solve the problem that the application processor generates a large amount of power consumption.
  • an embodiment of the present application provides a Bluetooth playback method.
  • the method is for an electronic device.
  • the electronic device includes a first processor, a second processor, a third processor, and a Bluetooth module.
  • the first processor is in communication with the second processor
  • the second processor is in communication with the third processor
  • the third processor is in communication with the Bluetooth module.
  • the method includes: a first processor copy encoding algorithm, a sound post-processing program, and a Bluetooth audio transmission protocol to a second processor, and transmitting the first data to be decoded to the second processor, and then entering a sleep state; wherein the The data to be decoded is audio data to be played by an external Bluetooth playback device.
  • the second processor receives the first data to be decoded, decodes the first data to be decoded, performs post-processing and encoding, and obtains the first encoded data, and then sends the first encoded data to the Bluetooth module through the third processor.
  • the Bluetooth module converts the first encoded data into a first wireless signal, and transmits the audio data to a playback device external to the electronic device that is connected to the electronic device via Bluetooth communication.
  • the electronic device and the playback device are connected by Bluetooth communication.
  • the first processor can enter a sleep state.
  • the second processor may implement forwarding of the first encoded data by using the third processor, that is, the second processor is processed according to the first data to be decoded.
  • An encoded data is forwarded to the Bluetooth module.
  • the first encoded data is then converted into a first wireless signal by the Bluetooth module and transmitted to a playback device external to the electronic device for audio playback.
  • the power consumption generated when the third processor implements data forwarding is smaller than the power consumption generated when the first processor is in the working state.
  • the overall power consumption of the electronic device is ensured during the process of ensuring processing of the first data to be decoded, obtaining the first encoded data, and subsequently implementing data forwarding for the first encoded data. Reduced to solve the problem that the first processor generates a lot of power.
  • the first processor is woken up when the preset time interval is reached.
  • the first processor determines that there is second data to be decoded
  • the first processor transmits second data to be decoded to the second processor, wherein the second data to be decoded is audio data to be played.
  • the second processor receives and processes the second data to be decoded to obtain the second encoded data, and sends the second encoded data to the Bluetooth module through the third processor.
  • the Bluetooth module converts the second encoded data into a second wireless signal and transmits a second wireless signal to the playback device.
  • the processing, by the second processor, the second data to be decoded includes decoding the second data to be decoded, performing post-processing, and encoding, to obtain second encoded data.
  • the first processor may be woken up when the first processor enters a sleep state and reaches a preset time interval. That is, when there is the second data to be decoded in the first processor, it can be ensured that the first processor continues to send the second data to be decoded to the second processor, and after the first processor completes the transmission of the second data to be decoded, The first processor continues to go to sleep. Similar to the implementation of the above example, the second processor processes the second data to be decoded by processing the first data to be decoded, and finally processes the second encoded data obtained by processing the second data to be decoded by the Bluetooth module. Converting to a second wireless signal, and then transmitting a second wireless signal to the playback device.
  • the first processor switches between an active state and a sleep state.
  • the power consumption generated by the electronic device can be effectively saved, and when the first processor is in the working state, the working progress of the first processor can be ensured.
  • the first processor after the first processor transmits the second data to be decoded to the second processor, the first processor enters a sleep state.
  • the first processor after the first processor enters a sleep state, the first processor receives a signal indicating that the electronic device received the incoming call request. The first processor is then woken up. The first processor stops the audio playback and retains the data of the current audio playback and switches to the call voice program.
  • the first processor can retain the current audio playing data, and Switch to the call voice program to achieve call answering and other functions.
  • the first processor restores the audio play and sends the next piece of data to be decoded to the second processor. That is, after the call ends, the first processor can effectively restore the audio playback process, and process the next segment of data to be decoded by using the processing method proposed in the above exemplary implementation manner.
  • the first processor can be an application processor.
  • the second processor can be a digital signal processor.
  • the third processor can be a microprocessor, such as a Sensor Hub.
  • the power consumption generated by the third processor in the working state is smaller than the power consumption generated by the first processor being in the working state.
  • an embodiment of the present application provides an electronic device.
  • the electronic device includes a first processor, a second processor, a third processor, and a Bluetooth module.
  • the first processor, the second processor, the third processor, and the Bluetooth module cooperate to implement the method of any one of the first aspect and various implementation manners thereof.
  • an embodiment of the present application provides an electronic device.
  • the electronic device includes a display screen, a memory, one or more processors, a plurality of applications, and one or more programs; wherein the one or more programs are stored in the memory;
  • the one or more processors when executing the one or more programs, cause the electronic device to implement the method of any of the first aspect and various implementations thereof.
  • an embodiment of the present application provides a readable storage medium, including instructions.
  • the instruction When the instruction is run on an electronic device, the electronic device is caused to perform the method of any of the first aspect and various implementations thereof.
  • the embodiment of the present application provides a computer program product, where the computer program product includes software code, and the software code is used to execute the method according to any one of the foregoing first aspect and various implementation manners thereof.
  • FIG. 1 is a schematic structural diagram 1 of an electronic device according to an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram 2 of an electronic device according to an embodiment of the present disclosure.
  • FIG. 3 is a schematic structural diagram 3 of an electronic device according to an embodiment of the present disclosure.
  • FIG. 4 is an interaction diagram of a method for Bluetooth playback according to an embodiment of the present application.
  • FIG. 5 is a flowchart of a method for Bluetooth playback according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram 4 of an electronic device according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram 5 of an electronic device according to an embodiment of the present disclosure.
  • the embodiments of the present application may be used in an electronic device, which may include a notebook computer, a smart phone, a virtual reality (VR) device, an augmented reality (AR), an in-vehicle device, and a smart wearable device. And other equipment.
  • the electronic device 100 can be configured with at least a display screen, an input device, and a processor.
  • the electronic device 100 includes a processor 101 , a memory 102 , a camera 103 , an RF circuit 104 , and audio .
  • the circuit 105, the speaker 106, the microphone 107, the input device 108, other input devices 109, the display screen 110, the touch panel 111, the display panel 112, the output device 113, and the power source 114 are components.
  • the display screen 110 is composed of at least a touch panel 111 as an input device and a display panel 112 as an output device. It should be noted that the electronic device structure shown in FIG. 1 does not constitute a limitation on the electronic device, and may include more or less components than those illustrated, or combine some components, or split some components, or Different component arrangements are not limited herein.
  • the radio frequency (RF) circuit 104 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. For example, if the electronic device 100 is a mobile phone, the electronic device 100 can send the downlink of the base station through the radio frequency circuit 104. After the information is received, it is transmitted to the processor 101 for processing; in addition, the data related to the uplink is transmitted to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • the radio frequency circuit 104 can also communicate with the network and other devices via wireless communication.
  • the wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System for Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • E-mail Short Messaging Service
  • the memory 102 can be used to store software programs and modules, and the processor 101 executes various functional applications and data processing of the electronic device 100 by running software programs and modules stored in the memory 102.
  • the memory 102 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (for example, a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. Data (such as audio data, video data, etc.) or the like created according to the use of the electronic device 100.
  • memory 102 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • Other input devices 109 can be used to receive input numeric or character information, as well as generate key signal inputs related to user settings and function control of electronic device 100.
  • other input devices 109 may include, but are not limited to, a physical keyboard, function keys (eg, volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, light rats (light mice are touches that do not display visual output)
  • function keys eg, volume control buttons, switch buttons, etc.
  • trackballs mice
  • mice joysticks
  • light rats light mice are touches that do not display visual output
  • One or more of a sensitive surface, or an extension of a touch sensitive surface formed by a touch screen may also include sensors built into the electronic device 100, such as gravity sensors, acceleration sensors, etc., and the electronic device 100 may also use parameters detected by the sensors as input data.
  • the display screen 110 can be used to display information input by the user or information provided to the user as well as various menus of the electronic device 100, and can also accept user input.
  • the display panel 112 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 111 is also called a touch screen or a touch sensitive screen.
  • the contact or non-contact operation of the user on or near the user may be collected (for example, the user may use any suitable object or accessory such as a finger or a stylus on the touch panel 111 or in the vicinity of the touch panel 111, or Including the somatosensory operation; the operation includes a single point control operation, a multi-point control operation and the like, and drives the corresponding connection device according to a preset program.
  • the touch panel 111 may further include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation and posture of the user, and detects a signal brought by the touch operation, and transmits a signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts the signal into the processor 101.
  • the information that can be processed is transmitted to the processor 101, and the commands sent from the processor 101 can also be received and executed.
  • the touch panel 111 can be implemented by using various types such as resistive, capacitive, infrared, and surface acoustic waves, and the touch panel 111 can be implemented by any technology developed in the future.
  • the touch panel 111 can cover the display panel 112, and the user can cover the display panel 112 according to the content displayed by the display panel 112 (including but not limited to a soft keyboard, a virtual mouse, a virtual button, an icon, etc.).
  • the touch panel 111 operates on or near the touch panel 111. After detecting the operation thereon or nearby, the touch panel 111 transmits to the processor 101 to determine the user input, and then the processor 101 provides the display panel 112 according to the user input. Corresponding visual output.
  • the touch panel 111 and the display panel 112 are used as two independent components to implement the input and output functions of the electronic device 100 in FIG. 1 , in some embodiments, the touch panel 111 and the display panel 112 may be Integration to implement input and output functions of the electronic device 100.
  • the RF circuit 104, the speaker 106, and the microphone 107 can provide an audio interface between the user and the electronic device 100.
  • the audio circuit 105 can transmit the converted audio data to the speaker 106 for conversion to the sound signal output.
  • the microphone 107 can convert the collected sound signal into a signal, which is received by the audio circuit 105.
  • the audio data is output to the RF circuit 104 for transmission to a device such as another electronic device, or the audio data is output to the memory 102 for the processor 101 to perform further processing in conjunction with the content stored in the memory 102.
  • the camera 103 can acquire image frames in real time and transmit them to the processor 101 for processing, and store the processed results to the memory 102 and/or present the processed results to the user via the display panel 112.
  • the processor 101 is a control center of the electronic device 100 that connects various portions of the entire electronic device 100 using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 102, and by calling them stored in the memory 102.
  • the processor 101 may include one or more processing units; the processor 101 may further integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface (User Interface, UI) And the application, etc., the modem processor mainly handles wireless communication. It can be understood that the above modem processor may not be integrated into the processor 101.
  • the electronic device 100 may further include a power source 114 (such as a battery) for supplying power to the respective components.
  • a power source 114 such as a battery
  • the power source 114 may be logically connected to the processor 101 through the power management system, thereby managing charging and discharging through the power management system. And power consumption and other functions.
  • the electronic device 100 may further include a digital signal processor 115, a microprocessor 116, and a Bluetooth chip 117.
  • the processor 101 can transmit the data to be decoded to the signal processor 115 for operations such as decoding, post-processing, etc., after which the signal processor can transmit the processed data to the processor 101 or the microprocessor 116. deal with.
  • the processed data may be transmitted to the Bluetooth chip 117, so that the Bluetooth chip 117 converts the received data into a wireless signal transmission to implement the electronic device.
  • the post-processing of the sound refers to processing such as changing the audio style and adding an audio effect to the completed decoded data.
  • FIG. 2 is a schematic structural diagram of an exemplary mobile phone provided by an embodiment of the present application.
  • the mobile phone including an application processor 201 (ie, an implementation of the first processor), a digital signal processor 202 (ie, an implementation of the second processor), and a Sensor Hub 203 (ie, a third processor) An implementation) and a Bluetooth chip 204 (ie, an implementation of a Bluetooth module).
  • the application processor 201 is an implementation of the processor 101 in FIG. 1
  • the digital signal processor 202 is the digital signal processor 115 in FIG. 1
  • the Sensor Hub 203 is an implementation of the microprocessor 116 in FIG. 1 .
  • the Bluetooth chip 204 is the Bluetooth chip 117 in FIG.
  • the Sensor Hub 203 can be used to manage sensors in a mobile phone, such as one or more of a sensor such as a gravity sensor, an acceleration sensor, and an infrared sensor, and can be used to access data collected by the sensor or to monitor the sensor.
  • a sensor such as a gravity sensor, an acceleration sensor, and an infrared sensor
  • the working status, etc., here is not limited to the functions implemented by the Sensor Hub203 in the mobile phone.
  • an Advanced Audio Distribution Profile (A2DP) running in the Bluetooth protocol stack in the application processor 201 can be mirrored into the digital signal processor 202.
  • the complete Bluetooth protocol stack still runs in the application processor 201.
  • two Bluetooth audio transmission protocols are run in the mobile phone, and one copy is in the original Bluetooth protocol of the application processor 201. That is, running in the application processor 201 and the other running in the digital signal processor 202.
  • the present application is described by taking music playing through Bluetooth as an example, wherein the music can be replaced with any other audio data.
  • the Bluetooth audio transmission protocol can be used for the transmission of audio data based on Bluetooth communication, such as a playback device external to an electronic device such as a Bluetooth headset or a Bluetooth speaker.
  • the data to be decoded that needs to be decoded by the digital signal processor 202 includes data in a compressed format, such as audio data in the format of MP3, such as music in the MP3 format.
  • the application processor 201 when the mobile phone has established a Bluetooth connection with a playback device such as a headset, in the process of the mobile phone starting to play music or playing music, taking the music format as the MP3 as an example, the application processor 201 will wait for the MP3.
  • the decoded data is transmitted to the digital signal processor 202.
  • the digital signal processor 202 decodes the MP3 to be decoded data sent by the application processor 201, and after decoding the received original data, obtains Pulse Code Modulation (PCM) data.
  • PCM Pulse Code Modulation
  • the digital signal processor 202 then performs post-processing on the pulse-coded modulated data, and performs Sub-Band Code (SBC) processing on the data obtained by the post-effect processor through the Bluetooth audio transmission protocol to obtain sub-band encoded data.
  • PCM Pulse Code Modulation
  • SBC Sub-Band Code
  • the digital signal processor 202 forwards the obtained sub-band encoded data to the Bluetooth chip 204 via the Sensor Hub 203 through a transmission path between the digital signal processor 202 and the Sensor Hub 203 and a transmission path between the Sensor Hub 203 and the Bluetooth chip 204.
  • the Bluetooth chip 204 performs data conversion on the sub-band encoded data to obtain a wireless signal, and transmits it to the playback device that establishes a Bluetooth connection with the mobile phone through the Bluetooth chip 204.
  • the digital signal processor 202 may also select to pass the sub-band encoded data from the digital signal processor 202 once through other transmission paths for implementing the transfer of data from the digital signal processor 202 to the Bluetooth chip 204. Or multiple times of forwarding, to the Bluetooth chip 204, and is not limited to the implementation of sub-band encoded data forwarding by the Sensor Hub 203.
  • the digital signal processor 202 in the case that there is a transmission path between the digital signal processor 202 and the Bluetooth chip 204, the digital signal processor 202 can transmit the sub-band encoded data processed by the Bluetooth audio transmission protocol to the Bluetooth.
  • the chip 204 does not need to be additionally forwarded by other devices such as the Sensor Hub 203.
  • the application processor transmits the data to be decoded to the digital signal processor, it can enter the sleep state, and then the digital signal processor decodes the decoded data, the sound effect post processing, the sub-band coding, and the like. After operation, it is forwarded to the Bluetooth chip through the Sensor Hub, so that the Bluetooth chip outputs a wireless signal to realize Bluetooth playback of music. It should be noted that after the application processor enters the sleep state, the power consumption generated by the application processor is greatly reduced. When there is data to be decoded that needs to be processed by the Bluetooth protocol stack running in the application processor in the application processor, after the application processor transmits the data to be decoded to the digital signal processor, the application processor is still in operation. After the application processor receives the decoded data transmitted by the digital signal processor, the received data is sub-band encoded and converted into a wireless signal output through a Bluetooth chip to implement content other than music, such as a telephone. Bluetooth playback process.
  • the application processor is in a sleep state, which means that the application processor is currently in a non-working state.
  • the program that needs to be executed by the application processor may not be running in the mobile phone, and the application processor is in a sleep state.
  • the application processor can be woken up and put into a working state.
  • the mobile phone receives the incoming call, that is, the mobile phone is used as the called device, and other electronic devices such as mobile phones having the call calling capability are used as the calling device.
  • the mobile phone acting as the called device will wake up the application processor from the sleep state in response to the incoming call to enter the working state.
  • the application processor After the mobile phone plays music through Bluetooth, after the application processor completes the transmission process of the data to be decoded, the application processor enters a sleep state to reduce power consumption generated by the application processor.
  • the music of the MP3 format to be played includes a plurality of pieces of data to be decoded, and the plurality of pieces of data to be decoded are sequentially sent to the digital signal processor by the application processor according to the decoding order required for the music playing.
  • the music in the MP3 format includes three pieces of data to be decoded, which are first to-be-decoded data, second to-be-decoded data, and third to-be-decoded data.
  • the application processor transmits the first data to be decoded to the digital signal processor, and the digital signal processor decodes the first data to be decoded, the sound effect post processing, and the sub-band encoding operation.
  • the application processor periodically completes the transmission of the three pieces of data to be decoded according to a certain time interval (ie, a preset time interval), and the transmission time of each piece of data to be decoded is often smaller than the transmission interval of two pieces of data to be decoded.
  • the application processor may enter a sleep state until the transfer time of the second data to be decoded is reached, the application processor is woken up, and the second to be decoded is performed.
  • the data is transmitted, and then the application processor enters the sleep state again, and when it reaches the transmission time of the next piece of data to be decoded, it is woken up again until the application processor completes the transmission of the three pieces of data to be decoded; then the application processor can Go to sleep.
  • the time interval for the application processor to transmit the music is set to 100 milliseconds (ms), and the application processor needs 50 milliseconds to complete the transmission of each piece of data to be decoded.
  • the application processor After the application processor completes the transfer of the first data to be decoded, the application processor enters a sleep state, and sleeps for 50 milliseconds (ie, the time interval for transmitting the music minus the time period for transmitting each segment of data to be decoded, 100 milliseconds - 50 milliseconds)
  • the application processor After being awakened, after completing the transmission of the second data to be decoded, the application processor enters the sleep state again, sleeps for 50 milliseconds, and then wakes up again, and completes the transmission of the third data to be decoded.
  • the time interval for transmitting the data to be decoded (ie, 100 milliseconds), and the duration of the data transmission to be decoded for each segment (ie, 50 milliseconds) is an exemplary description, which is not limited to the embodiment of the present application. Set to other values. It should be noted that the foregoing time interval is greater than the duration of each data transmission to be decoded. In the embodiment of the present application, the duration of the data transmission to be decoded in each segment may be identical, partially identical, or completely different, and is not limited herein. Similarly, the time interval for transmitting between the data to be decoded that needs to be transmitted between two segments may be set to be identical, partially identical, or completely different, and is not limited herein. In other words, it is only necessary to ensure that the duration of the first data to be decoded is less than the time interval between the first data to be decoded and the data to be decoded.
  • the application processor when the time length of the first to-be-decoded data transmission is equal to the time interval between the first to-be-decoded data and the second to-be-decoded data, the application processor does not enter the sleep state. In this case, therefore, for this case, the manner in which music is played by Bluetooth provided in the prior art can be employed.
  • the working state of the application processor may have frequent changes, that is, the state of the application processor may be in the working state and the dormant state. Switching between them, and each time the application processor goes to sleep, it can effectively save power.
  • the application processor in addition to the process of implementing music through Bluetooth, and the process of implementing other services, the application processor can utilize the above-mentioned Bluetooth to realize the time saved by the music playing (that is, the duration that the application processor can enter the sleep state), The execution of other services is completed, so that the resources saved by the application processor are applied to other services to improve the efficiency of the application processor and utilize the limited resources of the application processor to implement more business processes.
  • the function requires the parameters of the Bluetooth protocol stack running in the application processor, so the application processor can be woken up and put into operation.
  • the decoded data can be processed by the Bluetooth audio transmission protocol running in the digital signal processor, there is no need to transmit the decoded data to the Bluetooth in the application processor.
  • the protocol stack processes, therefore, the application processor can be in a dormant state during the decoding of the data to be decoded by the digital signal processor, the post-processing of the audio effect, and the processing of the decoded data using the Bluetooth audio transmission protocol, thereby reducing application processing.
  • the effect of power consumption although the Sensor Hub implements data forwarding, it generates power consumption, but the generated power consumption is less than the power consumption caused by the application processor during normal operation. Therefore, the sub-band encoding process is implemented by the digital signal processor and passes through the Sensor Hub. Realizing the forwarding of sub-band encoded data can effectively save the power consumption of the mobile phone.
  • the application processor 201 transmits the data to be decoded to the digital signal processor 202 by taking the Bluetooth call service as an example.
  • the digital signal processor 202 decodes the received data to be decoded, and selectively performs post-processing on the decoded data, and then transmits the processed data or the decoded data to the application processor 201.
  • the mobile phone performs sub-band encoding processing on the data transmitted by the digital signal processor 202 through the Bluetooth protocol stack running in the application processor 201 to obtain sub-band encoded data.
  • the application processor 201 then transmits the sub-band encoded data to the Bluetooth chip 204 to cause the Bluetooth chip 204 to convert the sub-band encoded data into a wireless signal for transmission to a playback device that establishes a Bluetooth connection with the handset.
  • the Bluetooth chip can receive the sub-band encoded data sent from the application processor or the Sensor Hub, or the Bluetooth chip can exist when there is a transmission path between the Bluetooth chip and the digital signal processor. Receiving subband encoded data transmitted from an application processor or a digital signal processor.
  • the source of the two-way or multi-path data that can be received by the Bluetooth chip is not limited.
  • the application processor may also be involved in the process of switching the mobile phone from the playing process of one music to the playing of another music.
  • the Bluetooth protocol, the Bluetooth protocol involved in pausing the current music playback process, and one or more of the Bluetooth protocols involved in playing the content of the mobile phone through Bluetooth, other than music, are copied to the digital signal processor, such that It can also ensure that the application processor enters a sleep state during the above implementation process to save power consumption of the mobile phone.
  • the application processor uses the Bluetooth audio transmission protocol as a Bluetooth protocol copied to the digital signal processor as an example, but is not limited to copying the Bluetooth protocol except the Bluetooth audio transmission protocol to digital signal processing.
  • the case of the device is also not limited to the case where the Bluetooth audio transmission protocol and other Bluetooth protocols are copied to the digital signal processor. It should be noted that, for content copied to the digital signal processor, etc., the digital signal processor can store the content into the memory.
  • the Bluetooth chip can receive the sub-band encoded data sent from the application processor or the Sensor Hub, as shown in FIG. 3, which is an exemplary connection between the Bluetooth chip 204, the application processor 201, and the Sensor Hub 203. Diagram of the relationship. That is, an interface circuit 205 and a data selector (MUX) 206 are also included in the mobile phone.
  • MUX data selector
  • Both the application processor 201 and the Sensor Hub 203 are connected to the data selector 206 via the interface circuit 205. That is, the application processor 201 can transmit data to the data selector 206 through the interface circuit 205. Similarly, the Sensor Hub 203 can transmit data to the data selector 206 through the interface circuit 205. For the data selector 206, the data selector 206 can receive the sub-band encoded data from the application processor 201 and from the Sensor Hub 203, respectively, and transmit the sub-application processor 201 or the Sensor Hub 203 through the data selector 206. The encoded data is transmitted to the Bluetooth chip 204.
  • the Bluetooth chip 204 needs to receive the data transmitted by the application processor 201 and the data transmitted by the Sensor Hub 203. Therefore, the data selector 206 is passed through the data selector 206. The two channels of data are converted into one channel of data and transmitted to the Bluetooth chip 204. That is to say, in the data transmission process, the data selector 206 can transmit sub-band encoded data of different sources to the Bluetooth chip 204 at different times, for the Bluetooth chip 204 to realize conversion of the sub-band encoded data to the wireless signal, and subsequent The output of the wireless signal.
  • the data selector 206 can be controlled by the application processor 201. That is, when the data selector 206 receives the data transmitted by the application processor 201, the data selector 206 forwards the data transmitted by the application processor 201 to the Bluetooth chip 204. When the data selector 206 does not receive the data transmitted by the application processor 201 and receives the data transmitted by the Sensor Hub 203, the data selector 206 forwards the data transmitted by the Sensor Hub 203 to the Bluetooth chip 204. Therefore, in the embodiment of the present application, the data selector 206 can convert the multi-input data into one data output, that is, equivalent to one switch circuit, and selectively input different signals to the Bluetooth chip 204 according to the control of the application processor 201. The source data, to ensure that the Bluetooth chip 204 maintains one input and one output, enables the Bluetooth chip 204 to process data transmitted by two data sources.
  • the data selector 206 is equivalent to a multiplexing circuit, and the application processor 201 or the Sensor Hub 203 can apply for access rights to the multiplexing circuit when it is required to transmit data to the Bluetooth chip 204, that is, Access to the Bluetooth chip 204, that is, the right to transfer the subband encoded data to the Bluetooth chip 204.
  • the Bluetooth protocol stack running in the application processor is required to implement the sub-band encoding. Therefore, in the embodiment of the present application, the Sensor Hub 203 has Lower access rights. That is, the right of the application processor 201 to transfer data to the Bluetooth chip 204 is higher than the permission of the Sensor Hub 203 to transmit data to the Bluetooth chip 204.
  • the data selector 206 determines the application processor's current request to transfer data to the Bluetooth chip 204 and gives the application processor 201 the access rights. That is to say, even if the Sensor Hub 203 transmits data to the Bluetooth chip 204 via the data selector 206 via the interface circuit 205, the data selector 206 stops transmitting the data transmitted by the Sensor Hub 203 to the Bluetooth chip 204, but the application is applied.
  • the data transmitted by the processor 201 is forwarded to the Bluetooth chip 204 for processing. That is, the data selector 206 mixes the two inputs and selectively turns off one of the two inputs in accordance with the control of the application processor 201 to ensure one input of the Bluetooth chip 204.
  • FIG. 3 The components of interface circuit 205 that are coupled to data selector 206 are application processor 201 and digital signal processor 202. That is, the component connection relationship shown in FIG. 3 is an exemplary implementation manner of the embodiment of the present application, and is not intended to be an excessive limitation on the embodiments of the present application.
  • a flow chart of a method for playing music through a Bluetooth mobile phone includes S301 to S315.
  • the application processor detects a request to play music, and the mobile phone and the external Bluetooth playback device are connected through Bluetooth.
  • the sound effect post-processing program is used for performing post-processing on the decoded data; the encoding algorithm is used for sub-band encoding the data processed after the sound effect to obtain sub-band encoded data.
  • the digital signal processor can complete the decoding process of the data to be decoded, the post-sound processing process, and the sub-band encoding process.
  • the application processor can copy the encoding algorithm for implementing sub-band encoding and the Bluetooth audio transmission protocol for audio data transmission to the digital signal processor.
  • the content that the application processor needs to copy includes but is not limited to the content mentioned in S302, and may also include more or less content, depending on the original functions of the application processor and the digital signal processor.
  • the functions required to be implemented by the application processor and the digital signal processor are not limited herein.
  • the digital signal processor stores the encoding algorithm, the sound effect post-processing program, and the Bluetooth audio transmission protocol into the memory.
  • S302 and S303 can also be implemented as: an application processor copy encoding algorithm, a sound post-processing program, and a Bluetooth audio transmission protocol into the memory of the digital signal processor.
  • the application processor transmits the data to be decoded to the digital signal processor.
  • the data to be decoded is audio data to be played.
  • the application processor enters a sleep state.
  • the digital signal processor receives the data to be decoded sent by the application processor, and decodes the data to be decoded, and performs sound effect post-processing and sub-band coding on the decoded data to obtain sub-band encoded data.
  • the digital signal processor stores the obtained subband encoded data in a memory of the digital signal processor.
  • the Sensor Hub reads the subband encoded data from the memory of the digital signal processor.
  • the digital signal processor can transmit the sub-band encoded data stored in the memory to the Bluetooth chip through the Sensor Hub by transmitting data to the Sensor Hub.
  • the process of reading sub-band encoded data from the memory of the digital signal processor can be triggered by the Sensor Hub or can be actively executed by the digital signal processor, that is, after the digital signal processor completes the sub-band encoding process. , the obtained sub-band encoded data is forwarded to the Sensor Hub.
  • the Sensor Hub sends the subband encoded data to the Bluetooth chip.
  • the Bluetooth chip receives the subband encoded data sent by the Sensor Hub.
  • the Bluetooth chip performs data conversion on the sub-band encoded data to obtain a wireless signal.
  • the Bluetooth chip sends a wireless signal to a Bluetooth playback device external to the mobile phone.
  • the application processor is woken up when the application processor reaches the time interval for transmitting the next piece of data to be decoded.
  • the application processor For the case where the multi-segment to be decoded data needs to be transmitted by the application processor to the digital signal processor, after the application processor enters the sleep state, after the application processor reaches the preset time interval, the application processor is woken up, and S314 is performed.
  • a component having a timing function such as a timer
  • a timer may be disposed in the mobile phone to complete the counting process of the time interval, and when the set time interval is reached, to the application processor. Signals are sent to wake up the application processor.
  • the application processor After the application processor enters the sleep state, it will automatically wake up according to a certain period, and the certain period may be preset, that is, the duration of the foregoing time interval.
  • the application processor determines whether audio playback is no longer performed by the external Bluetooth playback device. When the application processor determines that the mobile phone is no longer playing audio through the external Bluetooth playback device, executing S315; and when the application processor determines that the mobile phone still plays audio through the external Bluetooth playback device, loops S304 to S314 are performed.
  • the music may be a piece of data to be decoded, or may be a plurality of pieces of data to be decoded.
  • each piece of data to be decoded can be processed according to S304 to S313 until all data to be decoded of the music is converted into a wireless signal, or the process of playing the music by the mobile phone is After termination, the process is terminated.
  • the digital signal processor can perform a music end playback as a trigger condition for executing S315, or the digital signal processor can execute when the application processor determines that the mobile phone is no longer playing audio through the external Bluetooth playback device.
  • the audio playback includes, but is not limited to, music playback.
  • the digital signal processor releases the encoding algorithm in the memory, the sound post-processing program, and the Bluetooth audio transmission protocol.
  • the digital signal processor when the application processor determines that the mobile phone is no longer playing audio through the external Bluetooth playback device, the digital signal processor does not After receiving the data to be decoded sent by the application processor, the digital signal processor releases the decoding algorithm stored in the memory, the audio post-processing program, and the Bluetooth audio transmission protocol.
  • the mobile phone may have a situation that the music playing process is interrupted due to a telephone or the like, and in this case, an implementation as shown in FIG. 5 may be adopted. the way. That is, after S305 of FIG. 4 is executed, the application processor can be woken up after the mobile phone receives the incoming call request.
  • a flow chart of a method after the mobile phone receives an incoming call during the process of playing music through the Bluetooth includes S401 to S404.
  • the application processor receives a signal indicating that the mobile phone receives the incoming call request.
  • the modem of the mobile phone can signal the application processor to indicate that the mobile phone receives the incoming call request. At this point, the application processor is woken up by the modem.
  • the call can be a voice call or a video call.
  • the application processor pauses the music playing, and retains the live data of the current music playing.
  • the application processor stops transmitting the data to be decoded of the music to the digital signal processor. And, the application processor stores the data to be decoded of the music that has not been sent to the digital signal processor in the memory of the application processor.
  • the application processor switches to the call voice program.
  • the application processor After the application processor stops transmitting data to be decoded to the digital signal processor, the digital signal processor stops the decoding operation to be performed on the decoded data. At this time, the application processor can implement the call process based on Bluetooth by calling a call voice program. It should be noted that the manner of implementing the call process when the Bluetooth connection between the mobile phone and the playback device is implemented may refer to the prior art. For example, the response of the incoming call request may be completed by the modem of the mobile phone and other components in the mobile phone, etc., Narration.
  • the application processor may detect that the user touches a function key that ends the current call process, and the operation of the user touching the function key may be used as a trigger application processor to restore.
  • the signal of the music playing scene may be used as a trigger application processor to restore.
  • the modem of the mobile phone may send a signal to the application processor to indicate that the call process ends, to trigger the application processor to restore the music playing site.
  • the manner in which the application processor determines whether the call process ends includes, but is not limited to, the two cases exemplified above, and the manner of determining the application processor is not limited herein.
  • the application processor can automatically restore the music playing scene, that is, continue to transmit the data to be decoded that is not transmitted to the digital signal processor to the digital signal processor to continue playing music through Bluetooth, that is, continue
  • the flow shown in S304 to S315 shown in FIG. 4 is executed.
  • the digital signal processor completes the sub-band encoding process, and the application processor can enter the sleep state after completing the transmission of the data to be decoded.
  • the sub-band encoding process of the decoded data is still completed by the application processor.
  • the embodiment of the present application may divide the functional modules of the electronic device according to the foregoing method example.
  • each functional module may be divided according to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 6 is a schematic diagram of a possible structure of an electronic device involved in the above embodiment.
  • the electronic device 50 includes a first processing module 51, a second processing module 52, a third processing module 53, and a Bluetooth module 54.
  • the first processing module 51 is configured to support the electronic device 50 to implement a copy of content such as an encoding algorithm (such as a sub-band encoding algorithm), a sound post-processing program, and a Bluetooth audio transmission protocol, that is, copy the above-exemplified content to the second. Processing module 52.
  • the first processing module 51 is configured to support the electronic device 50 to transmit the first data to be decoded to the second processing module 52 (for example, the first piece of data to be decoded in the audio data to be played by the electronic device 50, or the electronic device 50 is playing. The next piece of audio data needs to be played back to be decoded, etc.). After completing the transmission of the data to be decoded, the first processing module 51 enters a sleep state.
  • the second processing module 52 is configured to support the electronic device 50 to receive the first to-be-decoded data transmitted by the first processing module 51, and perform decoding, post-processing, and encoding on the first to-be-decoded data to obtain first encoded data (eg, according to The first sub-band encoded data obtained after the first to-be-decoded data is processed).
  • the second processing module 52 is configured to support the electronic device 50 to send the first encoded data to the Bluetooth module 54 through the third processing module 53.
  • the Bluetooth module 54 is configured to support the electronic device 50 to convert the first encoded data into a first wireless signal, and send the first wireless signal to a playback device external to the electronic device 50 to implement audio playback.
  • the first processing module 51 is woken up when the preset time interval is reached.
  • the first processing module 51 determines that there is second data to be decoded
  • the first processing module 51 is configured to support the electronic device 50 to transmit the second data to be decoded to the second processing module 52 (for example, during audio playback, at the first The data to be decoded corresponding to the second wireless signal that needs to be played after the wireless signal).
  • the second processing module 52 is configured to support the electronic device 50 to receive and process the second data to be decoded to obtain the second encoded data, and send the second encoded data to the Bluetooth module 54 through the third processing module 53.
  • the Bluetooth module 54 is configured to support the electronic device 50 to convert the second encoded data into a second wireless signal and transmit the second wireless signal to the playback device.
  • the processing, by the second processing module 52, the second to-be-decoded data includes performing decoding, audio-after-processing, and encoding on the second to-be-decoded data to obtain the second encoded data.
  • the second processing module 52 after the first processing module 51 transmits the second data to be decoded to the second processing module 52, the second processing module 52 enters a sleep state.
  • the first processing module 51 after the first processing module 51 enters the sleep state, the first processing module 51 is configured to support the electronic device 50 to receive a signal indicating that the electronic device 50 receives the incoming call request. The first processing module 51 is woken up. The first processing module 51 is configured to support the electronic device 50 to stop audio playback, and retain data of the current audio playback, after which the first processing module 51 switches to the call voice program.
  • the first processing module 51 is configured to support the electronic device 50 to restore the audio play after the call ends, and send the audio play to the second processing module 52. The next segment of data to be decoded.
  • the electronic device 50 may further include: a communication module 55 and a storage module 56.
  • the communication module 55 is configured to support data interaction between any two modules in the first processing module 51, the second processing module 52, the third processing module 53, the Bluetooth module 54, and the storage module 56 of the electronic device 50, and/ Communication between the electronic device 50 and other devices, such as a playback device external to the electronic device 50, is supported.
  • the storage module 56 is configured to support the electronic device 50 to store program codes and data of the electronic device.
  • each of the foregoing processing modules may be implemented as a processor or a controller, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and a dedicated integration.
  • CPU central processing unit
  • DSP digital signal processor
  • ASIC Application-Specific Integrated Circuit
  • FPGA Field Programmable Gate Array
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the first processing module 51 can be implemented as an application processor; the second processing module 52 can be implemented as a digital signal processor; and the third processing module 53 can be implemented as a microprocessor such as a Sensor Hub.
  • the Bluetooth module 54 can be implemented as a Bluetooth chip.
  • the communication module 55 can be implemented as a transceiver, a transceiver circuit or a communication interface or the like.
  • the storage module 56 can be implemented as a memory.
  • the electronic device 60 includes an application processor 61, a digital signal processor 62, a microprocessor 63, a Bluetooth chip 64, a transceiver 65, a memory 66, and a bus 67.
  • the application processor 61, the digital signal processor 62, the microprocessor 63, the Bluetooth chip 64, the transceiver 65 and the memory 66 can be connected to each other through a bus 67; the bus 67 can be a Peripheral Component Interconnect (Peripheral Component Interconnect). PCI) bus or extended Industry Standard Architecture (EISA) bus.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 7, but it does not mean that there is only one bus or one type of bus.
  • the steps of a method or algorithm described in connection with the present disclosure may be implemented in a hardware or may be implemented by a processor executing software instructions.
  • the software instructions may be composed of corresponding software modules, which may be stored in a random access memory (RAM), a flash memory, a read only memory (ROM), an erasable programmable read only memory ( Erasable Programmable ROM (EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Register, Hard Disk, Mobile Hard Disk, Compact Disc Read-Only Memory (CD-ROM), or any of those well known in the art.
  • RAM random access memory
  • ROM read only memory
  • EPROM erasable programmable read only memory
  • EEPROM Electrically Erasable Programmable Read Only Memory
  • register Hard Disk
  • Mobile Hard Disk Mobile Hard Disk
  • CD-ROM Compact Disc Read-Only Memory
  • Other forms of storage media are coupled to the processor to enable the processor to read information from, and write information to, the storage medium.
  • the embodiment of the present application provides a readable storage medium.
  • the readable storage medium stores instructions that, when executed on the electronic device, cause the electronic device to perform any of the above method embodiments.
  • the embodiment of the present application provides a computer program product.
  • the computer program product includes software code for performing any of the above method embodiments.
  • the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof.
  • the functions may be stored in a computer readable medium or transmitted as one or more instructions or code on a computer readable medium.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.

Abstract

本申请提供一种蓝牙播放方法及电子设备。该方法涉及蓝牙技术领域,能够解决应用处理器产生大量功耗的问题。该方法包括:第一处理器拷贝编码算法、音效后处理程序以及蓝牙音频传输协议到第二处理器,并向第二处理器传送第一待解码数据,之后进入休眠状态。第二处理器接收第一待解码数据,并对第一待解码数据进行解码、音效后处理以及编码,得到第一编码数据,之后将第一编码数据通过第三处理器发送给蓝牙模块。蓝牙模块将第一编码数据转换为第一无线信号,并向电子设备外部的与电子设备通过蓝牙通信连接的播放设备发送,实现音频播放。其中,第一、第二处理器通信连接,第二、第三处理器通信连接,第三处理器与蓝牙模块通信连接。

Description

一种蓝牙播放方法及电子设备
本申请要求于2018年4月4日提交中国专利局、申请号为201810301279.5、申请名称为“一种通过蓝牙设备播放音频的方法及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及蓝牙技术领域,尤其涉及一种蓝牙播放方法及电子设备。
背景技术
随着蓝牙(Bluetooth)技术的发展,诸如手机等具备蓝牙连接功能的电子设备,可以支持通过蓝牙与该电子设备连接的诸如耳机等播放设备实现音乐播放。以手机为例,手机中的应用处理器可以将待解码数据,比如,MP3(Moving Picture Experts Group Audio Layer-3)格式的待解码数据,传送给数字信号处理器(Digital Signal Processor,DSP)进行解码。之后数字信号处理器对解码后得到的数据进行音效后处理,并将音效后处理得到的数据发送给应用处理器。运行在应用处理器中的蓝牙协议栈对数字信号处理器传送的数据进行处理后,发送给蓝牙芯片,并由蓝牙芯片以无线信号的形式将接收到的数据传送给播放设备,以实现音乐的蓝牙播放。
在音乐的蓝牙播放过程中,应用处理器不仅需要将待解码数据传送给数字信号处理器,还需要对数字信号处理器传送的数据进行进一步的处理。因此,在音乐的蓝牙播放过程中,手机内部的应用处理器处于持续工作的状态,会产生大量功耗。
发明内容
本申请提供一种蓝牙播放方法及电子设备,能够解决应用处理器产生大量功耗的问题。
为达到上述目的,本申请实施例采用如下技术方案:
第一方面,本申请实施例提供一种蓝牙播放方法。该方法用于一种电子设备。该电子设备包括第一处理器、第二处理器、第三处理器和蓝牙模块。其中,第一处理器与第二处理器通信连接,第二处理器与第三处理器通信连接,第三处理器与蓝牙模块通信连接。该方法包括:第一处理器拷贝编码算法、音效后处理程序以及蓝牙音频传输协议到第二处理器,并向第二处理器传送第一待解码数据,之后进入休眠状态;其中,所述第一待解码数据为待通过外部的蓝牙播放设备进行播放的音频数据。第二处理器接收第一待解码数据,并对第一待解码数据进行解码、音效后处理以及编码,得到第一编码数据,之后将第一编码数据通过第三处理器发送给蓝牙模块。蓝牙模块将第一编码数据转换为第一无线信号,并向电子设备外部的与电子设备通过蓝牙通信连接的播放设备发送,实现音频播放。其中,电子设备与播放设备通过蓝牙通信连接。
由此可见,在第一处理器将第一待解码数据传送给第二处理器后,第一处理器可以进入休眠状态。在第二处理器完成对第一待解码数据的处理之后,第二处理器可以通过第三处理器实现第一编码数据的转发,即将第二处理器根据第一待解码数据经处理得到的第一编码数据转发给蓝牙模块。之后由蓝牙模块将第一编码数据转换为第一 无线信号,并向电子设备外部的播放设备发送,实现音频播放。需要说明的是,第三处理器实现数据转发时产生的功耗,小于第一处理器处于工作状态时产生的功耗。因此,在第一处理器进入休眠状态后,在保证对第一待解码数据进行处理,得到第一编码数据,以及后续针对第一编码数据实现数据转发的过程中,该电子设备的整体功耗降低,从而解决第一处理器产生大量功耗的问题。
在一种实现方式中,在第一处理器进入休眠状态之后,在达到预设时间间隔时,第一处理器被唤醒。在第一处理器确定存在第二待解码数据时,第一处理器向第二处理器传送第二待解码数据,其中,所述第二待解码数据为待播放的音频数据。第二处理器接收并处理第二待解码数据得到第二编码数据,且将第二编码数据通过第三处理器发送给蓝牙模块。蓝牙模块将第二编码数据转换为第二无线信号,并向播放设备发送第二无线信号。其中,第二处理器处理第二待解码数据包括对第二待解码数据进行解码、音效后处理以及编码,得到第二编码数据。
为了确保音频数据的播放质量,保证音频数据的持续播放,在第一处理器进入休眠状态,且达到预设时间间隔时,第一处理器可以被唤醒。即在第一处理器中存在第二待解码数据时,能够保证第一处理器继续向第二处理器发送第二待解码数据,并在第一处理器完成第二待解码数据的传送之后,第一处理器继续进入休眠状态。与上述示例的实现方式类似,第二处理器采用处理第一待解码数据的方式,对第二待解码数据进行处理,并最终由蓝牙模块将第二待解码数据处理后得到的第二编码数据转换为第二无线信号,之后向播放设备发送第二无线信号。
由此可见,对于第一处理器而言,该第一处理器在工作状态与休眠状态之间切换。其中,在第一处理器处于休眠状态时,能够有效节省电子设备产生的功耗,而在第一处理器处于工作状态时,又能够保证第一处理器的工作进度。
在一种实现方式中,在第一处理器向第二处理器传送第二待解码数据之后,第一处理器进入休眠状态。
在一种实现方式中,在第一处理器进入休眠状态之后,第一处理器接收到用于表示电子设备接收到来电请求的信号。之后第一处理器被唤醒。第一处理器停止音频播放,并保留当前音频播放的数据,并切换到通话语音程序。
需要说明的是,在第一处理器停止音频播放之后,为了保证通话结束后,第一处理器能够有效回复未完成播放的音频数据,因此,第一处理器可以保留当前音频播放的数据,并切换到通话语音程序,实现来电接听等功能。
在一种实现方式中,在第一处理器切换到通话语音程序之后,在通话结束后,第一处理器还原音频播放,并向第二处理器发送下一段待解码数据。即在通话结束后,第一处理器可以有效恢复音频播放过程,并采用上述示例性的实现方式中提出的处理方式,对下一段待解码数据进行处理。
在一种实现方式中,第一处理器可以为应用处理器。
在一种实现方式中,第二处理器可以为数字信号处理器。
在一种实现方式中,第三处理器可以为微处理器,比如,Sensor Hub。其中,第三处理器处于工作状态产生的功耗,小于第一处理器处于工作状态产生的功耗。
第二方面,本申请实施例提供一种电子设备。该电子设备包括第一处理器、第二 处理器、第三处理器和蓝牙模块。其中,第一处理器、第二处理器、第三处理器和蓝牙模块相配合,可以实现第一方面及其各种实现方式中任意一项所述的方法。
第三方面,本申请实施例提供一种电子设备。该电子设备的结构中包括显示屏,存储器,一个或多个处理器,多个应用程序,以及一个或多个程序;其中,所述一个或多个程序被存储在所述存储器中;所述一个或多个处理器在执行所述一个或多个程序时,使得该电子设备实现第一方面及其各种实现方式中任意一项所述的方法。
第四方面,本申请实施例提供一种可读存储介质,包括指令。当该指令在电子设备上运行时,使得该电子设备执行上述第一方面及其各种实现方式中任意一项所述的方法。
第五方面,本申请实施例提供一种计算机程序产品,该计算机程序产品包括软件代码,该软件代码用于执行上述第一方面及其各种实现方式中任意一项所述的方法。
附图说明
图1为本申请实施例提供的电子设备的结构示意图一;
图2为本申请实施例提供的电子设备的结构示意图二;
图3为本申请实施例提供的电子设备的结构示意图三;
图4为本申请实施例提供的蓝牙播放的方法交互图;
图5为本申请实施例提供的蓝牙播放的方法流程图;
图6为本申请实施例提供的电子设备的结构示意图四;
图7为本申请实施例提供的电子设备的结构示意图五。
具体实施方式
本申请实施例可以用于一种电子设备,该电子设备可以包括笔记本电脑、智能手机、虚拟现实(Virtual Reality,VR)设备、增强现实技术(Augmented Reality,AR)、车载设备、智能可穿戴设备等设备。该电子设备可以至少设置有显示屏、输入设备和处理器,以电子设备100为例,如图1所示,该电子设备100中包括处理器101、存储器102、摄像头103、RF电路104、音频电路105、扬声器106、话筒107、输入设备108、其他输入设备109、显示屏110、触控面板111、显示面板112、输出设备113、以及电源114等部件。其中,显示屏110至少由作为输入设备的触控面板111和作为输出设备的显示面板112组成。需要说明的是,图1中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置,在此不做限定。
下面结合图1对电子设备100的各个构成部件进行具体的介绍:
射频(Radio Frequency,RF)电路104可用于收发信息或通话过程中,信号的接收和发送,比如,若该电子设备100为手机,那么该电子设备100可以通过射频电路104,将基站发送的下行信息接收后,传送给处理器101处理;另外,将涉及上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,射频电路104还可以通过无线通信与网络和其他设备通信。该无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System for Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code  Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
存储器102可用于存储软件程序以及模块,处理器101通过运行存储在存储器102的软件程序以及模块,从而执行电子设备100的各种功能应用以及数据处理。存储器102可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如,声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备100的使用所创建的数据(比如,音频数据、视频数据等)等。此外,存储器102可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
其他输入设备109可用于接收输入的数字或字符信息,以及产生与电子设备100的用户设置以及功能控制有关的键信号输入。具体地,其他输入设备109可包括但不限于物理键盘、功能键(比如,音量控制按键、开关按键等)、轨迹球、鼠标、操作杆、光鼠(光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸)等中的一种或多种。其他输入设备109还可以包括电子设备100内置的传感器,比如,重力传感器、加速度传感器等,电子设备100还可以将传感器所检测到的参数作为输入数据。
显示屏110可用于显示由用户输入的信息或提供给用户的信息以及电子设备100的各种菜单,还可以接受用户输入。此外,显示面板112可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板112;触控面板111,也称为触摸屏、触敏屏等,可收集用户在其上或附近的接触或者非接触操作(比如,用户使用手指、触笔等任何适合的物体或附件在触控面板111上或在触控面板111附近的操作,也可以包括体感操作;该操作包括单点控制操作、多点控制操作等操作类型),并根据预先设定的程式驱动相应的连接装置。需要说明的是,触控面板111还可以包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位、姿势,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成处理器101能够处理的信息,再传送给处理器101,并且,还能接收处理器101发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板111,也可以采用未来发展的任何技术实现触控面板111。一般情况下,触控面板111可覆盖显示面板112,用户可以根据显示面板112显示的内容(该显示内容包括但不限于软键盘、虚拟鼠标、虚拟按键、图标等),在显示面板112上覆盖的触控面板111上或者附近进行操作,触控面板111检测到在其上或附近的操作后,传送给处理器101以确定用户输入,随后处理器101根据用户输入,在显示面板112上提供相应的视觉输出。虽然在图1中,触控面板111与显示面板112是作为两个独立的部件来实现电子设备100的输入和输出功能,但是在某些实施例中,可以将触控面板111与显示面板112集成,以实现电子设备100的输入和输出功能。
射频电路104、扬声器106,话筒107可提供用户与电子设备100之间的音频接口。音频电路105可将接收到的音频数据转换后的信号,传送到扬声器106,由扬声器106 转换为声音信号输出;另一方面,话筒107可以将收集的声音信号转换为信号,由音频电路105接收后转换为音频数据,再将音频数据输出至RF电路104以发送给诸如另一电子设备的设备,或者将音频数据输出至存储器102,以便处理器101结合存储器102中存储的内容进行进一步的处理。另外,摄像头103可以实时采集图像帧,并传送给处理器101处理,并将处理后的结果存储至存储器102和/或将处理后的结果通过显示面板112呈现给用户。
处理器101是电子设备100的控制中心,利用各种接口和线路连接整个电子设备100的各个部分,通过运行或执行存储在存储器102内的软件程序和/或模块,以及调用存储在存储器102内的数据,执行电子设备100的各种功能和处理数据,从而对电子设备100进行整体监控。需要说明的是,处理器101可以包括一个或多个处理单元;处理器101还可以集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面(User Interface,UI)和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器101中。
电子设备100还可以包括给各个部件供电的电源114(比如,电池),在本申请实施例中,电源114可以通过电源管理系统与处理器101逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。
在本申请实施例中,电子设备100还可以包括数字信号处理器115、微处理器116和蓝牙芯片117。其中,处理器101可以将待解码数据传送给信号处理器115进行诸如解码、音效后处理等操作,之后信号处理器可以将经过处理后得到的数据传送给处理器101或是微处理器116进行处理。在处理器101或是微处理器116完成对数据的处理过程之后,可以将处理后的数据传送给蓝牙芯片117,以使蓝牙芯片117将接收到的数据转换成无线信号发送,以实现电子设备100的蓝牙播放功能。其中,音效后处理指的是,对完成解码后的数据进行诸如音频风格的改变、增加音频特效等方式的处理。
此外,图1中还存在未示出的部件,在此不予赘述。
下面以电子设备100为手机为例,对本申请实施例提供的技术方案进行阐述。
如图2所示,为本申请实施例提供的一种示例性的手机结构示意图。在该手机中,包括应用处理器201(即第一处理器的一种实现方式)、数字信号处理器202(即第二处理器的一种实现方式)、Sensor Hub203(即第三处理器的一种实现方式)和蓝牙芯片204(即蓝牙模块的一种实现方式)。其中,应用处理器201为图1中处理器101的一种实现方式,数字信号处理器202为图1中的数字信号处理器115,Sensor Hub203为图1中微处理器116的一种实现方式,蓝牙芯片204为图1中的蓝牙芯片117。
其中,Sensor Hub203可以用于管理手机中的传感器,比如,重力传感器、加速度传感器和红外传感器等传感器中的一项或是多项,具体可以用于访问传感器采集到的数据,或是监控传感器的工作状态等,在此对于Sensor Hub203在手机中实现的功能不予限定。
在本申请实施例的一个实现方式中,运行在应用处理器201中的蓝牙协议栈中的蓝牙音频传输协议(Advanced Audio Distribution Profile,A2DP)可以镜像到数字信号处理器202中。也就意味着,完整的蓝牙协议栈依旧运行在应用处理器201中, 对于手机而言,在手机中运行着两份蓝牙音频传输协议,一份在原有的位于应用处理器201的蓝牙协议中,即运行在应用处理器201中,另一份运行在数字信号处理器202中。需要说明的是,本申请以音乐通过蓝牙播放为例进行说明,其中,音乐可以被替换为任意其它的音频数据。在音乐通过蓝牙播放的过程中,蓝牙音频传输协议可以用于基于蓝牙通信情况下的音频数据的传送,比如可以应用于蓝牙耳机、蓝牙音箱等电子设备外部的播放设备。
在本申请实施例中,对于需要数字信号处理器202进行解码的待解码数据的处理过程而言,都可以采用本申请实施例提供的实现方式。其中,需要数字信号处理器202进行解码的待解码数据包括压缩格式的数据,比如,格式为MP3的音频数据,例如MP3格式的音乐等。
如图2所示,在手机已经与诸如耳机等播放设备建立蓝牙连接时,在手机开始播放音乐或是正在播放音乐的过程中,以音乐的格式为MP3为例,应用处理器201将MP3待解码数据传送给数字信号处理器202。数字信号处理器202解码应用处理器201发送的MP3待解码数据,即将接收到的原始数据经过解码后,得到脉冲编码调制(Pulse Code Modulation,PCM)数据。之后数字信号处理器202对脉冲编码调制数据进行音效后处理,并通过蓝牙音频传输协议对经过音效后处理器得到的数据进行子带编码(Sub Band Code,SBC)处理,得到子带编码数据。数字信号处理器202通过数字信号处理器202与Sensor Hub203之间的传输通路,以及Sensor Hub203与蓝牙芯片204之间的传输通路,将得到的子带编码数据经由Sensor Hub203转发给蓝牙芯片204。蓝牙芯片204对子带编码数据进行数据转换,以得到无线信号,并通过蓝牙芯片204传送给与手机建立蓝牙连接的播放设备。
在一种实现方式中,数字信号处理器202还可以选择通过其他用于实现将数字信号处理器202的数据传送给蓝牙芯片204的传输通路,将子带编码数据从数字信号处理器202经过一次或是多次转发,传送给蓝牙芯片204,而不限于上述通过Sensor Hub203实现子带编码数据转发的实现方式。在另一种实现方式中,在数字信号处理器202与蓝牙芯片204之间存在传输通路的情况下,数字信号处理器202可以将经过蓝牙音频传输协议处理后得到的子带编码数据传送给蓝牙芯片204,而无需额外经过诸如Sensor Hub203等其他设备的转发。
在音乐通过蓝牙播放的过程中,应用处理器将待解码数据传送给数字信号处理器之后,就可以进入休眠状态,后续由数字信号处理器对待解码数据进行解码、音效后处理、子带编码等操作,之后经过Sensor Hub转发给蓝牙芯片,以使蓝牙芯片输出无线信号,实现音乐的蓝牙播放。需要说明的是,在应用处理器进入休眠状态后,应用处理器产生的功耗会大大降低。在应用处理器中存在需要后续由应用处理器中运行的蓝牙协议栈处理的待解码数据时,在应用处理器将该待解码数据传送给数字信号处理器后,应用处理器仍然处于工作状态,且在应用处理器接收到数字信号处理器传送的解码后的数据后,会对接收到的数据进行子带编码,并通过蓝牙芯片转换成无线信号输出,以实现除音乐以外,诸如电话等内容的蓝牙播放过程。
其中,应用处理器处于休眠状态,指的是应用处理器当前处于非工作状态。比如,在一种实现方式中,手机处于锁屏或是黑屏状态时,手机中可以未运行着需要应用处 理器执行的程序,此时应用处理器处于休眠状态。在应用处理器中存在需要应用处理器发送或是处理的数据时,应用处理器可以被唤醒并进入工作状态。比如,在一种实现方式中,在手机处于锁屏或是黑屏状态后,手机接收到来电,即以该手机作为被叫设备,其他诸如手机等具备通话呼叫能力的电子设备作为主叫设备,发起的通话过程,作为被叫设备的手机会因响应该来电而使应用处理器从休眠状态被唤醒,以进入工作状态。
在一种实现方式中,在手机通过蓝牙播放音乐的过程,应用处理器完成待解码数据的传送过程后,应用处理器进入休眠状态,以减少应用处理器产生的功耗。比如,待播放的MP3格式的音乐包括多段待解码数据,该多段待解码数据按照音乐播放所需的解码顺序,可以由应用处理器依次发送给数字信号处理器。例如,该MP3格式的音乐包括3段待解码数据,分别为第一待解码数据、第二待解码数据和第三待解码数据。应用处理器将第一待解码数据传送给数字信号处理器,并由数字信号处理器对第一待解码数据进行解码、音效后处理及子带编码操作。
考虑到应用处理器会按照一定时间间隔(即预设时间间隔)周期性完成这3段待解码数据的发送,而每段待解码数据的发送时长往往小于两段待解码数据的传送间隔,因此,在应用处理器完成第一待解码数据的传送过程后,该应用处理器可以进入休眠状态,直至到达第二待解码数据的传送时间时,该应用处理器被唤醒,并进行第二待解码数据的传送,随后应用处理器再次进入休眠状态,并在到达下一段待解码数据的传送时间时,再次被唤醒,直至应用处理器完成这3段待解码数据的发送;然后应用处理器可以再进入休眠状态。
比如,预先设置应用处理器传送该音乐的时间间隔为100毫秒(ms),该应用处理器完成每段待解码数据的传送需要50毫秒。在应用处理器完成第一待解码数据的传送之后,该应用处理器进入休眠状态,休眠50毫秒(即传送该音乐的时间间隔减去传送每段待解码数据占用的时长,100毫秒-50毫秒),之后被唤醒,完成第二待解码数据的传送之后,该应用处理器再次进入休眠状态,休眠50毫秒,之后再次被唤醒,并完成第三待解码数据的传送。
其中,上述待解码数据进行传送的时间间隔(即100毫秒),以及每段待解码数据传送占用的时长(即50毫秒)为一种示例性描述,不作为对本申请实施例的限定,还可以设置为其他取值。需要说明的是,上述时间间隔大于每段待解码数据传送占用的时长。在本申请实施例中,每段待解码数据传送占据的时长可以完全相同、部分相同或是完全不同,在此不予限定。同样的,每两段需要相邻传送的待解码数据之间进行传送的时间间隔也可以设置为完全相同、部分相同或是完全不同,在此不予限定。也就意味着,只要保证第一待解码数据传送占用的时长小于第一待解码数据与第二待解码数据进行传送的时间间隔即可。
需要说明的是,在本申请实施例中,考虑到第一待解码数据传送占用的时长等于第一待解码数据与第二待解码数据进行传送的时间间隔时,不存在应用处理器进入休眠状态的情况,因此,对于该情况可以采用现有技术中提供的蓝牙播放音乐的方式。
由此可见,对于应用处理器而言,在应用处理器通过蓝牙实现音乐播放的过程中,应用处理器的工作状态可以存在频繁的变化,即应用处理器的状态可以在工作状态与 休眠状态之间进行切换,且每次应用处理器进入休眠状态后,都可以有效节省功耗。
对于应用处理器除了通过蓝牙实现音乐播放,还需要实现其他业务的过程而言,该应用处理器可以利用上述蓝牙实现音乐播放所节省出的时间(即应用处理器可以进入休眠状态的时长),完成其他业务的执行,从而将应用处理器节省的资源应用到其他业务中,以提升应用处理器的工作效率,利用应用处理器有限的资源实现更多业务处理过程。
在手机需要将播放的音乐切换到另一首音乐,或是在手机接收到来自其他设备的来电,且用户选择接听该来电时,由于播放设备与手机仍处于蓝牙连接状态,而当前手机调用的功能需要应用处理器中运行的蓝牙协议栈的参数,因此,应用处理器可以被唤醒并进入工作状态。
由此可见,对于通过蓝牙播放音乐的过程而言,由于解码后的数据可以由数字信号处理器中运行的蓝牙音频传输协议进行处理,而无需将解码后的数据传送给应用处理器中的蓝牙协议栈进行处理,因此,在数字信号处理器实现待解码数据的解码、音效后处理以及采用蓝牙音频传输协议对解码后数据处理的过程中,应用处理器可以处于休眠状态,从而达到减少应用处理器功耗的效果。另外,Sensor Hub实现数据转发虽然会产生功耗,但所产生的功耗小于应用处理器正常工作过程中带来的功耗,因此,通过数字信号处理器实现子带编码过程,并通过Sensor Hub实现子带编码数据的转发,能够有效节省手机的功耗。
在手机已经与诸如耳机等播放设备建立蓝牙连接时,在手机从一首音乐的播放过程切换至另一首音乐进行播放的过程中,或是在暂停当前音乐的播放过程时候,或是在手机通过蓝牙播放除音乐以外的内容时,以蓝牙通话业务为例,应用处理器201将待解码数据传送给数字信号处理器202。数字信号处理器202对接收到的待解码数据进行解码,并选择性对完成解码的数据进行音效后处理,之后将处理后得到的数据或是解码后得到的数据传送给应用处理器201。手机通过应用处理器201中运行的蓝牙协议栈,对数字信号处理器202传送的数据进行子带编码处理,得到子带编码数据。之后应用处理器201将子带编码数据传送给蓝牙芯片204,以使蓝牙芯片204将子带编码数据转换为无线信号,传送给与手机建立蓝牙连接的播放设备。
由此可见,对于蓝牙芯片而言,蓝牙芯片可以接收来自于应用处理器或是Sensor Hub发送的子带编码数据,或者,在蓝牙芯片与数字信号处理器之间存在传输通路时,蓝牙芯片可以接收来自于应用处理器或是数字信号处理器发送的子带编码数据。在本申请实施例中,对于蓝牙芯片可以接收的两路或多路数据的来源不予限定。
需要说明的是,在数字信号处理器的内存存在足够的控件可被利用时,应用处理器还可以将用于手机从一首音乐的播放过程切换至另一首音乐进行播放的过程所涉及的蓝牙协议、在暂停当前音乐的播放过程所涉及的蓝牙协议,以及在手机通过蓝牙播放除音乐以外的内容所涉及的蓝牙协议中的一项或是多项,拷贝到数字信号处理器中,这样也可以保证应用处理器在上述实现过程中进入休眠状态,以节省手机的功耗。
在本申请实施例中,以应用处理器将蓝牙音频传输协议作为拷贝到数字信号处理器的蓝牙协议为例进行阐述,但不限于将除该蓝牙音频传输协议以外的蓝牙协议拷贝到数字信号处理器的情况,也不限于将该蓝牙音频传输协议以及其他蓝牙协议拷贝到 数字信号处理器的情况。需要说明的是,对于拷贝到数字信号处理器的协议等内容,可以为数字信号处理器存储至内存中的内容。
以蓝牙芯片可以接收来自于应用处理器或是Sensor Hub发送的子带编码数据为例,如图3所示,为蓝牙芯片204、应用处理器201以及Sensor Hub203之间的一种示例性的连接关系示意图。即在手机中还包括接口电路205和数据选择器(multiplexer,MUX)206。
应用处理器201与Sensor Hub203均通过接口电路205,与数据选择器206相连。即应用处理器201可以通过接口电路205向数据选择器206发送数据,同样的,Sensor Hub203可以通过接口电路205向数据选择器206发送数据。对于数据选择器206而言,数据选择器206可以分别接收来自于应用处理器201和来自于Sensor Hub203的子带编码数据,并通过数据选择器206将应用处理器201或是Sensor Hub203传送的子带编码数据,传送给蓝牙芯片204。
考虑到蓝牙芯片204可以接收一路数据,而在本申请实施例的一种实现方式中,蓝牙芯片204需要接收应用处理器201传送的数据,以及Sensor Hub203传送的数据,因此,通过数据选择器206将两路数据转换为一路数据,传送给蓝牙芯片204。也就意味着,在数据传输过程中,数据选择器206在不同时刻,可以向蓝牙芯片204传输不同来源的子带编码数据,供蓝牙芯片204实现子带编码数据到无线信号的转换,以及后续无线信号的输出。
在本申请实施例中,数据选择器206可以受应用处理器201的控制。即在数据选择器206接收到应用处理器201传送的数据时,数据选择器206将应用处理器201传送的数据转发给蓝牙芯片204。而在数据选择器206未接收到应用处理器201传送的数据,且接收到Sensor Hub203传送的数据时,数据选择器206将Sensor Hub203传送的数据转发给蓝牙芯片204。由此可见,在本申请实施例中,数据选择器206可以将多路输入的数据转为一路数据输出,即相当于一个开关电路,根据应用处理器201的控制,选择性向蓝牙芯片204输入不同来源的数据,以确保蓝牙芯片204保持一路输入、一路输出的情况下,使蓝牙芯片204能够处理两路数据源发送的数据。
在本申请实施例中,数据选择器206相当于一个多路复用电路,应用处理器201或是Sensor Hub203在需要向蓝牙芯片204传输数据时,可以向多路复用电路申请访问权限,即访问蓝牙芯片204的权限,也就是向蓝牙芯片204传送子带编码数据的权限。考虑到在除音乐播放以外的蓝牙功能中,都需要应用处理器中运行的蓝牙协议栈实现子带编码,因此,在本申请实施例中,相较于应用处理器201而言,Sensor Hub203具有较低的访问权限。即应用处理器201向蓝牙芯片204传送数据的权限,高于Sensor Hub203向蓝牙芯片204传输数据的权限。因此,在应用处理器通过接口电路205向数据选择器206传送数据时,数据选择器206确定应用处理器当前申请向蓝牙芯片204传输数据的权限,并赋予应用处理器201该访问权限。也就意味着,即便Sensor Hub203通过接口电路205,借助数据选择器206向蓝牙芯片204传送数据,此时数据选择器206也会停止将Sensor Hub203传送的数据发送给蓝牙芯片204,而是将应用处理器201传送的数据转发给蓝牙芯片204进行处理。即数据选择器206混合两路输入,根据应用处理器201的控制,选择性关闭两路输入中的一路,以确保蓝牙芯片204的一 路输入。
需要说明的是,在数字信号处理器与蓝牙芯片之间可以不通过Sensor Hub而实现数据传输的情况下,比如,数字信号处理器与蓝牙芯片之间存在数据传输通路,那么图3中,通过接口电路205与数据选择器206相连的部件为应用处理器201和数字信号处理器202。即图3示出的部件连接关系,为本申请实施例一种示例性的实现方式,并不作为对本申请实施例的过多限定。
下面结合具体的示例,对本申请实施例提供的蓝牙播放音频数据的方案进行进一步阐述,其中音频数据以音乐为例。
如图4所示,为手机通过蓝牙播放音乐的方法流程图。该方法包括S301至S315。
S301、应用处理器检测到播放音乐的请求,且手机与外部的蓝牙播放设备已通过蓝牙连接。
S302、应用处理器拷贝编码算法、音效后处理程序,以及蓝牙音频传输协议到数字信号处理器。
其中,音效后处理程序用于对解码后数据进行音效后处理;编码算法用于对完成音效后处理的数据进行子带编码,以得到子带编码数据。
需要说明的是,数字信号处理器可以完成待解码数据的解码过程、音效后处理过程,以及子带编码过程等。对于音效后处理程序已经部署在数字信号处理器的情况而言,应用处理器可以将用于实现子带编码的编码算法和用于音频数据传输的蓝牙音频传输协议拷贝到数字信号处理器。也就意味着,应用处理器需要拷贝的内容包括但不限于S302中提及的内容,还可以包括更多或是更少的内容,具体可以依据应用处理器、数字信号处理器原有的功能,以及需要应用处理器和数字信号处理器实现的功能而定,在此不予限定。
S303、数字信号处理器将所述编码算法、音效后处理程序,以及蓝牙音频传输协议存储到内存中。
需要说明的是,上述S302与S303还可以实现为:应用处理器拷贝编码算法、音效后处理程序,以及蓝牙音频传输协议到数字信号处理器的内存中。
S304、应用处理器将待解码数据传送给数字信号处理器。其中,所述待解码数据为待播放的音频数据。
S305、应用处理器进入休眠状态。
S306、数字信号处理器接收应用处理器发送的待解码数据,并解码待解码数据,对解码后数据进行音效后处理、子带编码,得到子带编码数据。
S307、数字信号处理器将得到的子带编码数据存储在数字信号处理器的内存中。
S308、Sensor Hub从数字信号处理器的内存中读取子带编码数据。
需要说明的是,数字信号处理器可以通过向Sensor Hub发送数据的方式,将存储在内存中的子带编码数据通过Sensor Hub传送给蓝牙芯片。也就意味着,从数字信号处理器的内存中读取子带编码数据的过程,可以由Sensor Hub触发,还可以由数字信号处理器主动执行,即在数字信号处理器完成子带编码过程之后,将得到的子带编码数据转发给Sensor Hub。
S309、Sensor Hub将子带编码数据发送给蓝牙芯片。
S310、蓝牙芯片接收Sensor Hub发送的子带编码数据。
S311、蓝牙芯片对子带编码数据进行数据转换,得到无线信号。
S312、蓝牙芯片向手机外部的蓝牙播放设备发送无线信号。
S313、在应用处理器达到传送下一段待解码数据的时间间隔时,应用处理器被唤醒。
对于多段待解码数据需要应用处理器传送到数字信号处理器的情况而言,在应用处理器进入休眠状态后,应用处理器达到预设的时间间隔后,应用处理器被唤醒,并执行S314。
需要说明的是,在一种实现方式中,手机中可以设置有诸如计时器等具有计时功能的部件,以完成时间间隔的计数过程,并在达到设定的时间间隔时,通过向应用处理器传送信号以达到唤醒应用处理器的效果。或者,应用处理器在进入休眠状态后,会按照一定周期自动唤醒,该一定周期可以预先设置,即上述时间间隔的时长。上述两种情况为本申请实施例的示例性实现方式,不作为对本申请的限定。
S314、应用处理器判断是否不再通过外部蓝牙播放设备进行音频播放。当应用处理器确定手机不再通过外部蓝牙播放设备进行音频播放时,执行S315;当应用处理器确定手机仍通过外部蓝牙播放设备进行音频播放时,循环执行S304至S314。
在一种实现方式中,对于一首音乐而言,该音乐可以为一段待解码数据,也可以为多段待解码数据。在该音乐包括至少两段待解码数据时,每段待解码数据都可以按照S304至S313实现数据处理,直至该音乐的所有待解码数据都转换为无线信号,或是手机播放该音乐的过程被终止后,结束本次处理流程。
也就意味着,数字信号处理器可以将一首音乐结束播放作为执行S315的触发条件,或者,数字信号处理器可以在应用处理器确定手机不再通过外部蓝牙播放设备进行音频播放时,再执行S315。其中,该音频播放包括但不限于音乐播放。
S315、数字信号处理器释放内存里的编码算法、音效后处理程序,以及蓝牙音频传输协议。
为了减少对数字信号处理器的内存的占用,在本申请实施例的一个实现方式中,在应用处理器确定手机不再通过外部蓝牙播放设备进行音频播放时,数字信号处理器在一段时间内不再接收到应用处理器发送的待解码数据,则数字信号处理器释放内存中存储的解码算法、音效后处理程序,以及蓝牙音频传输协议。
需要说明的是,在上述通过蓝牙播放音乐的过程中,手机会存在因为电话等原因而导致音乐播放过程被打断的情况,而对于这种情况而言,可以采用如图5所示的实现方式。即在图4的S305执行后,应用处理器可以在手机接收到来电请求后被唤醒。
如图5所示,为手机通过蓝牙播放音乐的过程中,手机接收到来电后的方法流程图。该方法包括S401至S404。
S401、应用处理器接收到用于表示手机接收到来电请求的信号。
在手机接收到来电请求时,手机的调制解调器(modem)可以向应用处理器发出信号,以表示手机接收到来电请求。此时,应用处理器被调制解调器唤醒。其中,该来电可以为语音来电,也可以为视频来电。
S402、应用处理器暂停音乐播放,并保留当前音乐播放的现场数据。
在手机与播放设备之间通过蓝牙连接,应用处理器中存在需要处理的通话数据时,应用处理器停止向数字信号处理器发送音乐的待解码数据。并且,应用处理器将还未发送给数字信号处理器的音乐的待解码数据存储在应用处理器的内存中。
S403、应用处理器切换到通话语音程序。
对于应用处理器而言,在应用处理器停止向数字信号处理器发送音乐的待解码数据后,数字信号处理器停止对待解码数据进行的解码操作。此时,应用处理器可以通过调用通话语音程序来实现基于蓝牙所实现的通话过程。需要说明的是,在手机与播放设备之间蓝牙连接时实现通话过程的方式可以参考现有技术,比如,可以由手机的调制解调器及手机中其他部件完成该来电请求的响应等,在此不予赘述。
S404、当应用处理器确定通话过程结束时,应用处理器还原音乐播放现场,继续播放音乐。
在一种实现方式中,在用户主动结束本次通话过程时,应用处理器可以检测到用户触碰结束本次通话过程的功能键,用户触碰该功能键的操作可以作为触发应用处理器还原音乐播放现场的信号。
在另一种实现方式中,在对端用户主动结束本次通话过程时,手机的调制解调器可以向应用处理器发送信号,以表示本次通话过程结束,以触发应用处理器还原音乐播放现场。
需要说明的是,应用处理器确定通话过程是否结束的方式包括但不限于上述例举的两种情况,在此对于应用处理器的确定方式不予限定。
在应用处理器确定手机中断通话时,应用处理器可以自动还原音乐播放现场,即继续将未传送给数字信号处理器的待解码数据传送给数字信号处理器,以继续通过蓝牙播放音乐,即继续执行图4所示的S304至S315所示的流程。
由此可见,对于手机而言,在手机通过蓝牙播放音乐的过程中,数字信号处理器完成子带编码过程,而应用处理器在完成待解码数据的传送之后,就可以进入休眠状态。在手机通过蓝牙进行通话等业务时,解码后数据的子带编码过程仍由应用处理器完成。
本申请实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
如图6所示,为上述实施例中所涉及的电子设备的一种可能的结构示意图。电子设备50包括:第一处理模块51、第二处理模块52、第三处理模块53和蓝牙模块54。
其中,第一处理模块51用于支持电子设备50实现诸如编码算法(比如,子带编码算法)、音效后处理程序以及蓝牙音频传输协议等内容的拷贝,即将上述例举的内容拷贝到第二处理模块52中。第一处理模块51用于支持电子设备50向第二处理模块52传送第一待解码数据(比如,电子设备50即将播放的音频数据中的第一段待解码数据,或是电子设备50正在播放的音频数据中的下一段需要播放的待解码数据等)。在完成上述待解码数据的传送后,第一处理模块51进入休眠状态。
第二处理模块52用于支持电子设备50接收第一处理模块51传送的第一待解码数据,并对第一待解码数据进行解码、音效后处理以及编码,得到第一编码数据(比如,根据第一待解码数据进行处理后得到的第一子带编码数据)。第二处理模块52用于支持电子设备50将第一编码数据通过第三处理模块53发送给蓝牙模块54。
蓝牙模块54用于支持电子设备50将第一编码数据转换为第一无线信号,并向电子设备50外部的播放设备发送所述第一无线信号,以实现音频播放。
在一种实现方式中,在第一处理模块51进入休眠状态之后,在达到预设时间间隔时,第一处理模块51被唤醒。在第一处理模块51确定存在第二待解码数据时,第一处理模块51用于支持电子设备50向第二处理模块52传送第二待解码数据(比如,在音频播放过程中,在第一无线信号后需要播放的第二无线信号对应的待解码数据)。第二处理模块52用于支持电子设备50接收并处理第二待解码数据得到第二编码数据,且将第二编码数据通过第三处理模块53发送给蓝牙模块54。蓝牙模块54用于支持电子设备50将第二编码数据转换为第二无线信号,并向播放设备发送第二无线信号。其中,第二处理模块52处理第二待解码数据包括对第二待解码数据进行解码、音效后处理以及编码,得到所述第二编码数据。
在一种实现方式中,在第一处理模块51向第二处理模块52传送第二待解码数据之后,第二处理模块52进入休眠状态。
在一种实现方式中,在第一处理模块51进入休眠状态之后,第一处理模块51用于支持电子设备50接收到用于表示电子设备50接收到来电请求的信号。第一处理模块51被唤醒。第一处理模块51用于支持电子设备50停止音频播放,并保留当前音频播放的数据,之后第一处理模块51切换到通话语音程序。
在一种实现方式中,在第一处理模块51切换到通话语音程序之后,第一处理模块51用于支持电子设备50在通话结束后,还原所述音频播放,并向第二处理模块52发送下一段待解码数据。
在本申请实施例的一个实现方式中,电子设备50还可以包括:通信模块55和存储模块56。其中,通信模块55用于支持电子设备50中第一处理模块51、第二处理模块52、第三处理模块53、蓝牙模块54、存储模块56中任意两个模块之间的数据交互,和/或支持电子设备50与诸如电子设备50外部的播放设备等其他设备之间的通信。存储模块56用于支持电子设备50存储电子设备的程序代码和数据。
需要说明的是,上述各个处理模块可以实现为处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。比如,在本申请实施例中,第一处理模块51可以实现为应用处理器;第二处理模块52可以实现为数字信号处理器;第三处理模块53可以实现为诸如Sensor Hub等微处理器。蓝牙模块54可以实现为蓝牙芯片。通信模块55可以实现为收发器、收发电路 或通信接口等。存储模块56可以实现为存储器。
如图7所示,电子设备60包括:应用处理器61、数字信号处理器62、微处理器63、蓝牙芯片64、收发器65、存储器66,以及总线67。其中,应用处理器61、数字信号处理器62、微处理器63、蓝牙芯片64、收发器65和存储器66可以通过总线67相互连接;总线67可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
结合本申请公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、电可擦可编程只读存储器(Electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以部署在同一设备中,或者,处理器和存储介质也可以作为分立组件部署在于不同的设备中。
本申请实施例提供一种可读存储介质。该可读存储介质中存储有指令,当指令在电子设备上运行时,使得电子设备执行上述方法实施例中的任意一项。
本申请实施例提供一种计算机程序产品。该计算机程序产品包括软件代码,该软件代码用于执行上述方法实施例中的任意一项。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (19)

  1. 一种蓝牙播放方法,其特征在于,所述方法用于一种电子设备,所述电子设备包括第一处理器、第二处理器、第三处理器和蓝牙模块,其中,所述第一处理器与所述第二处理器通信连接,所述第二处理器与所述第三处理器通信连接,所述第三处理器与所述蓝牙模块通信连接;
    所述方法包括:
    所述第一处理器拷贝编码算法、音效后处理程序以及蓝牙音频传输协议到所述第二处理器;
    所述第一处理器向所述第二处理器传送第一待解码数据,所述第一待解码数据为待播放的音频数据;
    所述第一处理器进入休眠状态;
    所述第二处理器接收所述第一处理器传送的所述第一待解码数据,并对所述第一待解码数据进行解码、音效后处理以及编码,得到第一编码数据;
    所述第二处理器将所述第一编码数据通过所述第三处理器发送给所述蓝牙模块;
    所述蓝牙模块将所述第一编码数据转换为第一无线信号,并向所述电子设备外部的播放设备发送所述第一无线信号,实现音频播放;
    其中,所述电子设备与所述播放设备通过蓝牙通信连接。
  2. 根据权利要求1所述的方法,其特征在于,在所述第一处理器进入休眠状态之后,所述方法包括:
    在达到预设时间间隔时,所述第一处理器被唤醒;
    在所述第一处理器确定存在第二待解码数据时,所述第一处理器向所述第二处理器传送所述第二待解码数据,所述第二待解码数据为待播放的音频数据;
    所述第二处理器接收并处理所述第二待解码数据得到第二编码数据,且将所述第二编码数据通过所述第三处理器发送给所述蓝牙模块;
    所述蓝牙模块将所述第二编码数据转换为第二无线信号,并向所述播放设备发送所述第二无线信号;
    其中,所述第二处理器处理所述第二待解码数据包括对所述第二待解码数据进行解码、音效后处理以及编码,得到所述第二编码数据。
  3. 根据权利要求2所述的方法,其特征在于,在所述第一处理器向所述第二处理器传送所述第二待解码数据之后,所述方法还包括:
    所述第一处理器进入所述休眠状态。
  4. 根据权利要求1至3中任意一项所述的方法,其特征在于,在所述第一处理器进入休眠状态之后,所述方法还包括:
    所述第一处理器接收到用于表示所述电子设备接收到来电请求的信号;
    所述第一处理器被唤醒;
    所述第一处理器停止音频播放,并保留当前音频播放的数据;
    所述第一处理器切换到通话语音程序。
  5. 根据权利要求4所述的方法,其特征在于,在所述第一处理器切换到通话语音程序之后,所述方法还包括:
    在通话结束后,所述第一处理器还原所述音频播放,并向所述第二处理器发送下一段待解码数据。
  6. 根据权利要求1至5中任意一项所述的方法,其特征在于,所述第一处理器为应用处理器。
  7. 根据权利要求1至6中任意一项所述的方法,其特征在于,所述第二处理器为数字信号处理器。
  8. 根据权利要求1至7中任意一项所述的方法,其特征在于,所述第三处理器为微处理器。
  9. 一种电子设备,其特征在于,所述电子设备包括第一处理器、第二处理器、第三处理器和蓝牙模块,其中,所述第一处理器与所述第二处理器通信连接,所述第二处理器与所述第三处理器通信连接,所述第三处理器与所述蓝牙模块通信连接;
    所述第一处理器,用于拷贝编码算法、音效后处理程序以及蓝牙音频传输协议到所述第二处理器;
    所述第一处理器,用于向所述第二处理器传送第一待解码数据,所述第一待解码数据为待播放的音频数据;
    所述第一处理器,用于进入休眠状态;
    所述第二处理器,用于接收所述第一处理器传送的所述第一待解码数据,并对所述第一待解码数据进行解码、音效后处理以及编码,得到第一编码数据;
    所述第二处理器,用于将所述第一编码数据通过所述第三处理器发送给所述蓝牙模块;
    所述蓝牙模块,用于将所述第一编码数据转换为第一无线信号,并向所述电子设备外部的播放设备发送所述第一无线信号,实现音频播放;
    其中,所述电子设备与所述播放设备通过蓝牙通信连接。
  10. 根据权利要求9所述的电子设备,其特征在于,在所述第一处理器进入休眠状态之后;
    所述第一处理器,用于在达到预设时间间隔时,被唤醒;
    所述第一处理器,用于在所述第一处理器确定存在第二待解码数据时,向所述第二处理器传送所述第二待解码数据,所述第二待解码数据为待播放的音频数据;
    所述第二处理器,用于接收并处理所述第二待解码数据得到第二编码数据,且将所述第二编码数据通过所述第三处理器发送给所述蓝牙模块;
    所述蓝牙模块,用于将所述第二编码数据转换为第二无线信号,并向所述播放设备发送所述第二无线信号;
    其中,所述第二处理器处理所述第二待解码数据包括对所述第二待解码数据进行解码、音效后处理以及编码,得到所述第二编码数据。
  11. 根据权利要求10所述的电子设备,其特征在于,在所述第一处理器向所述第二处理器传送所述第二待解码数据之后;
    所述第一处理器,用于进入所述休眠状态。
  12. 根据权利要求9至11中任意一项所述的电子设备,其特征在于,在所述第一处理器进入休眠状态之后;
    所述第一处理器,用于接收到用于表示所述电子设备接收到来电请求的信号;
    所述第一处理器,用于被唤醒;
    所述第一处理器,用于停止音频播放,并保留当前音频播放的数据;
    所述第一处理器,用于切换到通话语音程序。
  13. 根据权利要求12所述的电子设备,其特征在于,在所述第一处理器切换到通话语音程序之后;
    所述第一处理器,用于在通话结束后,还原所述音频播放,并向所述第二处理器发送下一段待解码数据。
  14. 根据权利要求9至13中任意一项所述的电子设备,其特征在于,所述第一处理器为应用处理器。
  15. 根据权利要求9至14中任意一项所述的电子设备,其特征在于,所述第二处理器为数字信号处理器。
  16. 根据权利要求9至15中任意一项所述的电子设备,其特征在于,所述第三处理器为微处理器。
  17. 一种电子设备,包括显示屏,存储器,一个或多个处理器,多个应用程序,以及一个或多个程序;其中,所述一个或多个程序被存储在所述存储器中;其特征在于,所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现如权利要求1至8中任意一项所述的方法。
  18. 一种可读存储介质,其特征在于,所述可读存储介质中存储有指令,当所述指令在电子设备上运行时,使得所述电子设备执行上述权利要求1至8中任意一项所述的方法。
  19. 一种计算机程序产品,其特征在于,所述计算机程序产品包括软件代码,所述软件代码用于执行上述权利要求1至8中任意一项所述的方法。
PCT/CN2018/083432 2018-04-04 2018-04-17 一种蓝牙播放方法及电子设备 WO2019192030A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/043,665 US11310646B2 (en) 2018-04-04 2018-04-17 Bluetooth-based playback method and electronic device
CN201880089136.0A CN111713141B (zh) 2018-04-04 2018-04-17 一种蓝牙播放方法及电子设备

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810301279.5 2018-04-04
CN201810301279 2018-04-04

Publications (1)

Publication Number Publication Date
WO2019192030A1 true WO2019192030A1 (zh) 2019-10-10

Family

ID=68099861

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/083432 WO2019192030A1 (zh) 2018-04-04 2018-04-17 一种蓝牙播放方法及电子设备

Country Status (3)

Country Link
US (1) US11310646B2 (zh)
CN (1) CN111713141B (zh)
WO (1) WO2019192030A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112825488A (zh) * 2019-11-21 2021-05-21 成都鼎桥通信技术有限公司 音频数据传输方法、装置及终端
EP4080920A4 (en) * 2020-01-14 2023-06-14 Honor Device Co., Ltd. WIRELESS COMMUNICATION METHOD AND DEVICE HAVING A WIRELESS COMMUNICATION FUNCTION
WO2024067645A1 (zh) * 2022-09-30 2024-04-04 华为技术有限公司 一种处理方法及相关装置

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210314768A1 (en) * 2020-04-01 2021-10-07 Google Llc Bluetooth multipoint algorithm and private notifications
CN114531449A (zh) * 2020-10-31 2022-05-24 华为终端有限公司 数据同步方法及装置
CN113114852B (zh) * 2021-03-11 2022-04-15 厦门亿联网络技术股份有限公司 一种音频传输方法、耳机和基站
CN113242493A (zh) * 2021-03-31 2021-08-10 联想(北京)有限公司 一种处理方法及电子设备
CN115278612A (zh) * 2021-04-30 2022-11-01 华为技术有限公司 一种投音方法及计算机可读存储介质
CN114554582B (zh) * 2022-04-26 2023-03-21 杭州优智联科技有限公司 一种uwb系统进行测距的调度方法、设备、系统及介质
CN117336702A (zh) * 2022-06-23 2024-01-02 华为技术有限公司 蓝牙数据的处理方法、终端设备和可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014051411A1 (en) * 2012-09-28 2014-04-03 Samsung Electronics Co., Ltd. Low energy short range communication function operation method and apparatus of mobile terminal
CN104007977A (zh) * 2014-06-09 2014-08-27 威盛电子股份有限公司 电子装置及音频播放方法
CN105589336A (zh) * 2014-11-07 2016-05-18 三星电子株式会社 多处理器设备
CN106341571A (zh) * 2016-08-18 2017-01-18 深圳市金立通信设备有限公司 一种图像处理方法以及终端

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8654982B2 (en) * 2011-04-29 2014-02-18 Smsc Holdings S.A.R.L. Reducing power consumption in sink devices by having sinks receive only left audio channel or right audio channel
US10623014B2 (en) * 2011-06-27 2020-04-14 Syntropy Systems, Llc Apparatuses and methods for sample rate conversion
US9548813B2 (en) * 2012-09-04 2017-01-17 Universal Electronics Inc. System and method for provision of appliance control functionality to a smart device
CN103841493B (zh) * 2012-11-21 2017-04-12 宏碁股份有限公司 音频处理装置
KR102340127B1 (ko) * 2017-03-24 2021-12-16 삼성전자주식회사 복수의 외부 장치들로 오디오 데이터를 전송하는 방법 및 전자 장치
US10333763B1 (en) * 2018-06-18 2019-06-25 Futurewei Technologies, Inc. System and method for hybrid transmitter

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014051411A1 (en) * 2012-09-28 2014-04-03 Samsung Electronics Co., Ltd. Low energy short range communication function operation method and apparatus of mobile terminal
CN104007977A (zh) * 2014-06-09 2014-08-27 威盛电子股份有限公司 电子装置及音频播放方法
CN105589336A (zh) * 2014-11-07 2016-05-18 三星电子株式会社 多处理器设备
CN106341571A (zh) * 2016-08-18 2017-01-18 深圳市金立通信设备有限公司 一种图像处理方法以及终端

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112825488A (zh) * 2019-11-21 2021-05-21 成都鼎桥通信技术有限公司 音频数据传输方法、装置及终端
CN112825488B (zh) * 2019-11-21 2022-07-22 成都鼎桥通信技术有限公司 音频数据传输方法、装置及终端
EP4080920A4 (en) * 2020-01-14 2023-06-14 Honor Device Co., Ltd. WIRELESS COMMUNICATION METHOD AND DEVICE HAVING A WIRELESS COMMUNICATION FUNCTION
WO2024067645A1 (zh) * 2022-09-30 2024-04-04 华为技术有限公司 一种处理方法及相关装置

Also Published As

Publication number Publication date
CN111713141A (zh) 2020-09-25
US20210044952A1 (en) 2021-02-11
US11310646B2 (en) 2022-04-19
CN111713141B (zh) 2021-12-31

Similar Documents

Publication Publication Date Title
WO2019192030A1 (zh) 一种蓝牙播放方法及电子设备
CN108962240B (zh) 一种基于耳机的语音控制方法及系统
CN107562405B (zh) 音频播放控制方法、装置及存储介质和移动终端
WO2019062541A1 (zh) 一种实时数字音频信号混音的方法及装置
CN107835033A (zh) 天线调谐开关的控制方法、装置、终端设备及存储介质
EP3598727B1 (en) Message acquisition method and apparatus
WO2018049897A1 (zh) 数据备份方法及设备
WO2015035870A1 (zh) 多cpu调度方法及装置
WO2019011335A1 (zh) 一种移动终端及其控制方法和可读存储介质
WO2020007173A1 (zh) 通信连接建立方法及相关设备
WO2020007174A1 (zh) 通信连接建立方法及相关设备
WO2014078986A1 (zh) 一种终端及自动接听来电的方法
CN104240710B (zh) 一种信息传输的方法、系统及终端设备
WO2022042485A1 (zh) 近场通信模块的控制方法、装置及电子设备
WO2015078349A1 (zh) 麦克风收音状态的切换方法和装置
CN110730946B (zh) 移动终端的音量控制方法、装置及存储介质和移动终端
KR101876394B1 (ko) 단말기에 미디어 데이터를 재생하는 방법 및 장치
WO2017206903A1 (zh) 应用控制方法及相关设备
CN106909295B (zh) 应用程序的处理方法和终端
CN110989816A (zh) 应用的处理方法、装置以及存储介质
US20170064766A1 (en) Electronic apparatus
EP3499857B1 (en) Audio data processing method, terminal device, and storage medium
CN103069787A (zh) 响应于静音命令中断移动通信装置的组件的系统和方法
CN110191503B (zh) 音频播放方法、系统、存储介质及移动终端
WO2019076289A1 (zh) 降低电子设备的功耗的方法以及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18913255

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18913255

Country of ref document: EP

Kind code of ref document: A1