CN111107532B - Information processing method and device and electronic equipment - Google Patents
Information processing method and device and electronic equipment Download PDFInfo
- Publication number
- CN111107532B CN111107532B CN201911343539.6A CN201911343539A CN111107532B CN 111107532 B CN111107532 B CN 111107532B CN 201911343539 A CN201911343539 A CN 201911343539A CN 111107532 B CN111107532 B CN 111107532B
- Authority
- CN
- China
- Prior art keywords
- unit
- audio
- playing
- audio data
- bluetooth
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present disclosure provides an information processing method. The method comprises the steps of establishing communication connection between an audio playing unit of the electronic equipment and a Bluetooth unit, and playing external audio data by using the audio playing unit when the Bluetooth unit receives the external audio data. The electronic equipment comprises the Bluetooth unit, the audio playing unit and an internal audio processing unit, wherein the audio playing unit is set to comprise communication interfaces respectively connected with the Bluetooth unit and the internal audio processing unit. The disclosure also provides an information processing apparatus and an electronic device.
Description
Technical Field
The disclosure relates to an information processing method and device and an electronic device.
Background
In some electronic devices (e.g., personal computers), bluetooth units may access the operating system via the bluetooth protocol, thereby making the operating system accessible to the bluetooth unit. For example, the operating system may use a bluetooth unit to connect to a bluetooth headset, so that the user can listen to an audio playing program in the personal computer through the bluetooth headset to play audio.
However, in the related art, part of the operating system generally supports only the active Audio output device Audio Source service, and does not support the passive Audio input device Audio Sink service. For example, the operating system may support the playback of audio data generated internally in a personal computer, but not audio data passively input from an external electronic device. In this case, even if the user establishes a bluetooth connection between a mobile terminal (e.g., a mobile phone) and a computer through a bluetooth unit, music in the mobile phone cannot be played through a player of the computer by means of bluetooth communication. Therefore, users often need to buy a bluetooth speaker separately for playing mobile phone music, or need to configure a microprocessor separately in a personal computer, and use a player of the personal computer to play music in the mobile phone through the microprocessor.
Disclosure of Invention
One aspect of the present disclosure provides an information processing method. The method comprises the steps of establishing communication connection between an audio playing unit of the electronic equipment and a Bluetooth unit, and playing external audio data by using the audio playing unit when the Bluetooth unit receives the external audio data, wherein the electronic equipment comprises the Bluetooth unit, the audio playing unit and an internal audio processing unit, and the audio playing unit is set to comprise communication interfaces respectively connected with the Bluetooth unit and the internal audio processing unit.
Optionally, when the external audio data is received by the bluetooth unit, playing the external audio data by using the audio playing unit includes playing the external audio data by using the audio playing unit when the electronic device is in a standby mode and when the external audio data is received by the bluetooth unit.
Optionally, the method further includes first establishing a communication connection between the audio playing unit and the internal audio processing unit, then processing audio data from inside the electronic device by using the internal audio processing unit to obtain internal audio data to be played, and playing the internal audio data by using the audio playing unit.
Optionally, the method further includes controlling switching of communication connection between the audio playing unit and the bluetooth unit and between the audio playing unit and the internal audio processing unit by using a general purpose input output interface GPIO.
Optionally, the controlling, by using a general purpose input output interface GPIO, the switching of the communication connection between the audio playing unit and the bluetooth unit and the internal audio processing unit includes responding to the external audio data received by the bluetooth unit, switching to the communication connection between the audio playing unit and the bluetooth unit so as to play the external audio data by using the audio playing unit, and responding to an application program in the electronic device to play audio, switching to the communication connection between the audio playing unit and the internal audio processing unit so as to play the internal audio data from the application program by using the audio playing unit.
Another aspect of the present disclosure provides an information processing apparatus. The device comprises a first communication establishing module and a playing module. The first communication establishing module is used for establishing communication connection between an audio playing unit and a Bluetooth unit of the electronic equipment. The playing module is used for playing the external audio data by using the audio playing unit when the external audio data is received by the Bluetooth unit. The electronic equipment comprises the Bluetooth unit, the audio playing unit and an internal audio processing unit, wherein the audio playing unit is set to comprise communication interfaces respectively connected with the Bluetooth unit and the internal audio processing unit.
Optionally, the playing module is further configured to play the external audio data by using the audio playing unit when the electronic device is in a standby mode and the external audio data is received by the bluetooth unit.
Optionally, the apparatus further comprises a second communication establishing module and an internal audio processing module. The second communication establishing module is used for establishing the communication connection between the audio playing unit and the internal audio processing unit. The internal audio processing module is used for processing audio data from the inside of the electronic equipment by using the internal audio processing unit to obtain internal audio data to be played. The playing module is further configured to play the internal audio data by using the audio playing unit.
Optionally, the apparatus further includes a play control module. The playing control module is used for controlling the switching of the communication connection between the audio playing unit and the Bluetooth unit as well as the communication connection between the audio playing unit and the internal audio processing unit by using a general purpose input/output interface GPIO.
Another aspect of the present disclosure provides an electronic device. The electronic equipment comprises a Bluetooth unit, an internal audio processing unit, an audio playing unit, a storage unit and a processing unit. The Bluetooth unit is used for receiving external audio data. The internal audio processing unit is used for processing audio data from the inside of the electronic equipment. The audio playing unit comprises communication interfaces respectively connected with the Bluetooth unit and the internal audio processing unit. The storage unit has stored thereon one or more computer-executable instructions. The processing unit executes the instructions to implement the method as described above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
fig. 1 schematically shows a block diagram of an electronic device according to an embodiment of the present disclosure;
FIG. 2 schematically shows a flow diagram of an information processing method according to an embodiment of the present disclosure;
FIG. 3 schematically shows a flow chart of an information processing method according to another embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart of an information processing method according to yet another embodiment of the present disclosure;
fig. 5 schematically shows a flowchart for controlling switching of communication connections of an audio playback unit with a bluetooth unit and an internal audio processing unit in an information processing method according to still another embodiment of the present disclosure;
fig. 6 schematically shows a block diagram of an information processing apparatus according to an embodiment of the present disclosure; and
fig. 7 schematically shows a block diagram of an electronic device according to another embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks. The techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable storage medium having instructions stored thereon for use by or in connection with an instruction execution system.
The operating system of the electronic device in the related art generally supports only the active Audio output device Audio Source service, but not the passive Audio input device Audio Sink service. Therefore, when a user wants to play audio in a mobile terminal (e.g., a mobile phone) by means of an audio playing unit of the electronic device, it cannot be realized. For example, when a user wants to play music in a mobile phone by using a relatively powerful audio player in a personal computer, the related art product cannot meet the user's requirement.
The embodiment of the disclosure provides an information processing method and device and corresponding electronic equipment. The information processing method can be applied to electronic equipment. The method can include establishing a communication connection between the audio playing unit and the Bluetooth unit, and playing external audio data by using the audio playing unit when the Bluetooth unit receives the external audio data, wherein the electronic device comprises the Bluetooth unit, the audio playing unit and an internal audio processing unit, and the audio playing unit is configured to include communication interfaces respectively connected with the Bluetooth unit and the internal audio processing unit.
According to the information processing method and device and the corresponding electronic equipment, a user can play audio data in a mobile phone by using an audio playing unit in the electronic equipment after the equipment such as a mobile terminal (for example, the mobile phone) is connected with the electronic equipment through Bluetooth.
For example, according to the information processing method and apparatus and the corresponding electronic device in the embodiments of the present disclosure, a user may use the electronic device as a bluetooth speaker of a device with lower playing power, such as a mobile terminal, in some scenarios. In this way, more choices are provided for the user to play the audio of the mobile terminal, and the user experience is improved. For example, when a user needs to play audio data of the mobile terminal using an audio playing unit having power higher than that of an audio player of the mobile terminal, the user does not necessarily need to additionally purchase a separate bluetooth speaker, but can select to play the audio data using an audio playing unit of the electronic device (e.g., a personal computer) itself. Meanwhile, the audio playing unit of the equipment is reused, so that the purchasing cost is saved, and the experience of a user on sound is improved.
Fig. 1 schematically shows a block diagram of an electronic device 100 according to an embodiment of the present disclosure.
As shown in fig. 1, the electronic device 100 may include a processing unit 110, a storage unit 120, a bluetooth unit 130, an internal audio processing unit 140, and an audio playback unit 150. Wherein the processing unit 110 is coupled to the storage unit 120. The internal audio processing unit 140 and the bluetooth unit 140 may be electrically connected to the processing unit 110, respectively. The audio playing unit 150 may include communication interfaces respectively connected with the bluetooth unit 130 and the internal audio processing unit 140, so that the audio playing unit 150 may establish communication connection with the bluetooth unit 130 and the internal audio processing unit 140, respectively.
In particular, processing unit 110 may include, for example, a general purpose microprocessor, an instruction set processor and/or related chip set and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processing unit 110 may also include onboard memory for caching purposes. The processing unit 110 may be a single processing unit or a plurality of processing units.
The storage unit 120 may have stored thereon a computer program 121, which computer program 12I may comprise code/computer executable instructions that, when executed by the processing unit 110, cause the processing unit 110 to perform the information processing method of the embodiments of the present disclosure.
The computer program 121 may be configured with computer program code, for example, comprising computer program modules. For example, in an example embodiment, code in computer program 121 may include one or more program modules, including for example 121A, modules 121B, … …. It should be noted that the division manner and the number of the modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, so that when the program modules are executed by the processing unit 110, the processing unit 110 may execute the information processing method according to the embodiment of the present disclosure or any variation thereof.
The internal audio processing unit 140 may be, for example, an audio codec. The audio playback unit 150 may be, for example, a speaker. The internal audio processing unit 140 and the audio playing unit 150 may be connected through a general purpose input/output interface GPIO and/or an I2S integrated circuit built-in audio bus. The bluetooth unit 130 and the audio playing unit 150 may be connected through a general purpose input output interface GPIO connection and/or an I2S integrated circuit built-in audio bus.
The processing unit 110 may interact with the internal audio processing unit 140 or the bluetooth unit 130 to control the playback switching of the audio playback unit 150, so as to implement the information processing method and its variants according to the embodiments of the present disclosure.
According to an embodiment of the present disclosure, the electronic device 100 may include various electronic devices: smart phones, tablet Personal Computers (PCs), electronic book readers (e-book readers), desktop PCs, laptop PCs, netbook computers, workstations, servers, Personal Digital Assistants (PDAs), Portable Multimedia Players (PMPs), MPEG-1 audio layer-3 (MP3) players, mobile medical devices, cameras, and the like.
The electronic device 100 may further include various smart home devices such as a television, a Digital Video Disc (DVD) player, an audio device, a refrigerator, an air conditioner, a vacuum cleaner, an oven, a microwave oven, a washing machine, an air purifier, a set-top box, a home automation panel, a security control panel, a TV box (e.g., samsung homesynctm, Apple TVTM, or Google TVTM), a game console (e.g., xbox and playstation), an electronic dictionary, an electronic key, a video camera, and an electronic picture frame.
The electronic device 100 may also include various medical devices (e.g., various portable medical measurement devices (blood glucose monitoring device, heart rate monitoring device, blood pressure measuring device, body temperature measuring device, etc.), Magnetic Resonance Angiography (MRA), Magnetic Resonance Imaging (MRI), Computed Tomography (CT) machine, and ultrasound scanner), navigation devices, Global Positioning System (GPS) receivers, Event Data Recorders (EDR), Flight Data Recorders (FDR), vehicle infotainment devices, marine electronics (e.g., marine navigation devices and compasses), avionics, security devices, vehicle head units, industrial or home robots, bank Automated Teller Machines (ATMs), store points of sale or internet of things (e.g., light bulbs, various sensors, electricity or gas meters, sprinkler devices, fire alarms, thermostats, street lights, etc.), medical devices (e.g., various portable medical measurement devices, blood pressure measuring devices, body temperature measuring devices, etc.), Magnetic Resonance Angiography (MRA), Magnetic Resonance Imaging (MRI), marine electronics, safety devices, vehicle head units, industrial or home robots, bank automated teller machines, bank automation machines, bank units, and the like, Toasters, sports equipment, hot water tanks, heaters, boilers, etc.).
An information processing method according to an embodiment of the present disclosure is exemplarily described below with reference to fig. 2 to 5 in conjunction with the electronic device 100 of fig. 1.
Fig. 2 schematically shows a flow chart of an information processing method according to an embodiment of the present disclosure.
As shown in fig. 2, the information processing method according to an embodiment of the present disclosure may include operations S210 to S220.
In operation S210, a communication connection between the audio playback unit 150 and the bluetooth unit 130 is established.
In operation S220, when an external audio data is received by the bluetooth unit 130, the external audio data is played by the audio playing unit 150. For example, after the user uses the mobile terminal to establish a bluetooth connection with the electronic device 100 through the bluetooth unit 130, and after the user opens the application App for audio playing in the mobile terminal 130, the audio data played by the application App may be transmitted to the bluetooth unit 130 through the bluetooth connection. After receiving the external audio data, the bluetooth unit 130 may transmit the external audio data to the audio playing unit 150, and play the external audio data through the audio playing unit 150.
According to an embodiment of the present disclosure, operation S220 may be playing external audio data received by the bluetooth unit 130 with the audio playing unit 150 when the electronic device 100 is in a standby mode. For example, the personal computer may be put into a standby mode when the user temporarily does not use the personal computer (e.g., automatically put into the standby mode after not receiving the user's operation for more than a predetermined period of time, or put into the standby mode based on a user's active setting). When the personal computer is in a standby mode, if a user presses any key on a keyboard or moves a mouse, the computer can be quickly awakened, so that the computer enters a normal working state. When the personal computer is in a standby mode, the CPU, the memory and/or the display card can be in a low-frequency low-power consumption running state.
The electronic apparatus 100 is in the standby mode, and usually, the user does not use the electronic apparatus 100 for a while. At this time, the electronic device 100 is used for playing external audio data, and the electronic device is used as a bluetooth sound box of the mobile terminal, so that the operation of the electronic device is not influenced, an optional audio playing mode is provided for a user, and the user experience is improved.
According to other embodiments of the present disclosure, the electronic device 100 being in a standby mode may be the electronic device 100 being in a modern standby mode. For example, in the modern standby mode, the personal computer can still run programs in the "sleep" power state, such as playing music, and does not stop playing due to the "sleep" power state. In addition, in the modern standby mode, if a user wants to use the personal computer, the user can more quickly wake up the personal computer by pressing any key on the keyboard or moving the mouse.
Fig. 3 schematically shows a flow chart of an information processing method according to another embodiment of the present disclosure.
With reference to fig. 2 and 3, an information processing method according to another embodiment of the present disclosure may further include operations S310 to S330, in addition to operations S210 to S220 shown in fig. 2. The sequence of operations S310 to S330 and operations S210 to S220 may not be limited, and may be configured or selected according to practical applications.
In operation S310, a communication connection of the audio play unit 150 and the internal audio processing unit 140 is established.
In operation S320, audio data from inside the electronic device is processed by the internal audio processing unit 140 to obtain internal audio data to be played.
In operation S330, the internal audio data is played using the audio playing unit 150.
According to some embodiments of the present disclosure, a conflict problem that may exist simultaneously with external audio data and internal audio data may be solved by setting priorities for playing the external audio data and the internal audio data. For example, the priority of the external audio data may be set higher than that of the internal audio data, and then when the external audio data and the internal audio data exist at the same time, only the external audio data may be played, or the internal audio data may be played after the playing of the external audio data is completed. And vice versa.
According to other embodiments of the present disclosure, the problem of collision that may exist in both external audio data and internal audio data may also be solved by controlling the switching of the communication connection of the audio playing unit 150 with the bluetooth unit 130 and the internal audio processing unit 140. Reference may be made in particular to the illustration of fig. 4.
Fig. 4 schematically shows a flowchart of an information processing method according to still another embodiment of the present disclosure.
As shown in fig. 4, the information processing method according to the embodiment of the present disclosure may further include operation S410 in addition to operation S210 to operation S220 and operation S310 to operation S330.
After the communication connection of the audio play unit 150 with the bluetooth unit 130 and the audio play unit 150 is established in operation S210 and operation S310, respectively, the switching of the communication connection of the audio play unit 150 with the bluetooth unit 130 and the internal audio processing unit 140 may be controlled in operation S410
Specifically, in operation S410, switching of the communication connection of the audio playing unit 150 with the bluetooth unit 130 and the internal audio processing unit 140 is controlled using the general purpose input output interface GPIO. Accordingly, when the audio play unit 150 is switched to communicate with the bluetooth unit 130, the external audio data received by the bluetooth unit 130 is played by the audio play unit 150 (operation S220), and when the audio play unit 150 is switched to communicate with the internal audio processing unit 140, the internal audio data processed by the internal audio processing unit 140 is played by the audio play unit 150 (operation S330).
Fig. 5 schematically shows a flowchart of operation S410 of controlling switching of communication connections of the audio playing unit 150 with the bluetooth unit 130 and the internal audio processing unit in an information processing method according to still another embodiment of the present disclosure.
In conjunction with fig. 4 and 5, operation S410 may include operation S411 and operation S412. Wherein,
in operation S411, in response to the bluetooth unit 130 receiving the external audio data, the communication connection between the audio playing unit 150 and the bluetooth unit 130 is switched to play the external audio data by using the audio playing unit 150.
In operation S412, in response to an application program in the electronic device playing audio, the communication connection between the audio playing unit 150 and the internal audio processing unit 140 is switched to play the internal audio data from the application program by using the audio playing unit 150.
The sequence of operation S411 and operation S412 in fig. 5 is only exemplary, and in practical applications, the sequence of operation S411 and operation S412 may be interchanged, or may be determined by setting the priority of the playing data.
Fig. 6 schematically shows a block diagram of an information processing apparatus 600 according to an embodiment of the present disclosure.
As shown in fig. 6, the information processing apparatus 600 may be provided in the electronic device 100. For example, at least one of the respective modules in the information processing apparatus 600 may be implemented as a computer program module or the like described with reference to fig. 1. The information processing apparatus 600 may be used to implement the information processing method described according to the embodiment of the present disclosure.
The information processing apparatus 600 may include a first communication establishing module 610 and a playing module 620.
The first communication establishing module 610 may perform operation S210, for example, and may be configured to establish a communication connection between the audio playing unit 150 and the bluetooth unit 130.
The playing module 620 may perform operation S220, for example, to play external audio data with the audio playing unit 150 when the external audio data is received by the bluetooth unit 130. According to an embodiment of the present disclosure, the playing module 620 may be further configured to play the external audio data with the audio playing unit 150 when the external audio data is received by the bluetooth unit 130 while the electronic device is in the standby mode.
The information processing apparatus 600 may further include a second communication establishing module 630 and an internal audio processing module 640.
The second communication establishing module 630 may perform operation S310, for example, for establishing a communication connection between the audio playing unit 150 and the internal audio processing unit 140.
The internal audio processing module 640 may, for example, perform operation S320 for processing audio data from inside the electronic device by using the internal audio processing unit 140 to obtain internal audio data to be played.
The playing module 620 may also perform operation S330, for example, for playing the internal audio data using the audio playing unit 150.
The information processing apparatus 600 may further include a play control module 650. The play control module 650 may perform operation S410, for example, for controlling switching of the communication connection of the audio play unit 150 with the bluetooth unit 130 and the internal audio processing unit 140 using the general purpose input output interface GPIO.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any plurality of the first communication establishing module 610, the playing module 620, the second communication establishing module 630, the internal audio processing module 640, and the playing control module 650 may be combined in one module to be implemented, or any one of them may be divided into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first communication establishing module 610, the playing module 620, the second communication establishing module 630, the internal audio processing module 640, and the playing control module 650 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementations of software, hardware, and firmware, or by a suitable combination of any of them. Alternatively, at least one of the first communication establishing module 610, the playing module 620, the second communication establishing module 630, the internal audio processing module 640, and the playing control module 650 may be at least partially implemented as the computer program module 121 shown in fig. 1, which, when executed by the processing unit 110, may implement the respective operations described above.
Fig. 7 schematically shows a block diagram of an electronic device 700 according to another embodiment of the present disclosure.
As shown in fig. 7, the electronic device 700 is a specific embodiment of the electronic device 100. The electronic device 700 may comprise a south bridge PCH, a bluetooth unit BT module, an audio codec audio Code, a general purpose input output interface GPIO, one or more audio players Amplifier.
The bluetooth unit BT module may be connected to one or more audio players Amplifier via the general purpose input output interface GPIO.
According to the information processing method of the embodiment of the disclosure, when the bluetooth unit BT module receives external audio data, the data can be transmitted to one or more audio player amplifiers through the general purpose input output interface GPIO, and then played by using the one or more audio player amplifiers. For example, a user may connect a mobile phone of the user with the electronic device 700 through the bluetooth unit BT module, and then the user may operate an APP for audio playing on the mobile phone, and the APP may transmit the played audio data to the bluetooth unit BT module, and then play the audio data through one or more audio players Amplifier. For example, if the electronic device 700 is a personal computer, the personal computer may generally have greater power and/or better performance than an audio player at the mobile phone end, so as to provide more choices for the user to play audio data on the mobile phone, and also develop multiple functions of the personal computer.
The south bridge PCH may be connected to a central processing unit and may be used to process low-speed signals (e.g., audio signals). For example, in the standby mode, the central processing unit is in a low-frequency or even stop state, and the audio signal processing can be performed by the south bridge PCH.
The audio codec may be connected to the south bridge PCH, and receive and process audio data inside the electronic device processed by the south bridge PCH to obtain internal audio data. Meanwhile, the audio encoder audio Code can also be connected with one or more audio player amplifiers through the general purpose input/output interface GPIO.
According to the information processing method of the embodiment of the present disclosure, when the electronic device 700 has the audio data inside the electronic device processed via the south bridge PCH (for example, the application program inside the electronic device 700 runs to generate the audio data), the audio codec audio Code may process the audio data to be played, and then transmit the internal audio data to one or more audio players amplifiers through the general purpose input/output interface GPIO, and then play the audio data by using the one or more audio players amplifiers. For example, when an audio playing program in the electronic device 700 is run based on a user operation, or an application program of the electronic device 700 receives a signal and plays a prompt message, the audio codec audio Code may process output data of the audio playing program to obtain internal audio data, and the one or more audio players Amplifier may play the internal audio data.
According to some embodiments of the present disclosure, a general purpose input output interface GPIO may be utilized to control the switching of the communication connections of one or more audio players Amplifier with the bluetooth unit BT module and the audio codec audio Code. Therefore, when the one or more audio player amplifiers are switched to communicate with the Bluetooth unit BT module, the one or more audio player amplifiers play the external audio data received by the Bluetooth unit BT module, and when the one or more audio player amplifiers are switched to communicate with the audio codec Audio Code, the one or more audio player amplifiers play the internal audio data processed by the audio codec Audio Code.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the disclosure can be made without conflict, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.
Claims (7)
1. An information processing method, the method comprising:
establishing communication connection between an audio playing unit and a Bluetooth unit of the electronic equipment; and
when the Bluetooth unit receives external audio data, the audio playing unit is used for playing the external audio data,
the electronic equipment comprises the Bluetooth unit, the audio playing unit and an internal audio processing unit, wherein the audio playing unit is set to comprise communication interfaces respectively connected with the Bluetooth unit and the internal audio processing unit;
wherein, when an external audio data is received by the bluetooth unit, playing the external audio data by using the audio playing unit includes:
when the electronic equipment is in a modern standby mode, when the Bluetooth unit receives external audio data, playing the external audio data by using the audio playing unit, wherein in the modern standby mode, the electronic equipment still runs programs in a sleep power state;
wherein the method further comprises:
controlling the switching of the communication connection between the audio playing unit and the bluetooth unit and between the audio playing unit and the internal audio processing unit, specifically comprising:
responding to the Bluetooth unit receiving the external audio data, switching to the communication connection between the audio playing unit and the Bluetooth unit so as to play the external audio data by using the audio playing unit; and
responding to the application program in the electronic equipment to play audio, switching to the communication connection between the audio playing unit and the internal audio processing unit, so as to play the internal audio data from the application program by using the audio playing unit.
2. The method of claim 1, wherein the method further comprises:
establishing communication connection between the audio playing unit and the internal audio processing unit;
processing audio data from the inside of the electronic equipment by using the internal audio processing unit to obtain internal audio data to be played; and
and playing the internal audio data by using the audio playing unit.
3. The method of claim 1, wherein switching of the communication connection of the audio playing unit with the Bluetooth unit and the internal audio processing unit is controlled using a general purpose input output interface (GPIO).
4. An information processing apparatus, the apparatus comprising:
the first communication establishing module is used for establishing communication connection between an audio playing unit of the electronic equipment and the Bluetooth unit; and
a playing module, for playing the external audio data by the audio playing unit when the external audio data is received by the Bluetooth unit,
the electronic equipment comprises the Bluetooth unit, the audio playing unit and an internal audio processing unit, wherein the audio playing unit is set to comprise communication interfaces respectively connected with the Bluetooth unit and the internal audio processing unit;
wherein the playing module is further configured to:
when the electronic equipment is in a modern standby mode, when the Bluetooth unit receives external audio data, playing the external audio data by using the audio playing unit, wherein in the modern standby mode, the electronic equipment still runs programs in a sleep power state;
wherein the apparatus further comprises:
the playing control module is used for controlling the audio playing unit to be switched with the communication connection between the Bluetooth unit and the internal audio processing unit, and specifically comprises:
responding to the Bluetooth unit receiving the external audio data, switching to the communication connection between the audio playing unit and the Bluetooth unit so as to play the external audio data by using the audio playing unit; and
responding to the application program in the electronic equipment to play audio, switching to the communication connection between the audio playing unit and the internal audio processing unit, so as to play the internal audio data from the application program by using the audio playing unit.
5. The apparatus of claim 4, wherein the apparatus further comprises:
the second communication establishing module is used for establishing the communication connection between the audio playing unit and the internal audio processing unit; and
the internal audio processing module is used for processing audio data from the inside of the electronic equipment by using the internal audio processing unit to obtain internal audio data to be played;
wherein,
the playing module is further configured to play the internal audio data by using the audio playing unit.
6. The device of claim 4, wherein the playing control module is further configured to control switching of the communication connection between the audio playing unit and the Bluetooth unit and between the audio playing unit and the internal audio processing unit by using a general purpose input output interface (GPIO).
7. An electronic device, comprising:
the Bluetooth unit is used for receiving external audio data;
an internal audio processing unit for processing audio data from inside the electronic device;
the audio playing unit comprises communication interfaces respectively connected with the Bluetooth unit and the internal audio processing unit;
a storage unit having one or more computer-executable instructions stored thereon; and
a processing unit executing the instructions to implement the method according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911343539.6A CN111107532B (en) | 2019-12-23 | 2019-12-23 | Information processing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911343539.6A CN111107532B (en) | 2019-12-23 | 2019-12-23 | Information processing method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111107532A CN111107532A (en) | 2020-05-05 |
CN111107532B true CN111107532B (en) | 2022-06-24 |
Family
ID=70423976
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911343539.6A Active CN111107532B (en) | 2019-12-23 | 2019-12-23 | Information processing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111107532B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114827334B (en) * | 2021-01-18 | 2023-08-22 | 华为技术有限公司 | A wireless communication method, electronic equipment, device, chip and storage medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2635395A1 (en) * | 2007-06-19 | 2008-12-19 | Stealthwear | Wireless headset switching system |
KR20110103625A (en) * | 2010-03-15 | 2011-09-21 | 삼성전자주식회사 | How to connect dual standby portable devices and audio path |
CN102984620B (en) * | 2012-11-30 | 2015-05-13 | 深圳市博尊音域科技有限公司 | Sound equipment |
CN104796642B (en) * | 2015-03-06 | 2019-02-05 | 康佳集团股份有限公司 | Bimodulus Baffle Box of Bluetooth television system and its bimodulus Bluetooth audio frequency control method for playing back |
CN106060693B (en) * | 2016-04-19 | 2022-05-10 | 杭州纳雄科技有限公司 | Bluetooth headset with audio plug and control method thereof |
CN106162441A (en) * | 2016-07-26 | 2016-11-23 | 深圳市易顺科技有限公司 | Acoustic controller and control method |
CN106686211A (en) * | 2016-11-30 | 2017-05-17 | 努比亚技术有限公司 | Processing method and terminal for sound playing in split screen mode |
-
2019
- 2019-12-23 CN CN201911343539.6A patent/CN111107532B/en active Active
Non-Patent Citations (2)
Title |
---|
低功耗智能蓝牙云交互耳机的设计与实现;陈飞;《电脑知识与技术》;20181005(第28期);全文 * |
基于Wi-Fi SoC的嵌入式Linux音频驱动设计与实现;陈熹等;《计算机与数字工程》;20161020(第10期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111107532A (en) | 2020-05-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200336786A1 (en) | Method for outputting audio and electronic device for the same | |
US10390140B2 (en) | Output device outputting audio signal and control method thereof | |
US9451100B2 (en) | Method for transmitting notification information and electronic device thereof | |
US10515056B2 (en) | API for resource discovery and utilization | |
CN108513165B (en) | Method of sharing content and electronic device supporting the same | |
US10652680B2 (en) | Electronic device and method for controlling input and output by electronic device | |
US10831440B2 (en) | Coordinating input on multiple local devices | |
CN105589336B (en) | multiprocessor device | |
US10205770B2 (en) | Mobile device application integration with infotainment head units | |
KR102301880B1 (en) | Electronic apparatus and method for spoken dialog thereof | |
KR102461604B1 (en) | Data transceiving method and device | |
US20160070580A1 (en) | Digital personal assistant remote invocation | |
KR20170096408A (en) | Method for displaying application and electronic device supporting the same | |
US20150121278A1 (en) | Method and apparatus for providing user interface in multi-window | |
KR20160042739A (en) | Method for sharing a display and electronic device thereof | |
US11315567B2 (en) | Electronic device and method for conducting dialog | |
CN108563468B (en) | Bluetooth sound box data processing method and device and Bluetooth sound box | |
US11227597B2 (en) | Electronic device and controlling method thereof | |
US9728144B2 (en) | Method and apparatus for shifting display driving frequency to avoid noise of electronic sensor module | |
US9812168B2 (en) | Electronic device and method for playing back image data | |
CN111107532B (en) | Information processing method and device and electronic equipment | |
KR20220080270A (en) | Electronic device and controlling method of electronic device | |
CN106453818A (en) | Adaptive Processing of Sound Data | |
CN108668011B (en) | Output method, output device and electronic device | |
CN107278289B (en) | Dynamic adjustment of user experience based on system capabilities |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |