CN102412877B - Non-audio data transmission method based on A2DP (audio 2 device protocol) - Google Patents

Non-audio data transmission method based on A2DP (audio 2 device protocol) Download PDF

Info

Publication number
CN102412877B
CN102412877B CN201110441085.3A CN201110441085A CN102412877B CN 102412877 B CN102412877 B CN 102412877B CN 201110441085 A CN201110441085 A CN 201110441085A CN 102412877 B CN102412877 B CN 102412877B
Authority
CN
China
Prior art keywords
audio data
sbc
bluetooth
packets
packet
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
CN201110441085.3A
Other languages
Chinese (zh)
Other versions
CN102412877A (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.)
SHANGHAI MOUNTAIN VIEW SILICON CO Ltd
Original Assignee
SHANGHAI MOUNTAIN VIEW SILICON 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 SHANGHAI MOUNTAIN VIEW SILICON CO Ltd filed Critical SHANGHAI MOUNTAIN VIEW SILICON CO Ltd
Priority to CN201110441085.3A priority Critical patent/CN102412877B/en
Publication of CN102412877A publication Critical patent/CN102412877A/en
Application granted granted Critical
Publication of CN102412877B publication Critical patent/CN102412877B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a non-audio data transmission method based on an A2DP (audio 2 device protocol). The method is mainly characterized in that on the premise of not changing the existing Bluetooth related protocols, when a sending terminal embeds non-audio data into the head or tail of an SBC (subband coding) audio data packet so as to encapsulate the SBC audio data packet into an SBC data packet and transmits the SBC data packet to a receiving terminal through Bluetooth according to the A2DP, the receiving terminal separates the SBC audio data packet and the non-audio data out from the received SBC data packet according to a preset analysis rule, so that the receiving terminal can synchronously display the required non-audio data while displaying audio data, thus the Bluetooth-based aural reception experience of a user can be enriched.

Description

A kind of non-audio data transmission method based on A2DP agreement
Technical field
The present invention relates to a kind of moving communicating field, particularly relate to a kind of non-audio data transmission method based on A2DP agreement.
Background technology
Along with the fast-descending of blue tooth products price, bluetooth equipment has obtained universal fast, and the device with Bluetooth function is also more and more general, and especially in field of mobile phones, bluetooth has almost become a kind of de facto standards configuration.
Current, important function of bluetooth is utilized exactly bluetooth high quality audio (A2DP) agreement that audio signal is sent to bluetooth from bluetooth output equipment (as mobile phone etc.) and is play receiving equipment (as bluetooth earphone, Baffle Box of Bluetooth etc.), and wherein without any need for the physical connection of wired mode.People are enjoying bluetooth high quality audio simultaneously easily conscientiously, but find to think further to improve that to listen to experience but very inconvenient, as cannot be at bluetooth receiving terminal synchronously displaying lyrics or a series of attribute informations of audio frequency media itself, as album name, song length, singer informations etc.
For the user that can improve this respect experiences, how a kind of non-audio data transmission method based on A2DP agreement is proposed, just seem very meaningful.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of non-audio data transmission method based on A2DP agreement, with under the prerequisite of related protocol that is not changing existing bluetooth, can other non-audio data of real-time Transmission, and then enrich user and use the experience of listening to of bluetooth.
For achieving the above object and other relevant objects, the invention provides a kind of non-audio data transmission method based on A2DP agreement, it is applied between the transmitting terminal and receiving terminal of supporting bluetooth approach to carry out audio data transmission, and described voice data is the SBC packets of audio data encapsulating according to SBC standard, it is characterized in that, the described non-audio data transmission method based on A2DP agreement comprises: at described transmitting terminal, non-audio data is embedded in to packet header or the bag tail of described SBC packets of audio data, and is encapsulated as SBC packet; At described transmitting terminal, after the normal pairing of bluetooth of transmitting terminal and receiving terminal, described SBC packet is carried out to wireless transmission transmission by described A2DP agreement through bluetooth; At described receiving terminal, receive described SBC packet by described A2DP agreement through bluetooth; And at described receiving terminal, according to a default resolution rules, in the SBC packet receiving, isolate SBC packets of audio data and non-audio data.
Wherein, the bag tail that non-audio data is embedded in to described SBC packets of audio data is only suitable in the situation that described SBC packets of audio data sound intermediate frequency data do not take completely.This SBC packets of audio data comprises the information using sync byte as first byte.This non-audio data is to carry out by bluetooth SBC code stream synchronization mechanism the data that do not comprise sync byte that conservation treatment obtains.This sync byte is 0x9C.This default resolution rules is for parsing SBC packets of audio data according to described first byte information and described SBC standard, and what do not parse is non-audio data.
As mentioned above, non-audio data transmission method based on A2DP agreement of the present invention is (not need to change Bluetooth protocol itself) on existing Bluetooth protocol basis, in by blue tooth transmission audio frequency data, the non-audio data of needs transmission is embedded in SBC packets of audio data in the lump, and be encapsulated as SBC packet, and the non-audio data of embedding is extracted in SBC packet at bluetooth receiving terminal, so, can conscientiously enjoy bluetooth high quality audio simultaneously easily, and the non-audio data such as the such as lyrics of simultaneous display, and further enrich user and use the experience of listening to of bluetooth.
Accompanying drawing explanation
Fig. 1 is shown as the operational flowchart of the non-audio data transmission method based on A2DP agreement of the present invention.
Element numbers explanation
S10~S40 step
Embodiment
Below, by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the disclosed content of this specification.The present invention can also be implemented or be applied by other different embodiment, and the every details in this specification also can be based on different viewpoints and application, carries out various modifications or change not deviating under spirit of the present invention.
Refer to Fig. 1.It should be noted that, the diagram providing in the present embodiment only illustrates basic conception of the present invention in a schematic way, satisfy and only show with assembly relevant in the present invention in graphic but not component count, shape and size drafting while implementing according to reality, when its actual enforcement, kenel, quantity and the ratio of each assembly can be a kind of random change, and its assembly layout kenel also may be more complicated.
As shown in the figure, the invention provides a kind of non-audio data transmission method based on A2DP agreement, it is applied between the transmitting terminal and receiving terminal of supporting bluetooth approach to carry out audio data transmission, and described voice data is the SBC packets of audio data encapsulating according to SBC standard, this SBC packets of audio data comprises the information using sync byte as first byte, in the present embodiment, this sync byte is 0x9C.Below the operating procedure of the non-audio data transmission method based on A2DP agreement of the present invention is elaborated.
First perform step S10, at transmitting terminal, non-audio data is embedded in to packet header or the bag tail of SBC packets of audio data, and is encapsulated as SBC packet.Then, execution step S20.Wherein, this non-audio data is to carry out by bluetooth SBC code stream synchronization mechanism the data that do not comprise sync byte that conservation treatment obtains.In addition, need be explained, the bag tail that non-audio data is embedded in to described SBC packets of audio data is only suitable in the situation that described SBC packets of audio data sound intermediate frequency data do not take completely.
In step S20, at transmitting terminal, after the normal pairing of bluetooth of transmitting terminal and receiving terminal, this SBC packet is carried out to wireless transmission transmission by A2DP agreement through bluetooth.Then, execution step S30.
In step S30, at receiving terminal, receive this SBC packet by this A2DP agreement through bluetooth.Then, execution step S40.
In step S40, at receiving terminal, according to a default resolution rules, in the SBC packet receiving, isolate SBC packets of audio data and non-audio data.Wherein, this default resolution rules is for parsing SBC packets of audio data according to described first byte information and described SBC standard, and what do not parse is non-audio data.
For how the more detailed understanding application non-audio data transmission method based on A2DP agreement of the present invention transmits in the lump other non-audio data in using blue tooth transmission audio frequency data, be below explained for 2 examples.
Example one: with 0,1,2,3,4,5,6,7, the packet header that 8,90 non-audio data are embedded in SBC packets of audio data is that example describes.
First; non-audio data 0~9 this 10 number that need to simultaneously transmit is carried out conservation treatment by bluetooth SBC code stream synchronization mechanism and is obtained the 16 system data that do not comprise sync byte; be 0x30 to 0x39; then; each non-audio data that takies a byte (8 bit) is embedded in to the packet header of current SBC packets of audio data and is encapsulated as SBC packet, and the structural representation of this SBC packet is as following table 1:
Table 1
0x30 0x31 0x32 0x33 …… 0x39 0x9C XXXX
The sync byte of a SBC packets of audio data of 0x9C byte representation in upper table 1,0x30 to 0x39 in table, the data before sync byte 0x9C are non-audio data, in table, XXXX represents the data of a SBC packets of audio data.
Then, the bluetooth equipment of transmitting terminal and receiving terminal normally matches, and after normal pairing, in this transmitting terminal, the SBC packet having encapsulated is carried out to wireless transmission transmission by A2DP agreement through bluetooth.
Afterwards, at this receiving terminal, receive this SBC packet by this A2DP agreement through bluetooth.
Finally, at this receiving terminal, according to default resolution rules, in the SBC packet receiving, isolate SBC packets of audio data and non-audio data, extract by 10 data before 0x9C sync byte, and give corresponding audio decoder decode playback the data that start with 0x9C.
Example two: with in the situation that SBC packets of audio data sound intermediate frequency data do not take completely by 0,1,2,3,4,5,6,7, the bag tail that 8,90 non-audio data are embedded in SBC packets of audio data is that example describes.
First; non-audio data 0~9 this 10 number that need to simultaneously transmit is carried out conservation treatment by bluetooth SBC code stream synchronization mechanism and is obtained the 16 system data that do not comprise sync byte; then; each non-audio data that takies a byte (8 bit) is embedded in to the bag tail of current SBC packets of audio data and is encapsulated as SBC packet, and the structural representation of this SBC packet is as following table 2:
Table 2
0x9C XXXX 0x30 0x31 0x32 0x33 …… 0x39
The sync byte of a SBC packets of audio data of 0x9C byte representation in upper table 2, in table, XXXX represents the data of a SBC packets of audio data, and 0x30 to 0x39 in table, the data after data XXXX are non-audio data.
Then, the bluetooth equipment of transmitting terminal and receiving terminal normally matches, and after normal pairing, in this transmitting terminal, the SBC packet having encapsulated is carried out to wireless transmission transmission by A2DP agreement through bluetooth.
Afterwards, at this receiving terminal, receive this SBC packet by this A2DP agreement through bluetooth.
Finally, at this receiving terminal, according to default resolution rules, in received SBC packet, isolate SBC packets of audio data and non-audio data, obtain an effectively voice data XXXX who starts after sync byte 0x9C according to 0x9C sync byte information and SBC standard, and give corresponding audio decoder decode playback by this effectively individual voice data XXXX, and data XXXX data are afterwards separated as non-audio data.
In sum, non-audio data transmission method based on A2DP agreement of the present invention is mainly with under the prerequisite of related protocol that does not change existing bluetooth, in bluetooth playing audio-fequency data, the non-audio data of needs transmission is embedded in SBC packets of audio data, and be encapsulated as SBC packet, and the non-audio data of embedding is extracted in SBC packet at bluetooth receiving terminal, so, can conscientiously enjoy bluetooth high quality audio simultaneously easily, and the non-audio data such as the such as lyrics of simultaneous display, and further enrich user and use the experience of listening to of bluetooth.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all can, under spirit of the present invention and category, modify or change above-described embodiment.Therefore, such as in affiliated technical field, have and conventionally know that the knowledgeable, not departing from all equivalence modifications that complete under disclosed spirit and technological thought or changing, must be contained by claim of the present invention.

Claims (1)

1. the non-audio data transmission method based on A2DP agreement, it is applied between the transmitting terminal and receiving terminal of supporting bluetooth approach to carry out audio data transmission, and described voice data is the SBC packets of audio data encapsulating according to SBC standard, described SBC packets of audio data comprises the information using sync byte as first byte, it is characterized in that, the described non-audio data transmission method based on A2DP agreement comprises:
At described transmitting terminal, non-audio data is embedded in to packet header or the bag tail of described SBC packets of audio data, and be encapsulated as SBC packet, and described non-audio data is to carry out by bluetooth SBC code stream synchronization mechanism the data that do not comprise sync byte that conservation treatment obtains; Wherein, the bag tail that non-audio data is embedded in to described SBC packets of audio data is only suitable in the situation that described SBC packets of audio data sound intermediate frequency data do not take completely;
At described transmitting terminal, after the normal pairing of bluetooth of transmitting terminal and receiving terminal, described SBC packet is carried out to wireless transmission transmission by described A2DP agreement through bluetooth;
At described receiving terminal, receive described SBC packet by described A2DP agreement through bluetooth; And
At described receiving terminal, according to a default resolution rules, in the SBC packet receiving, parse SBC packets of audio data according to described first byte information and described SBC standard, what do not parse is non-audio data.
CN201110441085.3A 2011-12-23 2011-12-23 Non-audio data transmission method based on A2DP (audio 2 device protocol) Active CN102412877B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110441085.3A CN102412877B (en) 2011-12-23 2011-12-23 Non-audio data transmission method based on A2DP (audio 2 device protocol)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110441085.3A CN102412877B (en) 2011-12-23 2011-12-23 Non-audio data transmission method based on A2DP (audio 2 device protocol)

Publications (2)

Publication Number Publication Date
CN102412877A CN102412877A (en) 2012-04-11
CN102412877B true CN102412877B (en) 2014-05-28

Family

ID=45914755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110441085.3A Active CN102412877B (en) 2011-12-23 2011-12-23 Non-audio data transmission method based on A2DP (audio 2 device protocol)

Country Status (1)

Country Link
CN (1) CN102412877B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200263B (en) * 2013-04-02 2016-06-01 上海山景集成电路股份有限公司 Intelligent terminal and Bluetooth audio frequency playback equipment and exchange method, system
CN104023007A (en) * 2014-05-14 2014-09-03 上海卓悠网络科技有限公司 Data flow sending and reception method, terminal and system thereof
CN105407446B (en) * 2014-09-15 2019-04-12 中强光电股份有限公司 A kind of blue-tooth device, projection arrangement and data transmission method
CN106205657B (en) * 2016-07-27 2019-11-05 腾讯科技(深圳)有限公司 A kind of lyric display method and device
CN107528793B (en) * 2017-08-01 2021-09-14 惠州Tcl移动通信有限公司 Bluetooth transmission processing method, storage device and mobile terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1630347A (en) * 2003-12-19 2005-06-22 乐金电子(中国)研究开发中心有限公司 Method and apparatus for addressable play of rolling/static title in digital television
CN1881821A (en) * 2005-05-26 2006-12-20 美国博通公司 Method and system for wireless communication
CN1925350A (en) * 2005-08-30 2007-03-07 美国博通公司 Method and system for processing data
CN1972408A (en) * 2006-11-30 2007-05-30 中兴通讯股份有限公司 A data transmission method for mobile multimedia broadcasting system
CN101499827A (en) * 2009-03-03 2009-08-05 青岛海信移动通信技术股份有限公司 Mobile terminal and Bluetooth communication method thereof
CN102196319A (en) * 2010-03-17 2011-09-21 中兴通讯股份有限公司 Live streaming service system and realization method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1630347A (en) * 2003-12-19 2005-06-22 乐金电子(中国)研究开发中心有限公司 Method and apparatus for addressable play of rolling/static title in digital television
CN1881821A (en) * 2005-05-26 2006-12-20 美国博通公司 Method and system for wireless communication
CN1925350A (en) * 2005-08-30 2007-03-07 美国博通公司 Method and system for processing data
CN1972408A (en) * 2006-11-30 2007-05-30 中兴通讯股份有限公司 A data transmission method for mobile multimedia broadcasting system
CN101499827A (en) * 2009-03-03 2009-08-05 青岛海信移动通信技术股份有限公司 Mobile terminal and Bluetooth communication method thereof
CN102196319A (en) * 2010-03-17 2011-09-21 中兴通讯股份有限公司 Live streaming service system and realization method

Also Published As

Publication number Publication date
CN102412877A (en) 2012-04-11

Similar Documents

Publication Publication Date Title
CN102412877B (en) Non-audio data transmission method based on A2DP (audio 2 device protocol)
CN103607678B (en) A kind of wireless synchronization audio amplifier
CN105357604B (en) Audio playing device with Bluetooth function and audio playing method
US11800340B2 (en) Method for receiving audio data by using bluetooth technology, and apparatus therefor
CN106531177A (en) Audio treatment method, a mobile terminal and system
CN104254007B (en) A kind of audio-frequency processing method and device
CN103151056A (en) Wireless sharing of audio files and related information
CN102655584A (en) Media data transmitting and playing method and system in tele-presence technology
CN103841498A (en) Terminal and stereophonic playing system and method
CN106341719A (en) Synchronized audio play method simultaneously using various kinds of play modules of equipment and apparatus thereof
CN104361847A (en) Advertising playing system and method capable of interacting through audio
CN105898541A (en) Method and device for reducing waiting time in multimedia system
US11736919B2 (en) Method for receiving audio data by using bluetooth technology, and device therefor
CN107431859B (en) The device and method of the radio broadcasting of audio data for the encapsulation with control data
CN109819303A (en) Data output method and relevant device
CN106210312A (en) A kind of played in stereo method based on mobile terminal, mobile terminal and system
CN108810860A (en) A kind of audio frequency transmission method, terminal device and main earphone
CN102693716B (en) Television karaoke system supporting network scoring function and television karaoke realization method
CN101600060B (en) Bluetooth host-slave two sound track stereophony digital television
CN105681822A (en) Audio playing and big data acquisition method and device based on wifi
WO2015154496A1 (en) Adaptive audio output method and apparatus, and audio sending end and system
CN114531671A (en) Automobile audio playing control method based on integration of Bluetooth and DLNA technologies
CN109743658A (en) A kind of information processing method and electronic equipment
CN107277593A (en) With screen video broadcasting method and device
CN108289245A (en) Automatic media information broadcasting method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 201203. 602, 603, building 2, 112 Liang Xiu Road, Zhangjiang hi tech park, Shanghai

Applicant after: Shanghai Mountain View Silicon Co., Ltd.

Address before: 200135, A building, block 1518, Golden Eagle building, No. 403 Minsheng Road, Shanghai, Pudong New Area

Applicant before: Shanghai Mvsilicon Integrated Circuit Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHANJING CIRCUIT TECH CO., LTD., SHANGHAI TO: SHANGHAI SHANJING INTEGRATED CIRCUITS CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant