CN112492529B - Audio transmission method, mobile terminal and computer readable storage medium - Google Patents

Audio transmission method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN112492529B
CN112492529B CN202011355131.3A CN202011355131A CN112492529B CN 112492529 B CN112492529 B CN 112492529B CN 202011355131 A CN202011355131 A CN 202011355131A CN 112492529 B CN112492529 B CN 112492529B
Authority
CN
China
Prior art keywords
bluetooth
bluetooth device
mobile terminal
connection
devices
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011355131.3A
Other languages
Chinese (zh)
Other versions
CN112492529A (en
Inventor
柴启蕾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN202011355131.3A priority Critical patent/CN112492529B/en
Publication of CN112492529A publication Critical patent/CN112492529A/en
Application granted granted Critical
Publication of CN112492529B publication Critical patent/CN112492529B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides an audio transmission method, which is applied to a mobile terminal and comprises the following steps: establishing Bluetooth connection between first Bluetooth equipment and the mobile terminal; establishing Bluetooth connection between the first Bluetooth device and the second Bluetooth device; sending an audio file to the first Bluetooth device, and playing the audio file through the first Bluetooth device; and sending the audio file to the second Bluetooth device through the first Bluetooth device so as to enable the second Bluetooth device to play the audio file. Through the mode, the message transmission of the Bluetooth is utilized on the basis of not changing the hardware condition of the mobile terminal through the implementation mode, the output of a plurality of audios is ensured, and the use experience of a user can be well enhanced.

Description

Audio transmission method, mobile terminal and computer-readable storage medium
Technical Field
The present application relates to the field of network communication technologies, and in particular, to an audio transmission method, a mobile terminal, and a computer-readable storage medium.
Background
With the increasing popularization of mobile terminals, the mobile terminals have become indispensable products in daily life and work of people. Video and audio entertainment is common through the mobile terminal, and along with continuous pursuit of users to video and audio entertainment and the requirement of convenience in use, the bluetooth headset is more and more common in people's life, and the rate of utilization is higher and higher, receives audio frequency through the bluetooth headset and can be fine breaks away from wired connection's constraint.
However, in the prior art, one mobile phone cannot be connected with two bluetooth headsets at the same time, because of the sound card of the mobile phone and the system setting, only one bluetooth audio device can be output from a sound source at the same time; further, the order of the plurality of audio outputs and the power consumption operation efficiency of the apparatus itself are considered. Content sharing becomes the basis of person-to-person communication, two users cannot simultaneously acquire audio of resources when watching movies, listening songs or watching short videos, and the audio is limited in function and cannot be realized when being output to a plurality of Bluetooth earphone ends, so that user experience is influenced.
Disclosure of Invention
The application mainly aims to provide an audio transmission method, a mobile terminal and a computer readable storage medium, aiming at ensuring the output of a plurality of Bluetooth devices and well enhancing the user experience on the basis of not changing the hardware condition of the mobile terminal.
In order to achieve the above object, the present application provides an audio transmission method applied to a mobile terminal, the method including:
establishing Bluetooth connection between first Bluetooth equipment and the mobile terminal;
establishing Bluetooth connection between the first Bluetooth device and the second Bluetooth device;
sending an audio file to the first Bluetooth device, and playing the audio file through the first Bluetooth device;
and sending the audio file to the second Bluetooth device through the first Bluetooth device so as to enable the second Bluetooth device to play the audio file.
Optionally, the step of establishing a bluetooth connection between the first bluetooth device and the second bluetooth device includes:
the first Bluetooth device detects a matchable Bluetooth device;
and when the matchable Bluetooth equipment is detected, controlling to establish the Bluetooth connection between the first Bluetooth equipment and the second Bluetooth equipment according to the received matching instruction.
Optionally, the step of detecting the matchable bluetooth device by the first bluetooth device is that the first bluetooth device sends a broadcast, where the broadcast carries a flag bit, and the flag bit is used to flag the matchable bluetooth device for determining a corresponding connection mode.
Optionally, the flag bit includes at least one of:
the Bluetooth mobile phone can only receive information of other Bluetooth devices;
the Bluetooth mobile phone can only send messages to other Bluetooth devices;
the device can transmit and receive by itself;
only supports the interaction with the mobile phone, and does not support the interaction with other earphones.
Optionally, the step of controlling, when a matchable bluetooth device is detected, to establish a bluetooth connection between the first bluetooth device and the second bluetooth device according to the received matching instruction includes:
displaying a matching interface through a display interface of the mobile terminal, wherein the matching interface comprises at least one item of a communication mode of the Bluetooth equipment;
responding to the matching operation acted on the matching interface, and controlling and establishing the Bluetooth connection between the first Bluetooth device and the second Bluetooth device according to the matching instruction corresponding to the matching operation.
Optionally, the method further comprises:
the method comprises the steps that Bluetooth broadcasting is sent through the mobile terminal to search at least two Bluetooth devices which can be matched;
the step of establishing a bluetooth connection between the first bluetooth device and the second bluetooth device includes:
the at least two Bluetooth devices send matching information to each other to establish Bluetooth connection between the at least two Bluetooth devices, wherein the Bluetooth device connected with the mobile terminal in the at least two Bluetooth devices in the first Bluetooth device is the Bluetooth device connected with the first Bluetooth device in the at least two Bluetooth devices.
Optionally, the bluetooth device is a bluetooth headset.
Optionally, the method further comprises:
and when determining that the Bluetooth connection between the first Bluetooth device and the second Bluetooth device meets the disconnection condition, controlling to disconnect the Bluetooth connection between the first Bluetooth device and the second Bluetooth device.
The present application further provides a mobile terminal, which includes: a touch screen; a processor;
and the memory is connected with the processor and comprises a control instruction, and when the processor reads the control instruction, the mobile terminal is controlled to realize the audio transmission method.
The present application also provides a computer-readable storage medium having one or more programs, which are executed by one or more processors, to implement the above-described audio transmission method.
According to the audio transmission method, the mobile terminal and the computer readable storage medium, the first Bluetooth device is connected with the mobile terminal through the Bluetooth, so that the first Bluetooth device can be directly connected with the mobile terminal to receive the audio file sent by the mobile terminal, the audio file is played through the first Bluetooth device, the first Bluetooth device is connected with the second Bluetooth device through the Bluetooth, then the audio file received from the mobile terminal is directly sent through the first Bluetooth device, the second Bluetooth device is played through the second Bluetooth device, and through the implementation mode, on the basis that the hardware condition of the mobile terminal is not changed, the output of multiple audios is guaranteed, and the user experience can be well enhanced.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present application;
FIG. 2 is a schematic diagram of a communication network system of the mobile terminal shown in FIG. 1;
fig. 3 is a flowchart of an audio transmission method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint key, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor and the like which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby integrally monitoring the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Fig. 3 is a flowchart of an embodiment of an audio transmission method provided in the present application. Once the method of this embodiment is triggered by the user, the process in this embodiment automatically runs through the mobile terminal, where each step may be performed sequentially according to the sequence in the flowchart, or multiple steps may be performed simultaneously according to the actual situation, which is not limited herein. The audio transmission method provided by the application comprises the following steps:
step S310, establishing Bluetooth connection between a first Bluetooth device and the mobile terminal;
step S320, establishing the Bluetooth connection between the first Bluetooth device and the second Bluetooth device;
step S330, sending an audio file to the first Bluetooth device, and playing the audio file through the first Bluetooth device;
step S340, sending the audio file to the second bluetooth device through the first bluetooth device, so that the second bluetooth device plays the audio file.
By the method, the user can quickly switch the corresponding relation between the fingerprint key and different touch areas on the game interface, and then the game control instruction corresponding to the currently corresponding touch area is triggered by the fingerprint key, so that convenient game operation is realized.
The above steps will be specifically described with reference to specific examples.
In step S310, a bluetooth connection between a first bluetooth device and the mobile terminal is established.
Specifically, mobile terminal disposes bluetooth module, first bluetooth equipment disposes bluetooth module, when concrete implementation, mobile terminal is through opening bluetooth function, bluetooth module can broadcast in order to detect the bluetooth equipment that can carry out the matching, wherein, bluetooth equipment can be keyboard, mouse, display, audio amplifier, bluetooth headset etc. the bluetooth equipment that can match can be shown in mobile terminal's display interface and regard as the display content with corresponding bluetooth equipment information to make the user can discern different bluetooth equipment.
In this embodiment, when the mobile terminal starts the bluetooth function, at least two bluetooth devices are detected, where the bluetooth devices are bluetooth headsets. Namely, when the mobile terminal starts the Bluetooth function, the mobile terminal sends Bluetooth broadcast to search at least two Bluetooth earphones which can be matched.
When at least two Bluetooth settings are detected, displaying Bluetooth equipment items through a display interface of the mobile terminal, receiving touch operation acting on the display interface, determining Bluetooth equipment corresponding to the touch operation, and establishing Bluetooth connection between the mobile terminal and the Bluetooth equipment.
In step S320, a bluetooth connection between the first bluetooth device and the second bluetooth device is established.
Specifically, the second bluetooth device does not directly establish bluetooth connection with the mobile terminal, because when the audio type of the Android system is STREAM _ RING, audio is played from the mobile terminal and the bluetooth device (e.g., bluetooth headset) at the same time, that is, the audio is provided to a speaker of the mobile phone and a speaker of the bluetooth respectively, and is played after being converted into sound. On the basis, when a second Bluetooth device is added (namely, a loudspeaker is added), the mobile terminal can be connected with only one Bluetooth device due to the fact that the bottom hardware drive is not satisfied. In this embodiment, the first bluetooth device and the second bluetooth device are both bluetooth headsets, and the bluetooth headsets are provided with receiving antennas and transmitting antennas, so that the problem that the mobile terminal cannot be connected with two bluetooth headsets at the same time to enable the two bluetooth headsets to play audio files at the same time is solved by using the connectivity between the bluetooth headsets.
In an alternative embodiment, step S320 may include the following steps:
step S3201, the first bluetooth device detects a matchable bluetooth device;
step S3202, when a matchable bluetooth device is detected, controlling to establish a bluetooth connection between the first bluetooth device and the second bluetooth device according to the received matching instruction.
Specifically, in step S3201, after the first bluetooth device establishes a bluetooth connection with the mobile terminal, the first bluetooth device is controlled to send a broadcast, where the broadcast carries a flag bit, and the flag bit is used to flag the matchable bluetooth device for determining a corresponding connection mode. Through the method, the first Bluetooth device can find the matched Bluetooth device to serve as the second Bluetooth device for subsequent Bluetooth connection. Wherein the flag bits may include at least one of: the Bluetooth mobile phone can only receive information of other Bluetooth devices; the Bluetooth mobile phone can only send messages to other Bluetooth devices; the device can transmit and receive by itself; only the interaction with the mobile phone is supported, and the interaction with other earphones is not supported. In this embodiment, the controlling the first bluetooth device to send the broadcast may be automatically controlling the first bluetooth device to send the broadcast after the mobile terminal determines that the bluetooth connection is established with the first bluetooth device. In other embodiments, controlling the first bluetooth device to transmit the broadcast may also be in response to a user operation to control the first bluetooth device to transmit the broadcast.
In step S3202, the matching instruction may be an instruction sent between the first bluetooth device and the second bluetooth device, an instruction triggered by a touch operation received by the mobile terminal, or an instruction triggered by an operation received by the first bluetooth device. In an alternative embodiment, step S3202 may include the steps of:
step S32021, displaying a matching interface through a display interface of the mobile terminal, wherein the matching interface comprises at least one item of a Bluetooth device communication mode;
step S32022, in response to a matching operation performed on the matching interface, establishing a bluetooth connection between the first bluetooth device and the second bluetooth device according to a matching instruction corresponding to the matching operation.
Specifically, in step S32021, when the first bluetooth device detects another bluetooth device that can be matched, the first bluetooth device controls a display interface of the mobile terminal to display a matching interface for the user to select the corresponding bluetooth device and the corresponding communication method item. In this embodiment, the communication method entry corresponds to the type of the flag bit mentioned above, and includes: the Bluetooth mobile phone can only receive information of other Bluetooth devices; the Bluetooth mobile phone can only send messages to other Bluetooth devices; the device can transmit and receive by itself; only the interaction with the mobile phone is supported, and the interaction with other earphones is not supported.
In step S32022, the matching operation may be a click operation, a slide operation, or other operations that may trigger triggering of matching information in the matching interface. The matching interface comprises one or more detected other Bluetooth devices and a communication mode corresponding to each Bluetooth device. And selecting a Bluetooth device for connection from the detected one or more other Bluetooth devices through matching operation, determining the communication mode of the Bluetooth device, and establishing the Bluetooth connection between the first Bluetooth device and the selected other Bluetooth devices in a corresponding communication mode in response to the matching operation.
For example, when a first bluetooth headset (a) is opened, a broadcast opening detection with a marking position is sent, when other bluetooth headsets which can be matched with each other are detected, the bluetooth headset (B) is marked, and when the first bluetooth headset a receives an audio file given by a mobile terminal, the audio file is analyzed into a sound file by itself in two steps, and the sound file is played through a loudspeaker. In addition, a broadcast is sent to the second bluetooth device B which is marked, and whether the second bluetooth device B wants to access the audio is confirmed through the marking bit and the user selection. After the Bluetooth earphones (A and B) are connected with each other, the first Bluetooth earphone A continuously packs and sends the previous audio files to the second Bluetooth earphone B through broadcasting, and the second Bluetooth earphone B analyzes the files and then outputs the files through a loudspeaker.
In an alternative embodiment, step S320 may also be performed by:
the at least two Bluetooth devices send matching information to each other so as to establish Bluetooth connection between the at least two Bluetooth devices, wherein the Bluetooth device connected with the mobile terminal in the at least two Bluetooth devices in the first Bluetooth device is the Bluetooth device connected with the first Bluetooth device in the at least two Bluetooth devices.
Specifically, when the mobile terminal starts a bluetooth function, the mobile terminal sends a bluetooth broadcast to search for at least two bluetooth devices that can be matched, and the bluetooth devices judge that the bluetooth devices access the same mobile terminal, and then the bluetooth devices send matching information to each other to determine that messages can be sent to each other. It should be noted that, due to the hardware limitation of the mobile terminal, only one of the detected bluetooth devices may establish a connection with the mobile terminal, and the device that directly establishes a bluetooth connection with the mobile terminal is used as the first bluetooth device.
In step S330, an audio file is sent to the first bluetooth device, and the audio file is played through the first bluetooth device.
Specifically, when the first bluetooth device receives an audio file sent by the mobile terminal, the first bluetooth device analyzes the audio file to be a sound file, and the sound file is played through a loudspeaker.
In step S340, the audio file is sent to the second bluetooth device through the first bluetooth device, so that the second bluetooth device plays the audio file.
Specifically, when the first bluetooth device analyzes the audio file, if it is determined that the first bluetooth device is connected with the second bluetooth device, the first bluetooth device continuously packs the previous audio file and sends the audio file to the second bluetooth device through broadcasting, and the second bluetooth device analyzes the audio file and outputs the audio file through a loudspeaker.
In order to reduce power consumption, the audio transmission method provided by the present application further includes:
step S350, when it is determined that the bluetooth connection between the first bluetooth device and the second bluetooth device satisfies the disconnection condition, controlling to disconnect the bluetooth connection between the first bluetooth device and the second bluetooth device.
Specifically, in the present embodiment, the disconnection condition is detection of stopping message transmission between the first bluetooth device and the second bluetooth device. In other embodiments, the disconnection condition is that no information is transmitted by detecting that the first bluetooth device and the second bluetooth device exceed a preset time.
Through the implementation mode, the first Bluetooth device can be directly connected with the mobile terminal by establishing the Bluetooth connection between the first Bluetooth device and the mobile terminal so as to receive the audio file sent by the mobile terminal, the audio file is played through the first Bluetooth device, the Bluetooth connection between the first Bluetooth device and the second Bluetooth device is established, then the audio file directly received from the mobile terminal is sent through the first Bluetooth device to the second Bluetooth device so as to play the audio file through the second Bluetooth device, and through the implementation mode, on the basis of not changing the hardware condition of the mobile terminal, the message transmission of the Bluetooth is utilized, the output of a plurality of audios is ensured, and the user experience can be well enhanced.
Fig. 4 is a schematic structural component diagram of the mobile terminal 100 according to an embodiment of the present application, where the mobile terminal 100 includes: a touch panel 1071; a processor 110; a memory 109 connected to the processor 110, wherein the memory 109 contains a control instruction, and when the processor 110 reads the control instruction, the mobile terminal 100 is controlled to implement the following steps:
establishing Bluetooth connection between first Bluetooth equipment and the mobile terminal;
establishing Bluetooth connection between the first Bluetooth device and the second Bluetooth device;
sending an audio file to the first Bluetooth device, and playing the audio file through the first Bluetooth device;
and sending the audio file to the second Bluetooth device through the first Bluetooth device so that the second Bluetooth device plays the audio file.
Optionally, the step of establishing a bluetooth connection between the first bluetooth device and the second bluetooth device includes:
the first Bluetooth device detects a matchable Bluetooth device;
and when the matchable Bluetooth equipment is detected, controlling to establish Bluetooth connection between the first Bluetooth equipment and the second Bluetooth equipment according to the received matching instruction.
Optionally, the step of detecting the matchable bluetooth device by the first bluetooth device is that the first bluetooth device sends a broadcast, where the broadcast carries a flag bit, and the flag bit is used to flag the matchable bluetooth device for determining a corresponding connection mode.
Optionally, the flag bit includes at least one of:
the Bluetooth mobile phone can only receive information of other Bluetooth devices;
the Bluetooth mobile phone can only send messages to other Bluetooth devices;
the device can transmit and receive by itself;
only supports the interaction with the mobile phone, and does not support the interaction with other earphones.
Optionally, the step of controlling, when a matchable bluetooth device is detected, to establish a bluetooth connection between the first bluetooth device and the second bluetooth device according to the received matching instruction includes:
displaying a matching interface through a display interface of the mobile terminal, wherein the matching interface comprises at least one item of a communication mode of the Bluetooth equipment;
responding to the matching operation acted on the matching interface, and controlling to establish the Bluetooth connection between the first Bluetooth device and the second Bluetooth device according to a matching instruction corresponding to the matching operation.
Optionally, the method further comprises:
the method comprises the steps that Bluetooth broadcasting is sent through the mobile terminal to search at least two Bluetooth devices which can be matched;
the step of establishing the bluetooth connection between the first bluetooth device and the second bluetooth device comprises:
the at least two Bluetooth devices send matching information to each other so as to establish Bluetooth connection between the at least two Bluetooth devices, wherein the Bluetooth device connected with the mobile terminal in the at least two Bluetooth devices in the first Bluetooth device is the Bluetooth device connected with the first Bluetooth device in the at least two Bluetooth devices.
Optionally, the bluetooth device is a bluetooth headset.
Optionally, the method further comprises:
and when determining that the Bluetooth connection between the first Bluetooth device and the second Bluetooth device meets the disconnection condition, controlling to disconnect the Bluetooth connection between the first Bluetooth device and the second Bluetooth device.
Through the mobile terminal, the first Bluetooth device is connected with the Bluetooth of the mobile terminal through the establishment of the first Bluetooth device, so that the first Bluetooth device can be directly connected with the mobile terminal to receive the audio file sent by the mobile terminal, the audio file is played through the first Bluetooth device, the first Bluetooth device is connected with the Bluetooth of the second Bluetooth device through the establishment of the first Bluetooth device, then the audio file directly received from the mobile terminal is sent through the first Bluetooth device to the second Bluetooth device, so that the second Bluetooth device plays the audio file, and through the implementation mode, on the basis of not changing the hardware condition of the mobile terminal, the message transmission of the Bluetooth is utilized, the output of a plurality of audios is ensured, and the user experience can be well enhanced.
Embodiments of the present application also provide a computer-readable storage medium having one or more programs, where the one or more programs are executed by one or more processors to implement the following steps:
establishing Bluetooth connection between first Bluetooth equipment and the mobile terminal;
establishing Bluetooth connection between the first Bluetooth device and the second Bluetooth device;
sending an audio file to the first Bluetooth device, and playing the audio file through the first Bluetooth device;
and sending the audio file to the second Bluetooth device through the first Bluetooth device so that the second Bluetooth device plays the audio file.
Optionally, the step of establishing a bluetooth connection between the first bluetooth device and the second bluetooth device includes:
the first Bluetooth device detects a matchable Bluetooth device;
and when the matchable Bluetooth equipment is detected, controlling to establish the Bluetooth connection between the first Bluetooth equipment and the second Bluetooth equipment according to the received matching instruction.
Optionally, the step of detecting the matchable bluetooth device by the first bluetooth device is that the first bluetooth device sends a broadcast, where the broadcast carries a flag bit, and the flag bit is used to flag the matchable bluetooth device for determining a corresponding connection mode.
Optionally, the flag bit includes at least one of:
the Bluetooth mobile phone can only receive information of other Bluetooth devices;
the Bluetooth mobile phone can only send messages to other Bluetooth devices;
the device can receive and transmit;
the earphone only supports the interaction with the mobile phone, and does not support the interaction with other earphones.
Optionally, the step of controlling, when a matchable bluetooth device is detected, to establish a bluetooth connection between the first bluetooth device and the second bluetooth device according to the received matching instruction includes:
displaying a matching interface through a display interface of the mobile terminal, wherein the matching interface comprises at least one item of a communication mode of the Bluetooth equipment;
responding to the matching operation acted on the matching interface, and controlling and establishing the Bluetooth connection between the first Bluetooth device and the second Bluetooth device according to the matching instruction corresponding to the matching operation.
Optionally, the method further comprises:
the mobile terminal sends Bluetooth broadcast to search at least two Bluetooth devices which can be matched;
the step of establishing a bluetooth connection between the first bluetooth device and the second bluetooth device includes:
the at least two Bluetooth devices send matching information to each other so as to establish Bluetooth connection between the at least two Bluetooth devices, wherein the Bluetooth device connected with the mobile terminal in the at least two Bluetooth devices in the first Bluetooth device is the Bluetooth device connected with the first Bluetooth device in the at least two Bluetooth devices.
Optionally, the bluetooth device is a bluetooth headset.
Optionally, the method further comprises:
and when determining that the Bluetooth connection between the first Bluetooth device and the second Bluetooth device meets the disconnection condition, controlling to disconnect the Bluetooth connection between the first Bluetooth device and the second Bluetooth device.
Through the computer readable storage medium, the first Bluetooth device can be directly connected with the mobile terminal by establishing Bluetooth connection between the first Bluetooth device and the mobile terminal so as to receive the audio file sent by the mobile terminal, the audio file is played through the first Bluetooth device, then the Bluetooth connection between the first Bluetooth device and the second Bluetooth device is established, then the audio file directly received from the mobile terminal is sent to the second Bluetooth device through the first Bluetooth device so as to play the audio file through the second Bluetooth device, and through the implementation mode, on the basis of not changing the hardware condition of the mobile terminal, the output of a plurality of audios is ensured by using Bluetooth message propagation, and the user experience can be well enhanced.
The embodiment of the application also provides a computer readable storage medium. The computer-readable storage medium herein stores one or more programs. Among other things, computer-readable storage media may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The corresponding technical features in the above embodiments may be used with each other without causing contradiction in the schemes or being impractical.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element identified by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An audio transmission method, applied to a mobile terminal, the method comprising:
establishing Bluetooth connection between first Bluetooth equipment and the mobile terminal;
establishing a bluetooth connection between the first bluetooth device and a second bluetooth device, wherein the step of establishing the bluetooth connection between the first bluetooth device and the second bluetooth device comprises: when the mobile terminal starts a Bluetooth function, the mobile terminal sends Bluetooth broadcast to search at least two Bluetooth devices which can be matched, and when the Bluetooth devices judge that the Bluetooth devices access the same mobile terminal, the at least two Bluetooth devices send matching information to each other to determine that messages can be sent to each other;
sending an audio file to the first Bluetooth device, and playing the audio file through the first Bluetooth device;
and sending the audio file to the second Bluetooth device through the first Bluetooth device so that the second Bluetooth device plays the audio file.
2. The method of claim 1, wherein the step of establishing a bluetooth connection between the first bluetooth device and the second bluetooth device comprises:
the first Bluetooth device detects a matchable Bluetooth device;
and when the matchable Bluetooth equipment is detected, controlling to establish the Bluetooth connection between the first Bluetooth equipment and the second Bluetooth equipment according to the received matching instruction.
3. The method of claim 2, wherein the step of the first bluetooth device detecting a matchable bluetooth device sends a broadcast to the first bluetooth device, wherein the broadcast carries a flag bit, and the flag bit is used for marking the matchable bluetooth device for determining the corresponding connection mode.
4. The method of claim 3, wherein the flag bits comprise at least one of:
the Bluetooth mobile phone can only receive information of other Bluetooth devices;
the Bluetooth mobile phone can only send messages to other Bluetooth devices;
the device can transmit and receive by itself;
only supports the interaction with the mobile phone, and does not support the interaction with other earphones.
5. The method according to any of claims 2-4, wherein the step of controlling the establishment of the bluetooth connection between the first bluetooth device and the second bluetooth device according to the received matching instruction when a matchable bluetooth device is detected comprises:
displaying a matching interface through a display interface of the mobile terminal, wherein the matching interface comprises at least one item of a Bluetooth device communication mode;
responding to the matching operation acted on the matching interface, and controlling and establishing the Bluetooth connection between the first Bluetooth device and the second Bluetooth device according to the matching instruction corresponding to the matching operation.
6. The method of claim 1, wherein the method further comprises:
the method comprises the steps that Bluetooth broadcasting is sent through the mobile terminal to search at least two Bluetooth devices which can be matched;
the step of establishing a bluetooth connection between the first bluetooth device and the second bluetooth device includes:
the at least two Bluetooth devices send matching information to each other so as to establish Bluetooth connection between the at least two Bluetooth devices, wherein the Bluetooth device connected with the mobile terminal in the at least two Bluetooth devices in the first Bluetooth device is the Bluetooth device connected with the first Bluetooth device in the at least two Bluetooth devices.
7. The method of claim 1, wherein the Bluetooth device is a Bluetooth headset.
8. The method of claim 1, wherein the method further comprises:
and when determining that the Bluetooth connection between the first Bluetooth device and the second Bluetooth device meets the disconnection condition, controlling to disconnect the Bluetooth connection between the first Bluetooth device and the second Bluetooth device.
9. A mobile terminal, characterized in that the mobile terminal comprises:
a touch screen;
a processor;
a memory connected to the processor, the memory containing control instructions that, when read by the processor, control the mobile terminal to implement the audio transmission method of any of claims 1-8.
10. A computer-readable storage medium having one or more programs thereon for execution by one or more processors to perform the audio transmission method of any of claims 1 to 8.
CN202011355131.3A 2020-11-27 2020-11-27 Audio transmission method, mobile terminal and computer readable storage medium Active CN112492529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011355131.3A CN112492529B (en) 2020-11-27 2020-11-27 Audio transmission method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011355131.3A CN112492529B (en) 2020-11-27 2020-11-27 Audio transmission method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112492529A CN112492529A (en) 2021-03-12
CN112492529B true CN112492529B (en) 2022-09-23

Family

ID=74935720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011355131.3A Active CN112492529B (en) 2020-11-27 2020-11-27 Audio transmission method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112492529B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319968A (en) * 2022-06-21 2023-12-29 Oppo广东移动通信有限公司 Equipment connection method and device, audio playing equipment and device
CN117440279A (en) * 2022-07-15 2024-01-23 Oppo广东移动通信有限公司 Earphone intercom method and device, bluetooth earphone and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023866A (en) * 2011-08-25 2013-04-03 罗技欧洲公司 Easy sharing of wireless audio signals
CN103391118A (en) * 2013-07-23 2013-11-13 广东欧珀移动通信有限公司 Bluetooth headset and audio sharing method by virtue of Bluetooth headsets
CN103825635A (en) * 2014-03-11 2014-05-28 宁波翼动通讯科技有限公司 Method for sharing audio by Bluetooth headsets
CN105208511A (en) * 2015-08-28 2015-12-30 深圳市冠旭电子有限公司 Intelligent Bluetooth earphone-based music sharing method, system and intelligent Bluetooth earphone
CN109151640A (en) * 2018-09-03 2019-01-04 中科探索创新(北京)科技院 A kind of bluetooth infinite expanding earphone
CN111343622A (en) * 2020-03-02 2020-06-26 北京服装学院 Bluetooth sound box synchronous playing method, device and system
CN211019196U (en) * 2020-04-01 2020-07-14 欧水清 Wireless sharing earphone
CN111447600A (en) * 2020-03-31 2020-07-24 歌尔科技有限公司 Audio sharing method for wireless earphone, terminal device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174457B (en) * 2018-01-12 2020-09-01 恒玄科技(上海)股份有限公司 Charging box, communication system and communication method of Bluetooth headset

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023866A (en) * 2011-08-25 2013-04-03 罗技欧洲公司 Easy sharing of wireless audio signals
CN103391118A (en) * 2013-07-23 2013-11-13 广东欧珀移动通信有限公司 Bluetooth headset and audio sharing method by virtue of Bluetooth headsets
CN103825635A (en) * 2014-03-11 2014-05-28 宁波翼动通讯科技有限公司 Method for sharing audio by Bluetooth headsets
CN105208511A (en) * 2015-08-28 2015-12-30 深圳市冠旭电子有限公司 Intelligent Bluetooth earphone-based music sharing method, system and intelligent Bluetooth earphone
CN109151640A (en) * 2018-09-03 2019-01-04 中科探索创新(北京)科技院 A kind of bluetooth infinite expanding earphone
CN111343622A (en) * 2020-03-02 2020-06-26 北京服装学院 Bluetooth sound box synchronous playing method, device and system
CN111447600A (en) * 2020-03-31 2020-07-24 歌尔科技有限公司 Audio sharing method for wireless earphone, terminal device and storage medium
CN211019196U (en) * 2020-04-01 2020-07-14 欧水清 Wireless sharing earphone

Also Published As

Publication number Publication date
CN112492529A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN112004173B (en) Bluetooth headset switching method, mobile terminal and computer readable storage medium
CN107329682B (en) Edge interaction method and mobile terminal
CN109195143B (en) Network access method, mobile terminal and readable storage medium
CN107807767B (en) Communication service processing method, terminal and computer readable storage medium
CN109697008B (en) Content sharing method, terminal and computer readable storage medium
CN109144441B (en) Screen adjusting method, terminal and computer readable storage medium
CN112667181A (en) Screen projection method, screen projection equipment, screen projection control system and storage medium
CN108563388B (en) Screen operation method, mobile terminal and computer-readable storage medium
CN112492529B (en) Audio transmission method, mobile terminal and computer readable storage medium
CN107729104B (en) Display method, mobile terminal and computer storage medium
CN109522276B (en) Application icon management method, terminal and computer-readable storage medium
CN111158617A (en) Screen-casting content synchronization method, mobile terminal and computer-readable storage medium
CN108810262B (en) Application configuration method, terminal and computer readable storage medium
CN107566631B (en) Volume control method, mobile terminal and computer readable storage medium
CN112888084A (en) Full-band communication method and device and mobile terminal
CN112423211A (en) Multi-audio transmission control method, equipment and computer readable storage medium
CN109462829B (en) Call transfer method, device and computer readable storage medium
CN109683796B (en) Interaction control method, equipment and computer readable storage medium
CN110955397A (en) Method for setting frame rate of game terminal, game terminal and storage medium
CN107315523B (en) Split screen processing method, mobile terminal and computer readable storage medium
CN107678622B (en) Application icon display method, terminal and storage medium
CN113805837A (en) Audio processing method, mobile terminal and storage medium
CN109144747B (en) Data processing method, terminal and computer readable storage medium
CN109195210B (en) Power saving method, mobile terminal and computer readable storage medium
CN109558049B (en) Notification message display processing method, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant