CN110662205B - Bluetooth-based audio transmission method, device, medium and equipment - Google Patents

Bluetooth-based audio transmission method, device, medium and equipment Download PDF

Info

Publication number
CN110662205B
CN110662205B CN201810704445.6A CN201810704445A CN110662205B CN 110662205 B CN110662205 B CN 110662205B CN 201810704445 A CN201810704445 A CN 201810704445A CN 110662205 B CN110662205 B CN 110662205B
Authority
CN
China
Prior art keywords
bluetooth
data
ble broadcast
transmission
broadcast data
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
CN201810704445.6A
Other languages
Chinese (zh)
Other versions
CN110662205A (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.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information 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 China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201810704445.6A priority Critical patent/CN110662205B/en
Publication of CN110662205A publication Critical patent/CN110662205A/en
Application granted granted Critical
Publication of CN110662205B publication Critical patent/CN110662205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The present invention relates to the field of bluetooth technologies, and in particular, to a bluetooth-based audio transmission method, apparatus, medium, and device. According to the scheme provided by the embodiment of the invention, the Bluetooth equipment needing audio transmission can send the audio transmission request through BLE broadcast data, and audio transmission can be realized after connection is established between the Bluetooth equipment according to the audio transmission request without pairing as in the prior art, so that the audio transmission process is simplified, the complexity of operation is reduced, the waiting time in the audio transmission process is reduced, and the time consumption is reduced.

Description

Bluetooth-based audio transmission method, device, medium and equipment
Technical Field
The present invention relates to the field of bluetooth technologies, and in particular, to a bluetooth-based audio transmission method, apparatus, medium, and device.
Background
Bluetooth is a low-cost and high-capacity short-distance wireless communication specification, and can realize data exchange between fixed equipment and mobile equipment. On the basis, products such as the Bluetooth earphone, the Bluetooth sound box and the like are produced at the same time.
The existing Audio transmission scheme based on bluetooth is mainly based on the advanced Audio Distribution Profile (A2 DP) protocol and the Audio/Video Remote Control Profile (AVRCP) protocol.
A2DP specifies protocol stack software and a method of use for transmitting high-quality music file data using a Bluetooth asynchronous transmission channel method, based on which high-quality music can be transmitted by the Bluetooth method. AVRCP designs a standard interface for controlling TV, hi-fi devices, etc. AVRCP is used to permit a single remote control device (or other device) to control a/V devices that all users may access. AVRCP defines how to control features of streaming media including pause, stop, start playback, volume control, and other types of remote control operations.
Through A2DP protocol and AVRCP protocol, can realize the high-quality audio transmission of bluetooth headset or audio amplifier, and equipment such as cell-phone, personal computer or music player.
However, the existing audio transmission scheme based on bluetooth needs to pair first and then connect, and then transmit data after connection, so that the audio transmission process is complex, the operation is complex, and the time consumption is long.
Disclosure of Invention
The embodiment of the invention provides an audio transmission method, device, medium and equipment based on Bluetooth, which are used for solving the problems of complex operation and long time consumption in the audio transmission process based on Bluetooth.
A bluetooth-based audio transmission method, the method comprising:
receiving Bluetooth low energy consumption BLE broadcast data sent by Bluetooth equipment, wherein the BLE broadcast data carries an audio transmission request;
and according to the audio transmission request, after the connection is established with the Bluetooth equipment, sending audio data to the Bluetooth equipment or receiving the audio data sent by the Bluetooth equipment.
A bluetooth-based audio transmission method, the method comprising:
sending Bluetooth low energy consumption BLE broadcast data to Bluetooth equipment, wherein the BLE broadcast data carries an audio transmission request;
and after the connection with the Bluetooth equipment is established, receiving the audio data sent by the Bluetooth equipment, or sending the audio data to the Bluetooth equipment.
A bluetooth-based audio transmission apparatus, the apparatus comprising:
the receiving module is used for receiving Bluetooth low energy consumption BLE broadcast data sent by Bluetooth equipment, and the BLE broadcast data carries an audio transmission request;
and the transmission module is used for sending audio data to the Bluetooth equipment or receiving the audio data sent by the Bluetooth equipment after establishing connection with the Bluetooth equipment according to the audio transmission request.
A bluetooth-based audio transmission apparatus, the apparatus comprising:
the transmitting module is used for transmitting Bluetooth low energy consumption BLE broadcast data to Bluetooth equipment, wherein the BLE broadcast data carries an audio transmission request;
and the transmission module is used for receiving the audio data sent by the Bluetooth equipment or sending the audio data to the Bluetooth equipment after the connection with the Bluetooth equipment is established.
The present invention also provides a non-volatile computer storage medium having stored thereon an executable program for execution by a processor to perform the steps of implementing the method as described above.
The invention also provides a bluetooth-based audio transmission device comprising a memory, a processor and a computer program stored on the memory, the processor implementing the steps of the method as described above when executing the program.
According to the scheme provided by the embodiment of the invention, the Bluetooth equipment needing audio transmission can send the audio transmission request through BLE broadcast data, and audio transmission can be realized after connection is established between the Bluetooth equipment according to the audio transmission request without pairing as in the prior art, so that the audio transmission process is simplified, the complexity of operation is reduced, the waiting time in the audio transmission process is reduced, and the time consumption is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a bluetooth-based audio transmission method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a structure of a frame of speech data encoded in ADPCM according to an embodiment of the present invention;
figure 3 is a block diagram of five pieces of BLE broadcast data for transmitting speech data in a frame ADPCM encoded format according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a bluetooth-based audio transmission method according to a second embodiment of the present invention;
FIG. 5 is a functional framework diagram of a system according to a third embodiment of the present invention;
fig. 6 is a flowchart illustrating a bluetooth-based audio transmission method according to a third embodiment of the present invention;
fig. 7 is a flowchart illustrating a bluetooth-based audio transmission method according to a fourth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a bluetooth-based audio transmission apparatus according to a fifth embodiment of the present invention;
fig. 9 is a schematic structural diagram of a bluetooth-based audio transmission apparatus according to a sixth embodiment of the present invention;
fig. 10 is a schematic structural diagram of a bluetooth-based audio transmission apparatus according to a seventh embodiment of the present invention.
Detailed Description
According to the scheme provided by the embodiment of the invention, the Bluetooth equipment needing audio transmission can send the audio transmission request through Bluetooth Low Energy (BLE) broadcast data, and the audio transmission can be realized after the connection is established between the Bluetooth equipment according to the audio transmission request.
Due to the characteristic of BLE broadcasting, the audio transmission from a plurality of Bluetooth devices to one Bluetooth device (which can also be understood as from one Bluetooth device to a plurality of Bluetooth devices) can be realized, and the defect of one-to-one transmission in the prior art is further overcome.
Preferably, if the audio required to be transmitted is voice with a small amount of data, the voice data can be transmitted through the voice stream channel in the BLE connection channel without establishing a bluetooth connection, so that connectionless transmission of the voice data in bluetooth broadcasting is realized.
Furthermore, in consideration of the small data transmission bandwidth of the BLE connection channel, the voice data may be further compressed and subjected to a specific format coding, such as Adaptive Differential Pulse Code Modulation (ADPCM) coding, on the audio format, so as to reduce the data transmission pressure of the BLE connection channel.
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, in the description and claims of the present invention and the above-described drawings, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
An audio transmission method based on bluetooth provided by the present invention is described from a bluetooth device side receiving BLE broadcast data, where a flow of steps of the method may be as shown in fig. 1, and includes:
step 101, receiving BLE broadcast data.
In this step, the bluetooth device may receive BLE broadcast data sent by other bluetooth devices, where the BLE broadcast data carries an audio transmission request.
Specifically, in this step, the bluetooth device may receive BLE broadcast data sent by at least two other bluetooth devices.
And 102, transmitting audio data.
In this step, the bluetooth device may send audio data to another bluetooth device or receive audio data sent by another bluetooth device after establishing a connection with another bluetooth device according to the received audio transmission request.
Certainly, if the bluetooth device receives BLE broadcast data carrying the audio transmission request sent by at least two other bluetooth devices, connection may be established with each bluetooth device sending the BLE broadcast data, and audio data transmission is performed, that is, the bluetooth device may send audio data to other bluetooth devices, and may also receive audio data sent by other bluetooth devices.
When the audio data is transmitted, the audio data can be transmitted by the advanced audio distribution profile A2DP protocol, as in the prior art. At this time, the bluetooth device needs to establish a bluetooth connection with the bluetooth device that transmits BLE broadcast data.
Further, in this embodiment, the audio transmission request can be further divided into a voice transmission request and a non-voice transmission request:
aiming at the non-voice transmission request, bluetooth connection can be established with Bluetooth equipment which sends BLE broadcast data, and the transmission of the non-voice data is realized through an advanced audio distribution configuration file A2DP protocol.
Aiming at the voice transmission request, a BLE connection channel can be established with Bluetooth equipment sending BLE broadcast data, a sound flow channel in the BLE connection channel is opened, and the transmission of voice data is realized. For the voice transmission request, the transmitted voice data may be, but is not limited to, voice data with a small data volume, such as a voice control instruction.
Preferably, the voice data sent to the bluetooth device sending BLE broadcast data may be in a specified encoding format, for example, voice data in an ADPCM encoding format, so as to better implement voice data compression and reduce the amount of voice data that needs to be transmitted through the BLE connection channel. For example, when the voice data is in the ADPCM coding format, the data amount can be reduced by about 75% compared with the coding format adopted in the prior art.
A schematic diagram of the structure of a frame of voice data in ADPCM coding format can be shown in fig. 2, which includes a header of 4 bytes (byte) and voice data of 96 bytes. The frame header part may include a sequence number of one byte, a first header of one byte, a second header of one byte, and a third header of one byte. The first header includes a Step Index (SI), the second header includes a lower portion of a Predicted Value (PV), and the third header includes an upper portion of the Predicted Value.
If voice data in an ADPCM encoded format is transmitted to a bluetooth device, the following process may be included:
sending BLE broadcast data carrying a transmission starting command to the Bluetooth equipment;
after BLE broadcast data carrying a transmission starting command are sent to the Bluetooth equipment, voice data in an ADPCM coding format of each frame are sent to the Bluetooth equipment through five pieces of BLE broadcast data;
and when the voice data is determined to be sent completely, sending BLE broadcast data carrying a transmission ending command to the Bluetooth equipment.
That is, in the present embodiment, the audio compression transmission process is adopted in consideration of the call quality of voice and the BLE broadcast data transmission bandwidth. The audio format transmitted may be ADPCM encoded format, and may be broadcast for 5 transmissions in units of every 20 bytes by a header and tail division process in units of 96 bytes. A schematic diagram of the structure of five pieces of BLE broadcast data for transmitting voice data in a frame ADPCM encoded format can be shown in fig. 3. Five pieces of broadcast data may be sequentially written as Notification 1, notification 2, notification 3, notification 4, and Notification 5. Each piece of broadcast DATA may include a Link Layer (LL) part, a logical layer (L2 CAP) part, an application layer (ATT) part, and a DATA layer (DATA) part.
The LL portion is 2 bytes and includes an LL Identification (ID) for classifying LL Protocol Data Units (PDUs).
The L2CAP part is 4 bytes, and includes a Length value (Length) indicating the Length of the following information payload (information payload) of 2 bytes, and a Channel ID (Channel ID, marked as C ID in fig. 3) of 2 bytes, i.e., BLE uses a fixed Channel number.
The ATT part is 3 bytes and includes a 1-byte Opcode (Opcode, labeled O in fig. 3), and a 2-byte pointer (Handle).
The data portions of Notification 1, notification 2, notification 3, notification 4, and Notification 5 may sequentially include data obtained by slicing a frame of voice data in ADPCM encoding format every 20 bytes from a frame header, where the data portion of Notification 1 includes a frame header of 4 bytes and voice data of 16 bytes, and the data portions of Notification 2 to Notification 5 sequentially include voice data of 20 bytes.
Similarly, the bluetooth device may also receive voice data in ADPCM encoded format sent by other bluetooth devices, and the process may include:
receiving BLE broadcast data carrying a transmission starting command;
receiving BLE broadcast data carrying voice data in an ADPCM coding format according to received BLE broadcast data carrying a command for starting transmission, and caching the voice data in the ADPCM coding format;
and when BLE broadcast data carrying a command of ending transmission is received, decoding the cached voice data in the ADPCM coding format, and converting the voice data into voice data in a Pulse Code Modulation (PCM) coding format.
Example two
A second embodiment of the present invention provides an audio transmission method based on bluetooth, which is described from a bluetooth device side that sends BLE broadcast data, and a flow of steps of the method may be as shown in fig. 4, where the method includes:
and step 201, sending BLE broadcast data.
In this step, the bluetooth device may send BLE broadcast data to other bluetooth devices, where the BLE broadcast data carries an audio transmission request.
Specifically, in this step, the bluetooth device may transmit BLE broadcast data to at least two other bluetooth devices.
Step 202, audio data transmission is performed.
In this step, the bluetooth device may receive audio data transmitted by another bluetooth device or transmit audio data to another bluetooth device after establishing a connection with another bluetooth device that receives BLE broadcast data.
Of course, if the bluetooth device sends BLE broadcast data carrying the audio transmission request to at least two other bluetooth devices, a connection may be established with each bluetooth device that receives the BLE broadcast data, and audio data transmission may be performed.
In the solutions provided in the first and second embodiments of the present invention, distributed many-to-one audio transmission may be performed by using a bluetooth broadcast technology. And the audio coding mode can be improved according to different requirements of audio quality, and high-efficiency distributed intelligent audio data transmission is realized.
The method provided by the first embodiment and the second embodiment of the invention is explained by two specific examples.
EXAMPLE III
In this embodiment, it may be assumed that the bluetooth device receiving BLE broadcast data is one bluetooth speaker (which may be denoted as a master speaker in this embodiment), the bluetooth device sending BLE broadcast data is a plurality of bluetooth speakers (each bluetooth speaker sending BLE broadcast data, which may be denoted as a slave speaker in this embodiment), and a schematic diagram of a system functional framework may be shown in fig. 5. Fig. 5 illustrates an example in which the number of slave speakers is three, and in this embodiment, the number of slave speakers is at least one.
The following describes an audio transmission process between a slave speaker transmitting BLE broadcast data and a master speaker receiving BLE broadcast data. Assuming that the audio transmission request carried in the BLE broadcast data sent from the speaker is a voice transmission request in the process, the flow of the steps of the method provided by this embodiment may be as shown in fig. 6, and includes:
step 301, sending BLE broadcast data from the loudspeaker box.
In this embodiment, sending BLE broadcast data carrying the voice transmission request from the loudspeaker may be triggered by various forms, for example, by a user pressing a designated key on the loudspeaker.
The voice transmission request, such as a voice sending request, carried in the BLE broadcast data may be defined by a value of a specific byte in the BLE broadcast data. For example, when a value of a specific byte in the BLE broadcast data is 0x01, it indicates that the audio transmission request carried in the BLE broadcast data is a voice transmission request (e.g., a voice sending request).
And the master speaker may detect BLE broadcast data sent from the speakers.
And step 302, establishing a BLE connection channel between the master sound box and the slave sound box.
After the master speaker detects BLE broadcast data sent by the slave speaker, a BLE connection channel can be quickly established with the slave speaker according to a voice transmission request carried in the BLE broadcast data, and a voice stream (e.g., a voicett) channel in the BLE connection channel can be opened for realizing the transmission of the voice data.
Step 303, sending BLE broadcast data carrying a start transmission command from the loudspeaker box.
After the sound box detects that the BLE connection channel is established, the user can be informed in any form. For example, the user may be notified by means of an indicator light, and the user may determine that the BLE connection channel between the master loudspeaker box and the slave loudspeaker box is established when the indicator light on the slave loudspeaker box is turned on.
When the user is at the pilot lamp electric quantity on the slave loudspeaker box, the user can send out the pronunciation that need send to main loudspeaker box, for example voice control instruction to transmit to main loudspeaker box, realize the function control to main loudspeaker box. After receiving voice data sent by a user, the slave loudspeaker box firstly sends BLE broadcast data carrying a transmission starting command to the master loudspeaker box, and informs the master loudspeaker box of starting to transmit the voice data.
And step 304, sending BLE broadcast data carrying voice data from the sound box.
Preferably, the voice data recorded from the speaker may be in an ADPCM encoded format. Then for each frame of voice data in ADPCM encoded format, the slave speaker transmits the five pieces of BLE broadcast data to the master speaker.
In this step, the slave speaker may send at least one frame of speech data in ADPCM encoded format to the master speaker.
And 305, sending BLE broadcast data carrying a transmission ending command from the loudspeaker box.
When it is determined that the voice data transmission is completed, the slave loudspeaker box may transmit BLE broadcast data carrying a transmission completion command to the master loudspeaker box.
And step 306, the main sound box performs audio decoding.
The main sound box can buffer the voice data in the ADPCM coding format when receiving BLE broadcast data carrying the voice data in the ADPCM coding format each time, and can stop receiving when receiving BLE broadcast data which is sent from the sound box and carries a transmission ending command, extract the buffered voice data and perform audio decoding from the ADPCM coding format to the PCM coding format.
The main speaker can perform corresponding processing according to the voice data obtained after decoding. And performing function control according to the decoded voice control instruction.
Example four
In a fourth embodiment of the present invention, similar to the third embodiment, it may be assumed that the bluetooth device receiving BLE broadcast data is a bluetooth speaker (which may be denoted as a master speaker in this embodiment), and the bluetooth device sending BLE broadcast data is a plurality of bluetooth speakers (each of which may be denoted as a slave speaker in this embodiment).
The following describes an audio transmission process between a slave speaker transmitting BLE broadcast data and a master speaker receiving BLE broadcast data. Assuming that the audio transmission request carried in the BLE broadcast data sent from the speaker is a non-voice transmission request in the process, the flow of the steps of the method provided by this embodiment may be as shown in fig. 7, and includes:
and step 401, sending BLE broadcast data from the loudspeaker box.
In this embodiment, sending BLE broadcast data carrying the non-voice transmission request from the speaker may be triggered by various forms, for example, by a user pressing a set key on the speaker.
The non-voice transmission request carried in the BLE broadcast data, such as a music data reception request, may be defined by a value of a set byte in the BLE broadcast data. For example, when the value of the set byte in the BLE broadcast data is 0x00, it indicates that the audio transmission request carried in the BLE broadcast data is a non-voice transmission request (e.g., a music data reception request).
And the master speaker may detect BLE broadcast data sent from the speakers.
Step 402, the master speaker establishes a bluetooth connection with the slave speakers.
After the master loudspeaker box detects the BLE broadcast data sent by the slave loudspeaker box, the connection request can be sent to the slave loudspeaker box according to the non-voice transmission request carried in the BLE broadcast data, and the Bluetooth connection is established between the connection request and the slave loudspeaker box. And can realize the transmission of non-voice data through the advanced audio distribution configuration file A2DP protocol, for example, the music data is sent to the slave loudspeaker box.
In the third and fourth embodiments of the present invention, distributed audio transmission based on bluetooth can be implemented. A main Bluetooth device and a plurality of auxiliary Bluetooth devices can be combined in a star loose combination mode. The master Bluetooth device can realize the functions of voice analysis, function control and the like, and the slave Bluetooth device can realize the functions of uploading voice data to the master Bluetooth device, receiving audio data sent by the master Bluetooth device and the like. The slave Bluetooth device realizes audio transmission with the master Bluetooth device in an array combination and loose coupling mode through a Bluetooth 3.0A2DP protocol or a Bluetooth 4.2BLE channel wireless communication mode.
The following devices are provided based on the same inventive concept as the first to fourth embodiments.
EXAMPLE five
An embodiment of the present invention provides an audio transmission device based on bluetooth, where the structure of the device may be as shown in fig. 8, where:
the receiving module 11 is configured to receive bluetooth low energy BLE broadcast data sent by a bluetooth device, where the BLE broadcast data carries an audio transmission request; the transmission module 12 is configured to send audio data to the bluetooth device or receive the audio data sent by the bluetooth device after establishing a connection with the bluetooth device according to the audio transmission request.
The transmission module 12 is specifically configured to establish a BLE connection channel with the bluetooth device when the audio transmission request is a voice transmission request; and opening a sound flow channel in the BLE connection channel, and sending voice data to the Bluetooth equipment or receiving the voice data sent by the Bluetooth equipment.
The transmission module 12 is configured to send voice data to the bluetooth device, and includes: and sending voice data with a specified coding format to the Bluetooth equipment.
When the specified encoding format is an Adaptive Differential Pulse Code Modulation (ADPCM) encoding format, the transmission module 12 is configured to send voice data in the ADPCM encoding format to the Bluetooth device, and includes: sending BLE broadcast data carrying a transmission starting command to the Bluetooth equipment; after BLE broadcast data carrying a transmission starting command are sent to the Bluetooth equipment, voice data in an ADPCM coding format of each frame are sent to the Bluetooth equipment through five pieces of BLE broadcast data; and when the voice data is determined to be sent completely, sending BLE broadcast data carrying a transmission ending command to the Bluetooth equipment.
The transmission module 12 is configured to receive voice data sent by the bluetooth device, and includes: receiving BLE broadcast data carrying a transmission starting command; receiving BLE broadcast data carrying voice data in an ADPCM coding format according to received BLE broadcast data carrying a transmission starting command, and caching the voice data in the ADPCM coding format; and when BLE broadcast data carrying a command of ending transmission is received, decoding the cached voice data in the ADPCM coding format, and converting the voice data into voice data in the pulse code modulation PCM coding format.
EXAMPLE six
An embodiment of the present invention provides an audio transmission apparatus based on bluetooth, where the structure of the apparatus may be as shown in fig. 9, where:
the sending module 21 is configured to send BLE broadcast data to the bluetooth device, where the BLE broadcast data carries an audio transmission request; the transmission module 22 is configured to receive the audio data sent by the bluetooth device or send the audio data to the bluetooth device after establishing a connection with the bluetooth device.
It should be noted that the apparatuses provided in the fifth and sixth embodiments of the present invention may be integrated in the same bluetooth device, that is, one bluetooth device may be used as both a bluetooth device for sending BLE broadcast data and a bluetooth device for receiving BLE broadcast data, and may simultaneously implement the steps of the methods described in the first and second embodiments of the present invention.
Based on the same inventive concept, embodiments of the present invention provide the following apparatus and medium.
EXAMPLE seven
A third embodiment of the present invention provides an audio transmission device based on bluetooth, where the structure of the device may be as shown in fig. 10, and the audio transmission device includes a memory 31, a processor 32, and a computer program stored in the memory, and when the processor 32 executes the program, the steps of the method in the first embodiment of the present invention are implemented, or the steps of the method in the second embodiment of the present invention are implemented.
Optionally, the processor 32 may specifically include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), one or more integrated circuits for controlling program execution, a hardware circuit developed by using a Field Programmable Gate Array (FPGA), or a baseband processor.
Optionally, the processor 32 may include at least one processing core.
Alternatively, the memory 31 may include a Read Only Memory (ROM), a Random Access Memory (RAM), and a disk memory. The memory 31 is used for storing data required by the at least one processor 32 during operation. The number of the memory 31 may be one or more.
An eighth embodiment of the present invention provides a nonvolatile computer storage medium, where the computer storage medium stores an executable program, and when the executable program is executed by a processor, the method provided in the first embodiment or the method provided in the second embodiment of the present invention is implemented.
In particular implementations, the computer storage media may include: various storage media capable of storing program codes, such as a Universal Serial Bus flash drive (USB), a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In the embodiments of the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the unit or the division of the unit is only one type of logical function division, and other division manners may be available in actual implementation, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical or other form.
The functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be an independent physical module.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device, such as a personal computer, a server, or a network device, or a processor (processor) to execute all or part of the steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a universal serial bus flash drive (usb flash drive), a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, and various media capable of storing program codes.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, 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, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (17)

1. A method for bluetooth-based audio transmission, the method comprising:
under the condition of unpairing, receiving Bluetooth low energy consumption BLE broadcast data sent by Bluetooth equipment, wherein the BLE broadcast data carries an audio transmission request;
and according to the audio transmission request, after connection with the Bluetooth equipment is established, sending audio data to the Bluetooth equipment, or receiving the audio data sent by the Bluetooth equipment.
2. The method of claim 1, wherein the number of bluetooth devices is at least two.
3. The method according to claim 1 or 2, wherein when the audio transmission request is a voice transmission request, a BLE connection channel is established with the Bluetooth device;
and opening a sound flow channel in the BLE connection channel, and sending voice data to the Bluetooth device or receiving the voice data sent by the Bluetooth device.
4. The method of claim 3, wherein transmitting voice data to the Bluetooth device comprises:
and sending voice data with a specified coding format to the Bluetooth equipment.
5. The method of claim 4, wherein the specified encoding format is an Adaptive Differential Pulse Code Modulation (ADPCM) encoding format.
6. The method of claim 5, wherein transmitting voice data in an ADPCM encoded format to the bluetooth device comprises:
sending BLE broadcast data carrying a transmission starting command to the Bluetooth equipment;
after BLE broadcast data carrying a transmission starting command are sent to the Bluetooth equipment, voice data in an ADPCM coding format of each frame are sent to the Bluetooth equipment through five pieces of BLE broadcast data;
and when the voice data is determined to be sent completely, sending BLE broadcast data carrying a transmission ending command to the Bluetooth equipment.
7. The method of claim 3, wherein receiving voice data transmitted by the Bluetooth device comprises:
receiving BLE broadcast data carrying a transmission starting command;
receiving BLE broadcast data carrying voice data in an ADPCM coding format according to received BLE broadcast data carrying a transmission starting command, and caching the voice data in the ADPCM coding format;
and when BLE broadcast data carrying a command of ending transmission is received, decoding the buffered voice data in the ADPCM coding format, and converting the voice data into voice data in the Pulse Code Modulation (PCM) coding format.
8. A method for bluetooth-based audio transmission, the method comprising:
under the condition of unpairing, sending Bluetooth low energy consumption BLE broadcast data to Bluetooth equipment, wherein the BLE broadcast data carries an audio transmission request;
and after the connection with the Bluetooth equipment is established, receiving the audio data sent by the Bluetooth equipment, or sending the audio data to the Bluetooth equipment.
9. The method of claim 8, wherein the number of bluetooth devices is at least two.
10. An apparatus for bluetooth-based audio transmission, the apparatus comprising:
the receiving module is used for receiving Bluetooth low energy consumption BLE broadcast data sent by Bluetooth equipment under the condition of unpaired, wherein the BLE broadcast data carries an audio transmission request;
and the transmission module is used for sending audio data to the Bluetooth equipment or receiving the audio data sent by the Bluetooth equipment after establishing connection with the Bluetooth equipment according to the audio transmission request.
11. The apparatus according to claim 10, wherein the transmission module is specifically configured to establish a BLE connection channel with the bluetooth device when the audio transmission request is a voice transmission request; and opening a sound flow channel in the BLE connection channel, and sending voice data to the Bluetooth device or receiving the voice data sent by the Bluetooth device.
12. The apparatus of claim 11, wherein the transmission module, configured to send voice data to the bluetooth device, comprises: and sending voice data with a specified coding format to the Bluetooth equipment.
13. The apparatus of claim 12, wherein the transmission module, when the specified encoding format is an Adaptive Differential Pulse Code Modulation (ADPCM) encoding format, is configured to transmit voice data in the ADPCM encoding format to the Bluetooth device, and comprises: sending BLE broadcast data carrying a transmission starting command to the Bluetooth equipment; after BLE broadcast data carrying a command for starting transmission are sent to the Bluetooth device, aiming at voice data in an ADPCM coding format of each frame, the voice data are sent to the Bluetooth device through five pieces of BLE broadcast data; and when determining that the voice data transmission is finished, transmitting BLE broadcast data carrying a transmission finishing command to the Bluetooth equipment.
14. The apparatus of claim 11, wherein the transmission module, configured to receive voice data sent by the bluetooth device, comprises: receiving BLE broadcast data carrying a transmission starting command; receiving BLE broadcast data carrying voice data in an ADPCM coding format according to received BLE broadcast data carrying a transmission starting command, and caching the voice data in the ADPCM coding format; and when BLE broadcast data carrying a command of ending transmission is received, decoding the buffered voice data in the ADPCM coding format, and converting the voice data into voice data in the Pulse Code Modulation (PCM) coding format.
15. An apparatus for bluetooth-based audio transmission, the apparatus comprising:
the transmitting module is used for transmitting Bluetooth low energy consumption BLE broadcast data to the Bluetooth equipment under the condition of unpaired, wherein the BLE broadcast data carries an audio transmission request;
and the transmission module is used for receiving the audio data sent by the Bluetooth equipment or sending the audio data to the Bluetooth equipment after the connection with the Bluetooth equipment is established.
16. A non-transitory computer storage medium storing an executable program for execution by a processor to perform the steps of the method of any one of claims 1 to 7 or to perform the steps of the method of any one of claims 8 to 9.
17. A bluetooth-based audio transmission device, comprising a memory, a processor and a computer program stored on the memory, the processor implementing the steps of the method according to any one of claims 1 to 7 or the steps of the method according to any one of claims 8 to 9 when executing the program.
CN201810704445.6A 2018-06-30 2018-06-30 Bluetooth-based audio transmission method, device, medium and equipment Active CN110662205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810704445.6A CN110662205B (en) 2018-06-30 2018-06-30 Bluetooth-based audio transmission method, device, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810704445.6A CN110662205B (en) 2018-06-30 2018-06-30 Bluetooth-based audio transmission method, device, medium and equipment

Publications (2)

Publication Number Publication Date
CN110662205A CN110662205A (en) 2020-01-07
CN110662205B true CN110662205B (en) 2023-04-11

Family

ID=69026998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810704445.6A Active CN110662205B (en) 2018-06-30 2018-06-30 Bluetooth-based audio transmission method, device, medium and equipment

Country Status (1)

Country Link
CN (1) CN110662205B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689233A (en) * 2020-12-29 2021-04-20 北京百瑞互联技术有限公司 Bluetooth audio transmitting and receiving method, Bluetooth audio-visual system and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201984809U (en) * 2011-01-20 2011-09-21 潍坊歌尔电子有限公司 Bluetooth wideband speech processing device
CN105653237B (en) * 2016-02-01 2019-03-22 宇龙计算机通信科技(深圳)有限公司 Audio play control method, audio broadcasting control system and terminal
US10034160B2 (en) * 2016-04-14 2018-07-24 Lg Electronics Inc. Method and apparatus for transmitting or receiving data using bluetooth in wireless communication system
WO2018152679A1 (en) * 2017-02-21 2018-08-30 万魔声学科技有限公司 Audio file transmitting method and apparatus, audio file receiving method and apparatus, devices and system
CN107205210B (en) * 2017-05-18 2023-06-09 欧普照明股份有限公司 Method, device, system and computer program for configuring wireless network node
CN107277754B (en) * 2017-07-12 2020-02-28 深圳市冠旭电子股份有限公司 Bluetooth connection method and Bluetooth peripheral equipment

Also Published As

Publication number Publication date
CN110662205A (en) 2020-01-07

Similar Documents

Publication Publication Date Title
EP3629561B1 (en) Data transmission method and system, and bluetooth headphone
CN109785841B (en) Bluetooth intelligent equipment voice interaction system and method
US10007479B2 (en) User terminal, method for playing audio data via bluetooth, and digital signal processor
US20220263883A1 (en) Adaptive audio processing method, device, computer program, and recording medium thereof in wireless communication system
CN107005800B (en) Audio file transmission and receiving method, device, equipment and system
KR102569374B1 (en) How to operate a Bluetooth device
CN109661828B (en) Control bluetooth multimedia device
EP2490349A1 (en) Method, apparatus and system for transmitting multimedia data by bluetooth and real-time playing
CN110010139B (en) Audio input/output method, system and computer readable storage medium
WO2014090040A1 (en) Method of using a mobile device as a microphone, method of audio playback, and related device and system
CN108718361B (en) Audio file playing method and wireless answering device
US20170006372A1 (en) Dual-microphone headset and noise reduction processing method for audio signal in call
CN111276135B (en) Network voice recognition method, network service interaction method and intelligent earphone
US9008580B2 (en) Configuring a codec for communicating audio data using a Bluetooth network connection
CN110880949B (en) Bluetooth communication method, device and system
CN110662205B (en) Bluetooth-based audio transmission method, device, medium and equipment
WO2018103483A1 (en) Smart helmet having remote control, and remote control method thereof
CN201323575Y (en) Bluetooth headset
KR102423827B1 (en) Transmission apparatus and method for controlling the transmission apparatus thereof
CN110366752B (en) Voice frequency division transmission method, source terminal, play terminal, source terminal circuit and play terminal circuit
US20220229628A1 (en) Method, device and computer program for controlling audio data in wireless communication system, and recording medium therefor
WO2024001398A1 (en) Audio data transmission method and apparatus, and chip, electronic device and storage medium
US20140163971A1 (en) Method of using a mobile device as a microphone, method of audio playback, and related device and system
US11323803B2 (en) Earphone, earphone system, and method in earphone system
US11907613B2 (en) Method, device, and computer program for audio routing in wireless communication system, and recording medium therefor

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Xu Yun

Inventor after: Wang Yulong

Inventor after: Yang Yifan

Inventor before: Xu Yun

Inventor before: Wang Yulong

Inventor before: Zhang Yifan