CN105302752B - A kind of connection method of audio frequency apparatus, audio playing apparatus - Google Patents

A kind of connection method of audio frequency apparatus, audio playing apparatus Download PDF

Info

Publication number
CN105302752B
CN105302752B CN201510685014.6A CN201510685014A CN105302752B CN 105302752 B CN105302752 B CN 105302752B CN 201510685014 A CN201510685014 A CN 201510685014A CN 105302752 B CN105302752 B CN 105302752B
Authority
CN
China
Prior art keywords
audio frequency
frequency apparatus
transport protocol
audio
message
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
CN201510685014.6A
Other languages
Chinese (zh)
Other versions
CN105302752A (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.)
Bird Innovation Beijing Technology Co ltd
Original Assignee
Beijing Xiaoniao Tingting 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 Beijing Xiaoniao Tingting Technology Co Ltd filed Critical Beijing Xiaoniao Tingting Technology Co Ltd
Priority to CN201510685014.6A priority Critical patent/CN105302752B/en
Publication of CN105302752A publication Critical patent/CN105302752A/en
Application granted granted Critical
Publication of CN105302752B publication Critical patent/CN105302752B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Abstract

The invention discloses a kind of connection methods of audio frequency apparatus, audio playing apparatus, comprising: audio playing apparatus is based on the first transport protocol and sends first message to audio frequency apparatus;When receiving the second message that the audio frequency apparatus is sent, the second message is analyzed;Based on the analysis results, the transport protocol type that the audio frequency apparatus is supported is determined;Based on the transport protocol type that the audio frequency apparatus is supported, connection is established with the audio frequency apparatus and receives audio data and broadcasting that the audio frequency apparatus is sent.

Description

A kind of connection method of audio frequency apparatus, audio playing apparatus
Technical field
The present invention relates to the interconnection techniques of audio frequency apparatus more particularly to a kind of connection method of audio frequency apparatus, audio to play Device.
Background technique
Existing electronic equipment, such as mobile phone, tablet computer etc. have audio player mostly, and user can use electronics The audio file of audio player plays storage in the electronic device in equipment, such as music.In some scenarios, such as shadow Institute, user need to play out the audio file in electronic equipment by external audio playing apparatus, such as sound equipment, thus Reach acoustics desired by user.
However, the audio protocols that distinct electronic apparatuses are supported may be different, audio playing apparatus cannot be to all electricity The audio file of sub- equipment plays out.Based on this, it how to be compatible with the audio protocols of all electronic equipments and to each electronics Audio file to play out be problem to be solved.
Summary of the invention
In order to solve the above technical problems, the embodiment of the invention provides a kind of connection method of audio frequency apparatus, audios to play Device.
The connection method of audio frequency apparatus provided in an embodiment of the present invention includes:
First message is sent to audio frequency apparatus based on the first transport protocol;
When receiving the second message that the audio frequency apparatus is sent, the second message is analyzed;
Based on the analysis results, the transport protocol type that the audio frequency apparatus is supported is determined;
Based on the transport protocol type that the audio frequency apparatus is supported, established described in connection and reception with the audio frequency apparatus Audio frequency apparatus send audio data and broadcasting.
It is described to determine the transport protocol type that the audio frequency apparatus is supported based on the analysis results in the embodiment of the present invention, Include:
Based on the analysis results, judge whether the second message is the connection packet based on first transport protocol;
When the second message is the connection packet based on first transport protocol, the audio frequency apparatus branch The transport protocol type held is first transport protocol.
In the embodiment of the present invention, the first message is detection packet;
It is described based on the analysis results, determine the transport protocol type that the audio frequency apparatus is supported, comprising:
Based on the analysis results, judge whether the second message is that detection is unsuccessfully wrapped;
When the second message is that the detection is unsuccessfully wrapped, the transport protocol type that the audio frequency apparatus is supported is second Transport protocol.
In the embodiment of the present invention, the second message has attribute information, and the attribute information identifies the audio and sets The type of standby supported transport protocol;
It is described based on the analysis results, determine the transport protocol type that the audio frequency apparatus is supported, comprising:
According to the attribute information of the second message, the transport protocol type that the audio frequency apparatus is supported is determined.
In the embodiment of the present invention, the transport protocol type supported based on the audio frequency apparatus, with the audio frequency apparatus It establishes connection and receives audio data and broadcasting that the audio frequency apparatus is sent, comprising:
Based on the transport protocol type that the audio frequency apparatus is supported, pass through universal serial bus (USB, Universal Serial Bus) or universal asynchronous receiving-transmitting transmission (UART, Universal Asynchronous Receiver/ Transmitter) or bluetooth (BT, BlueTooth) establishes connection with the audio frequency apparatus and receives the audio frequency apparatus The audio data of transmission and broadcasting.
Audio playing apparatus provided in an embodiment of the present invention supports two or more transport protocols;Described device includes:
Transmission unit, for sending first message to audio frequency apparatus based on the first transport protocol;
Receiving unit, the second message sent for receiving the audio frequency apparatus;
Analytical unit, for analyzing the second message;Based on the analysis results, the audio frequency apparatus branch is determined The transport protocol type held;
Transmission unit, the transport protocol type for being supported based on the audio frequency apparatus are established with the audio frequency apparatus and are connected Connect and receive the audio data that the audio frequency apparatus is sent;
Broadcast unit is used for playing audio data.
In the embodiment of the present invention, the analytical unit includes:
Judgment sub-unit, for based on the analysis results, judging whether the second message is based on first transmission association The connection packet of view;
Subelement is determined, for being the connection packet based on first transport protocol when the second message When, the transport protocol type that the audio frequency apparatus is supported is first transport protocol.
In the embodiment of the present invention, the first message is detection packet;
The judgment sub-unit is also used to based on the analysis results, judge whether the second message is that detection is unsuccessfully wrapped;
The determining subelement is also used to when the second message is that the detection is unsuccessfully wrapped, the audio frequency apparatus branch The transport protocol type held is the second transport protocol.
In the embodiment of the present invention, the second message has attribute information, and the attribute information identifies the audio and sets The type of standby supported transport protocol;
The analytical unit is also used to the attribute information according to the second message, determines that the audio frequency apparatus is supported Transport protocol type.
In the embodiment of the present invention, the transmission unit is also used to the transport protocol type supported based on the audio frequency apparatus, Connection is established by USB or UART or BT and the audio frequency apparatus and receives the audio number that the audio frequency apparatus is sent According to.
In the technical solution of the embodiment of the present invention, audio playing apparatus supports two or more transport protocol types, and audio is broadcast Device is put in order to detect the transport protocol type that audio frequency apparatus is supported, the first transport protocol is primarily based on and is sent to audio frequency apparatus First message, here, the first transport protocol are one of transport protocols that audio playing apparatus is supported, first message is to visit Survey packet.After audio frequency apparatus receives first message, second message is returned to audio playing apparatus, to show that audio frequency apparatus is supported Transport protocol type.Then, the transport protocol type that audio playing apparatus is supported according to audio frequency apparatus receives audio frequency apparatus The audio data of transmission simultaneously plays out.As it can be seen that the audio playing apparatus of the embodiment of the present invention can support different transmission to assist View can choose out the transmission that transport protocol corresponding with the audio frequency apparatus carries out audio data for different audio frequency apparatuses, And realize the broadcasting of audio data, compatibility is stronger, and user-friendly same audio playing apparatus plays differing transmission protocols The audio data of type greatly improves the experience of user.
Detailed description of the invention
Fig. 1 is the flow diagram of the connection method of the audio frequency apparatus of the embodiment of the present invention one;
Fig. 2 is the flow diagram of the connection method of the audio frequency apparatus of the embodiment of the present invention two;
Fig. 3 is the flow diagram of the connection method of the audio frequency apparatus of the embodiment of the present invention three;
Fig. 4 is the structure composition schematic diagram of the audio playing apparatus of the embodiment of the present invention one;
Fig. 5 is the structure composition schematic diagram of the audio playing apparatus of the embodiment of the present invention two;
Fig. 6 is the structure composition schematic diagram of the audio playing apparatus of the embodiment of the present invention three.
Specific embodiment
The characteristics of in order to more fully hereinafter understand the embodiment of the present invention and technology contents, with reference to the accompanying drawing to this hair The realization of bright embodiment is described in detail, appended attached drawing purposes of discussion only for reference, is not used to limit the embodiment of the present invention.
Fig. 1 is the flow diagram of the connection method of the audio frequency apparatus of the embodiment of the present invention one, and the audio in this example is set Standby connection method is applied in audio playing apparatus, as shown in Figure 1, the connection method of the audio frequency apparatus includes following step It is rapid:
Step 101: first message is sent to audio frequency apparatus based on the first transport protocol.
In the embodiment of the present invention, espespecially sound equipment, audio playing apparatus support two or more transport protocols to audio playing apparatus. The transport protocol that audio playing apparatus is supported includes at least: the first transport protocol, the second transport protocol.Here, the first transmission Agreement and the second transport protocol respectively define different packet structure and transmitting-receiving agreement.First transport protocol and the second transmission According to depending on audio frequency apparatus, audio frequency apparatus can be following equipment for packet structure defined in agreement and transmitting-receiving agreement: mobile phone, Various types of electronic equipments such as tablet computer, laptop, audio frequency apparatus have audio player, and audio player is different The transport protocol for causing electronic equipment to be supported is different, for example, by taking apple (Apple) product as an example, in apple electronic equipment Internet portable audio player (iPod, internet Portable audio device) attachment is a kind of audio broadcasting Device, the transport protocol that iPod is supported are divided into two kinds, respectively protocol version 1 (iAP1) and protocol version 2 (iAP2), in order to The audio data of two kinds of differing transmission protocols is enough received and plays, audio playing apparatus is accordingly also required to support both transmission associations View, i.e. iAP1 and iAP2.
In the embodiment of the present invention, all interactions between audio playing apparatus and audio frequency apparatus can through but not limited to Under type carries out: USB, BT, UART.
Based on this, audio playing apparatus is based on USB or BT or UART and audio frequency apparatus establishes connection, is then based on first Transport protocol sends first message to audio frequency apparatus, and here, the first transport protocol is wherein one that audio playing apparatus is supported Kind transport protocol, the first transport protocol can be set in advance as the transport protocol of default by user, whenever audio playing apparatus and sound It is all that first message is sent to audio frequency apparatus by the transport protocol of default first when frequency equipment establishes connection.With Apple products For, audio playing apparatus sends first message to audio frequency apparatus based on the iAP2 of default, and here, first message is specially to detect Packet, it is 55 02 00EE 10 of FF that detection packet is defined in iAP2.
Step 102: when receiving the second message that the audio frequency apparatus is sent, the second message being analyzed;Root According to analysis as a result, determining the transport protocol type that the audio frequency apparatus is supported.
In the first embodiment, it after audio frequency apparatus receives the first message that audio playing apparatus is sent, will return One data packet (i.e. second message) gives audio playing apparatus.If audio frequency apparatus supports the first transport protocol, the data of return Packet is the connection packet of the first transport protocol of standard, if audio frequency apparatus does not support the first transport protocol, the number of return It is unsuccessfully wrapped according to packet for detection.When audio playing apparatus receives the connection packet of the first transport protocol, it is capable of determining that sound The transport protocol type that frequency equipment is supported is the first transport protocol;It, can when audio playing apparatus, which receives detection, unsuccessfully to be wrapped Determine that the transport protocol type that audio frequency apparatus is supported is the second transport protocol.This embodiment is defaulted as audio playing apparatus Two kinds of transport protocols are supported with audio frequency apparatus, i.e., when audio playing apparatus determines that audio frequency apparatus is not supported by the message of interaction When the first transport protocol, then it is assumed that audio frequency apparatus supports the second transport protocol.By taking Apple products as an example, if audio frequency apparatus branch IAP2 is held, then returns to the iAP2 connection packet of standard, detection is otherwise returned and unsuccessfully wraps (55 04 00 02 04 EE of FF 08).Whether the data packet that audio playing apparatus analysis returns is that detection is unsuccessfully wrapped, and is unsuccessfully wrapped if it is detection, it is determined that audio Equipment supports iAP1.If it is the iAP2 connection packet of standard, it is determined that audio frequency apparatus supports AP2.
In the second embodiment, the audio playing apparatus and audio frequency apparatus of this embodiment support a variety of transmission associations View after audio frequency apparatus receives the first message of audio playing apparatus transmission, will return to second message to audio playing apparatus, the There is attribute information, the attribute information identifies the type of the supported transport protocol of the audio frequency apparatus in two message.Audio Playing device is directly the transport protocol type that can determine that audio frequency apparatus and support according to the attribute information in second message.
Step 103: based on the audio frequency apparatus support transport protocol type, with the audio frequency apparatus establish connection and Receive the audio data that the audio frequency apparatus is sent and broadcasting.
Transport protocol type based on the audio frequency apparatus support that above-mentioned steps 102 are determined, sets with the audio It is standby to establish connection and receive audio data and broadcasting that the audio frequency apparatus is sent.
The audio playing apparatus of the embodiment of the present invention can support different transport protocols, can for different audio frequency apparatuses The transmission of audio data is carried out to select transport protocol corresponding with the audio frequency apparatus, and realizes the broadcasting of audio data, it is simultaneous Capacitive is stronger, and user-friendly same audio playing apparatus plays the audio data of differing transmission protocols type, greatly promotes The experience of user.
Fig. 2 is the flow diagram of the connection method of the audio frequency apparatus of the embodiment of the present invention two, and the audio in this example is set Standby connection method is applied in audio playing apparatus, as shown in Fig. 2, the connection method of the audio frequency apparatus includes following step It is rapid:
Step 201: first message is sent to audio frequency apparatus based on the first transport protocol.
In the embodiment of the present invention, espespecially sound equipment, audio playing apparatus support two or more transport protocols to audio playing apparatus. The transport protocol that audio playing apparatus is supported includes at least: the first transport protocol, the second transport protocol.Here, the first transmission Agreement and the second transport protocol respectively define different packet structure and transmitting-receiving agreement.First transport protocol and the second transmission According to depending on audio frequency apparatus, audio frequency apparatus can be following equipment for packet structure defined in agreement and transmitting-receiving agreement: mobile phone, Various types of electronic equipments such as tablet computer, laptop, audio frequency apparatus have audio player, and audio player is different The transport protocol for causing electronic equipment to be supported is different, for example, by taking apple (Apple) product as an example, in apple electronic equipment IPod attachment is a kind of audio player, and the transport protocol that iPod is supported is divided into two kinds, respectively protocol version 1 (iAP1) and Protocol version 2 (iAP2), in order to receive and play the audio data of two kinds of differing transmission protocols, audio playing apparatus is corresponding It is also required to support both transport protocols, i.e. iAP1 and iAP2.
In the embodiment of the present invention, all interactions between audio playing apparatus and audio frequency apparatus can through but not limited to Under type carries out: USB, BT, UART.
Based on this, audio playing apparatus is based on USB or BT or UART and audio frequency apparatus establishes connection, is then based on first Transport protocol sends first message to audio frequency apparatus, and here, the first transport protocol is wherein one that audio playing apparatus is supported Kind transport protocol, the first transport protocol can be set in advance as the transport protocol of default by user, whenever audio playing apparatus and sound It is all that first message is sent to audio frequency apparatus by the transport protocol of default first when frequency equipment establishes connection.With Apple products For, audio playing apparatus sends first message to audio frequency apparatus based on the iAP2 of default, and here, first message is specially to detect Packet, it is 55 02 00 EE 20 of FF that detection packet is defined in iAP2.
Step 202: when receiving the second message that the audio frequency apparatus is sent, the second message being analyzed;Root According to analysis as a result, judging whether the second message is the connection packet based on first transport protocol;Judge described Whether two message are that detection is unsuccessfully wrapped.
After audio frequency apparatus receives the first message of audio playing apparatus transmission, returning to a data packet, (i.e. second disappears Breath) give audio playing apparatus.If audio frequency apparatus supports the first transport protocol, the data packet of return is the first transmission association of standard The connection packet of view, if audio frequency apparatus does not support the first transport protocol, the data packet of return is that detection is unsuccessfully wrapped.Work as sound When frequency playing device receives the connection packet of the first transport protocol, it is capable of determining that the transport protocol class that audio frequency apparatus is supported Type is the first transport protocol;When audio playing apparatus, which receives detection, unsuccessfully to be wrapped, it is capable of determining that the biography that audio frequency apparatus is supported Defeated protocol type is the second transport protocol.This embodiment is defaulted as audio playing apparatus and audio frequency apparatus supports two kinds of transmission Agreement, i.e., when audio playing apparatus determines that audio frequency apparatus does not support the first transport protocol by the message of interaction, then it is assumed that Audio frequency apparatus supports the second transport protocol.By taking Apple products as an example, if audio frequency apparatus supports iAP2, standard is returned to Otherwise iAP2 connection packet returns to detection and unsuccessfully wraps (55 04 00 02 04 EE 08 of FF).Audio playing apparatus analysis is returned Whether the data packet returned is that detection is unsuccessfully wrapped, and is unsuccessfully wrapped if it is detection, it is determined that audio frequency apparatus supports iAP1.If it is standard IAP2 connection packet, it is determined that audio frequency apparatus support AP2.
Step 203: when the second message is the connection packet based on first transport protocol, the sound The transport protocol type that frequency equipment is supported is first transport protocol;When the second message is that the detection is unsuccessfully wrapped, The transport protocol type that the audio frequency apparatus is supported is the second transport protocol.
Step 204: based on the audio frequency apparatus support transport protocol type, with the audio frequency apparatus establish connection and Receive the audio data that the audio frequency apparatus is sent and broadcasting.
Transport protocol type based on the audio frequency apparatus support that above-mentioned steps 203 are determined, sets with the audio It is standby to establish connection and receive audio data and broadcasting that the audio frequency apparatus is sent.
The audio playing apparatus of the embodiment of the present invention can support different transport protocols, can for different audio frequency apparatuses The transmission of audio data is carried out to select transport protocol corresponding with the audio frequency apparatus, and realizes the broadcasting of audio data, it is simultaneous Capacitive is stronger, and user-friendly same audio playing apparatus plays the audio data of differing transmission protocols type, greatly promotes The experience of user.
Fig. 3 is the flow diagram of the connection method of the audio frequency apparatus of the embodiment of the present invention three, and the audio in this example is set Standby connection method is applied in audio playing apparatus, as shown in figure 3, the connection method of the audio frequency apparatus includes following step It is rapid:
Step 301: first message is sent to audio frequency apparatus based on the first transport protocol.
In the embodiment of the present invention, espespecially sound equipment, audio playing apparatus support two or more transport protocols to audio playing apparatus. The transport protocol that audio playing apparatus is supported includes at least: the first transport protocol, the second transport protocol.Here, the first transmission Agreement and the second transport protocol respectively define different packet structure and transmitting-receiving agreement.First transport protocol and the second transmission According to depending on audio frequency apparatus, audio frequency apparatus can be following equipment for packet structure defined in agreement and transmitting-receiving agreement: mobile phone, Various types of electronic equipments such as tablet computer, laptop, audio frequency apparatus have audio player, and audio player is different The transport protocol for causing electronic equipment to be supported is different, for example, by taking apple (Apple) product as an example, in apple electronic equipment IPod attachment is a kind of audio player, and the transport protocol that iPod is supported is divided into two kinds, respectively protocol version 1 (iAP1) and Protocol version 2 (iAP2), in order to receive and play the audio data of two kinds of differing transmission protocols, audio playing apparatus is corresponding It is also required to support both transport protocols, i.e. iAP1 and iAP2.
In the embodiment of the present invention, all interactions between audio playing apparatus and audio frequency apparatus can through but not limited to Under type carries out: USB, BT, UART.
Based on this, audio playing apparatus is based on USB or BT or UART and audio frequency apparatus establishes connection, is then based on first Transport protocol sends first message to audio frequency apparatus, and here, the first transport protocol is wherein one that audio playing apparatus is supported Kind transport protocol, the first transport protocol can be set in advance as the transport protocol of default by user, whenever audio playing apparatus and sound It is all that first message is sent to audio frequency apparatus by the transport protocol of default first when frequency equipment establishes connection.With Apple products For, audio playing apparatus sends first message to audio frequency apparatus based on the iAP2 of default, and here, first message is specially to detect Packet, it is 55 02 00 EE 30 of FF that detection packet is defined in iAP2.
Step 302: when receiving the second message that the audio frequency apparatus is sent, the second message being analyzed;Root According to the attribute information of the second message, the transport protocol type that the audio frequency apparatus is supported is determined.
The audio playing apparatus and audio frequency apparatus of this embodiment support multiple transport protocols, and audio frequency apparatus receives sound After the first message that frequency playing device is sent, will return to second message has attribute letter to audio playing apparatus, in second message Breath, the attribute information identify the type of the supported transport protocol of the audio frequency apparatus.Audio playing apparatus is directly according to Attribute information in two message is the transport protocol type that can determine that audio frequency apparatus and support.
Step 303: based on the audio frequency apparatus support transport protocol type, by USB or UART or BT with The audio frequency apparatus establishes connection and receives audio data and broadcasting that the audio frequency apparatus is sent.
Transport protocol type based on the audio frequency apparatus support that above-mentioned steps 302 are determined, sets with the audio It is standby to establish connection and receive audio data and broadcasting that the audio frequency apparatus is sent.
The audio playing apparatus of the embodiment of the present invention can support different transport protocols, can for different audio frequency apparatuses The transmission of audio data is carried out to select transport protocol corresponding with the audio frequency apparatus, and realizes the broadcasting of audio data, it is simultaneous Capacitive is stronger, and user-friendly same audio playing apparatus plays the audio data of differing transmission protocols type, greatly promotes The experience of user.
Fig. 4 is the structure composition schematic diagram of the audio playing apparatus of the embodiment of the present invention one, audio playing apparatus such as Fig. 4 institute Show, described device includes:
Transmission unit 41, for sending first message to audio frequency apparatus based on the first transport protocol;
Receiving unit 42, the second message sent for receiving the audio frequency apparatus;
Analytical unit 43, for analyzing the second message;Based on the analysis results, the audio frequency apparatus is determined The transport protocol type of support;
Transmission unit 44, the transport protocol type for being supported based on the audio frequency apparatus are established with the audio frequency apparatus Connect and receive the audio data that the audio frequency apparatus is sent;
Broadcast unit 45 is used for playing audio data.
It will be appreciated by those skilled in the art that the realization function of each unit in audio playing apparatus shown in Fig. 4 can join According to the connection method of aforementioned audio equipment associated description and understand.The function of each unit in audio playing apparatus shown in Fig. 4 It can be realized, can also be realized by specific logic circuit and running on the program on processor.
Fig. 5 is the structure composition schematic diagram of the audio playing apparatus of the embodiment of the present invention two, audio playing apparatus such as Fig. 5 institute Show, described device includes:
Transmission unit 51, for sending first message to audio frequency apparatus based on the first transport protocol;
Receiving unit 52, the second message sent for receiving the audio frequency apparatus;
Analytical unit 53, for analyzing the second message;Based on the analysis results, the audio frequency apparatus is determined The transport protocol type of support;
Transmission unit 54, the transport protocol type for being supported based on the audio frequency apparatus are established with the audio frequency apparatus Connect and receive the audio data that the audio frequency apparatus is sent;
Broadcast unit 55 is used for playing audio data.
The analytical unit 53 includes:
Judgment sub-unit 531, for based on the analysis results, judging whether the second message is based on first transmission The connection packet of agreement;
Subelement 532 is determined, for being the connection data based on first transport protocol when the second message Bao Shi, the transport protocol type that the audio frequency apparatus is supported are first transport protocol.
The first message is detection packet;
The judgment sub-unit 531 is also used to based on the analysis results, judge whether the second message is detection failure Packet;
The determining subelement 532 is also used to when the second message is that the detection is unsuccessfully wrapped, the audio frequency apparatus The transport protocol type of support is the second transport protocol.
It will be appreciated by those skilled in the art that the realization function of each unit in audio playing apparatus shown in fig. 5 can join According to the connection method of aforementioned audio equipment associated description and understand.The function of each unit in audio playing apparatus shown in fig. 5 It can be realized, can also be realized by specific logic circuit and running on the program on processor.
Fig. 6 is the structure composition schematic diagram of the audio playing apparatus of the embodiment of the present invention three, audio playing apparatus such as Fig. 6 institute Show, described device includes:
Transmission unit 61, for sending first message to audio frequency apparatus based on the first transport protocol;
Receiving unit 62, the second message sent for receiving the audio frequency apparatus;
Analytical unit 63, for analyzing the second message;Based on the analysis results, the audio frequency apparatus is determined The transport protocol type of support;
Transmission unit 64, the transport protocol type for being supported based on the audio frequency apparatus are established with the audio frequency apparatus Connect and receive the audio data that the audio frequency apparatus is sent;
Broadcast unit 65 is used for playing audio data.
The second message has attribute information, and the attribute information identifies the supported transport protocol of the audio frequency apparatus Type;
The analytical unit 63, is also used to the attribute information according to the second message, determines the audio frequency apparatus branch The transport protocol type held.
The transmission unit 64 is also used to the transport protocol type supported based on the audio frequency apparatus, by USB or UART or BT and the audio frequency apparatus establish connection and receive the audio data that the audio frequency apparatus is sent.
It will be appreciated by those skilled in the art that the realization function of each unit in audio playing apparatus shown in fig. 6 can join According to the connection method of aforementioned audio equipment associated description and understand.The function of each unit in audio playing apparatus shown in fig. 6 It can be realized, can also be realized by specific logic circuit and running on the program on processor.
It, in the absence of conflict, can be in any combination between technical solution documented by the embodiment of the present invention.
In several embodiments provided by the present invention, it should be understood that disclosed method and smart machine, Ke Yitong Other modes are crossed to realize.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can be tied It closes, or is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each group Can be through some interfaces at the mutual coupling in part or direct-coupling or communication connection, equipment or unit it is indirect Coupling or communication connection, can be electrical, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit The component shown can be or may not be physical unit, it can and it is in one place, it may be distributed over multiple network lists In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a second processing unit, It is also possible to each unit individually as a unit, can also be integrated in one unit with two or more units; Above-mentioned integrated unit both can take the form of hardware realization, can also add the form of SFU software functional unit real using hardware It is existing.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.

Claims (6)

1. a kind of connection method of audio frequency apparatus, which is characterized in that the described method includes:
First message is sent to audio frequency apparatus based on the first transport protocol;
When receiving the second message that the audio frequency apparatus is sent, the second message is analyzed;
Based on the analysis results, when judging the second message for the connection packet based on first transport protocol, institute The transport protocol type for stating audio frequency apparatus support is first transport protocol;Alternatively, the first message is detection packet, according to Analysis is as a result, when judging that the second message is unsuccessfully wrapped for the detection, the transport protocol type that the audio frequency apparatus is supported is Second transport protocol;
Based on the transport protocol type that the audio frequency apparatus is supported, connection is established with the audio frequency apparatus and receives the audio Equipment send audio data and broadcasting.
2. the connection method of audio frequency apparatus according to claim 1, which is characterized in that the second message is believed with attribute Breath, the attribute information identify the type of the supported transport protocol of the audio frequency apparatus;
It is described based on the analysis results, determine the transport protocol type that the audio frequency apparatus is supported, comprising:
According to the attribute information of the second message, the transport protocol type that the audio frequency apparatus is supported is determined.
3. the connection method of audio frequency apparatus according to claim 1 or 2, which is characterized in that described to be set based on the audio The standby transport protocol type supported establishes connection with the audio frequency apparatus and receives the audio data that the audio frequency apparatus is sent And it plays, comprising:
Based on the transport protocol type that the audio frequency apparatus is supported, passed by general-purpose serial bus USB or universal asynchronous receiving-transmitting Defeated UART or bluetooth BT establishes connection with the audio frequency apparatus and receives the audio data of the audio frequency apparatus transmission and broadcast It puts.
4. a kind of audio playing apparatus, which is characterized in that described device supports two or more transport protocols;Described device includes:
Transmission unit, for sending first message to audio frequency apparatus based on the first transport protocol;
Receiving unit, the second message sent for receiving the audio frequency apparatus;
Analytical unit, for analyzing the second message;Based on the analysis results, determine what the audio frequency apparatus was supported Transport protocol type;
Transmission unit, the transport protocol type for being supported based on the audio frequency apparatus, with the audio frequency apparatus establish connection with And receive the audio data that the audio frequency apparatus is sent;
Broadcast unit is used for playing audio data;
The analytical unit includes:
Judgment sub-unit, for based on the analysis results, judging whether the second message is based on first transport protocol Connection packet;
Determine subelement, for when the second message is the connection packet based on first transport protocol, institute The transport protocol type for stating audio frequency apparatus support is first transport protocol;Alternatively,
The first message is detection packet;The judgment sub-unit is also used to based on the analysis results, judge that the second message is It is no unsuccessfully to be wrapped for detection;
The determining subelement is also used to when the second message is that the detection is unsuccessfully wrapped, what the audio frequency apparatus was supported Transport protocol type is the second transport protocol.
5. audio playing apparatus according to claim 4, which is characterized in that the second message has attribute information, institute State the type that attribute information identifies the supported transport protocol of the audio frequency apparatus;
The analytical unit is also used to the attribute information according to the second message, determines the biography that the audio frequency apparatus is supported Defeated protocol type.
6. audio playing apparatus according to claim 4 or 5, which is characterized in that the transmission unit is also used to based on institute The transport protocol type for stating audio frequency apparatus support, by USB or UART or BT and the audio frequency apparatus establish connection with And receive the audio data that the audio frequency apparatus is sent.
CN201510685014.6A 2015-10-20 2015-10-20 A kind of connection method of audio frequency apparatus, audio playing apparatus Active CN105302752B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510685014.6A CN105302752B (en) 2015-10-20 2015-10-20 A kind of connection method of audio frequency apparatus, audio playing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510685014.6A CN105302752B (en) 2015-10-20 2015-10-20 A kind of connection method of audio frequency apparatus, audio playing apparatus

Publications (2)

Publication Number Publication Date
CN105302752A CN105302752A (en) 2016-02-03
CN105302752B true CN105302752B (en) 2019-02-15

Family

ID=55200037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510685014.6A Active CN105302752B (en) 2015-10-20 2015-10-20 A kind of connection method of audio frequency apparatus, audio playing apparatus

Country Status (1)

Country Link
CN (1) CN105302752B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108012033A (en) * 2017-12-06 2018-05-08 深圳晨芯时代科技有限公司 A kind of method that file transmission and management are carried out between mobile phone and mobile music player
CN108924642B (en) * 2018-07-16 2019-08-27 北京达佳互联信息技术有限公司 Stream media live broadcasting method, device and computer equipment and storage medium
CN109450851B (en) * 2018-09-30 2020-09-22 Oppo广东移动通信有限公司 Device connection method, electronic device, and computer-readable medium
CN110166823B (en) * 2019-06-26 2021-11-23 北京奇艺世纪科技有限公司 Screen projection method and related device
CN112637755A (en) * 2020-12-22 2021-04-09 广州番禺巨大汽车音响设备有限公司 Audio playing control method, device and playing system based on wireless connection

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544956A (en) * 2013-06-20 2014-01-29 Tcl集团股份有限公司 WIFI speaker and intelligent terminal negotiated decoding method and system
CN103647749A (en) * 2013-11-14 2014-03-19 乐视致新电子科技(天津)有限公司 Music-data transmission method and device
CN104955168A (en) * 2015-05-18 2015-09-30 乐视致新电子科技(天津)有限公司 Audio data transmitting method, receiving method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101732057B1 (en) * 2009-11-02 2017-05-02 삼성전자주식회사 Method and apparatus for providing user input back channel in AV system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544956A (en) * 2013-06-20 2014-01-29 Tcl集团股份有限公司 WIFI speaker and intelligent terminal negotiated decoding method and system
CN103647749A (en) * 2013-11-14 2014-03-19 乐视致新电子科技(天津)有限公司 Music-data transmission method and device
CN104955168A (en) * 2015-05-18 2015-09-30 乐视致新电子科技(天津)有限公司 Audio data transmitting method, receiving method and device

Also Published As

Publication number Publication date
CN105302752A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
CN105302752B (en) A kind of connection method of audio frequency apparatus, audio playing apparatus
CN104243517B (en) Content share method and device between different terminals
CN105376107B (en) Terminal testing method and proxy server
CN104601205B (en) The method and device that a kind of content is shared
CN106502826B (en) Data backup and transmission method and mobile terminal
CN109756449A (en) Transmission method, base station and the user terminal of system information block
EP3179693B1 (en) Method, apparatus, storage medium and computer program product for establishing a data connection
CN106681860B (en) A kind of data back up method and data backup device
CN106534324B (en) A kind of data sharing method and Cloud Server
CN104270204A (en) Testing method and testing equipment for wireless communication module
CN105657127B (en) A kind of method, earphone and terminal that sound is shared
CN109819303A (en) Data output method and relevant device
CN105009549B (en) A kind of synchronous method and terminal, server
CN108601201B (en) Flexible circuit board and electronic device
CN105511961B (en) A kind of data transmission method for uplink and terminal
CN108600887A (en) Method of toch control based on wireless headset and Related product
CN105635200A (en) Information processing method, electronic equipment, server and information processing system
CN105392083B (en) A kind of MPP speakers switching method and access controller
CN104243358B (en) The method and device that PE device softwares load in VCF systems
CN105607498B (en) A kind of matched method, apparatus of smart home device, equipment and system
CN106028469B (en) A kind of communication connection method for building up, device and mobile terminal
CN103873682B (en) A kind of information processing method and electronic equipment
CN105528175B (en) A kind of method and user terminal for adding wireless sound box
CN103491609A (en) Method, system and device for carry out communication between mobile terminals
CN105939251A (en) User relationship creation method and system, server and client

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221008

Address after: Room R2172, 2nd Floor, Building 3, No. 18, Keyuan Road, Economic Development Zone, Daxing District, Beijing 100176

Patentee after: Bird innovation (Beijing) Technology Co.,Ltd.

Address before: 100191 No. d-203, floor 1, No. 28, information road, Haidian District, Beijing

Patentee before: BEIJING XIAONIAO TINGTING TECHNOLOGY Co.,Ltd.