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 PDFInfo
- 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
- message
- transmission protocol
- supported
- audio device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000005540 biological transmission Effects 0.000 claims description 165
- 238000001514 detection method Methods 0.000 claims description 25
- 239000000523 sample Substances 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Communication Control (AREA)
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
Technical Field
The present invention relates to audio device connection technologies, and in particular, to a connection method for an audio device and an audio playing apparatus.
Background
Most of existing electronic devices, such as mobile phones and tablet computers, have audio players, and users can play audio files, such as music, stored in the electronic devices by using the audio players in the electronic devices. In some scenarios, such as movie theaters, a user needs to play an audio file in an electronic device through an external audio playing device, such as a sound, so as to achieve a sound effect desired by the user.
However, the audio protocols supported by different electronic devices may be different, and the audio playing apparatus cannot play audio files of all electronic devices. Based on this, how to be compatible with the audio protocols of all electronic devices and play the audio files of each electronic device is a problem to be solved.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide a connection method for an audio device and an audio playing apparatus.
The audio device connection method provided by the embodiment of the invention comprises the following steps:
sending a first message to an audio device based on a first transport protocol;
when a second message sent by the audio equipment is received, analyzing the second message;
determining the type of a transmission protocol supported by the audio equipment according to the analysis result;
and establishing connection with the audio equipment and receiving and playing audio data sent by the audio equipment based on the transmission protocol type supported by the audio equipment.
In the embodiment of the present invention, the determining, according to the analysis result, the type of the transmission protocol supported by the audio device includes:
judging whether the second message is a connection data packet based on the first transmission protocol or not according to the analysis result;
when the second message is the connection data packet based on the first transmission protocol, the type of the transmission protocol supported by the audio device is the first transmission protocol.
In the embodiment of the invention, the first message is a detection packet;
the determining the type of the transmission protocol supported by the audio device according to the analysis result includes:
judging whether the second message is a detection failure packet or not according to an analysis result;
when the second message is the detection failure packet, the type of the transmission protocol supported by the audio device is a second transmission protocol.
In the embodiment of the present invention, the second message has attribute information, and the attribute information identifies a type of a transport protocol supported by the audio device;
the determining the type of the transmission protocol supported by the audio device according to the analysis result includes:
and determining the transmission protocol type supported by the audio equipment according to the attribute information of the second message.
In this embodiment of the present invention, the establishing a connection with the audio device and receiving and playing the audio data sent by the audio device based on the type of the transmission protocol supported by the audio device includes:
based on the type of the transmission protocol supported by the audio device, a connection is established with the audio device through a Universal Serial Bus (USB), a Universal Asynchronous Receiver/Transmitter (UART), or a BlueTooth (BT) protocol, and the audio data sent by the audio device is received and played.
The audio playing device provided by the embodiment of the invention supports more than two transmission protocols; the device comprises:
a sending unit, configured to send a first message to an audio device based on a first transport protocol;
the receiving unit is used for receiving a second message sent by the audio equipment;
an analysis unit, configured to analyze the second message; determining the type of a transmission protocol supported by the audio equipment according to the analysis result;
the transmission unit is used for establishing connection with the audio equipment and receiving audio data sent by the audio equipment based on the transmission protocol type supported by the audio equipment;
and the playing unit is used for playing the audio data.
In an embodiment of the present invention, the analysis unit includes:
a determining subunit, configured to determine, according to an analysis result, whether the second message is a connection data packet based on the first transport protocol;
a determining subunit, configured to, when the second message is the connection data packet based on the first transmission protocol, determine that the type of the transmission protocol supported by the audio device is the first transmission protocol.
In the embodiment of the invention, the first message is a detection packet;
the judging subunit is further configured to judge whether the second message is a detection failure packet according to the analysis result;
the determining subunit is further configured to, when the second message is the detection failure packet, determine that the type of the transmission protocol supported by the audio device is a second transmission protocol.
In the embodiment of the present invention, the second message has attribute information, and the attribute information identifies a type of a transport protocol supported by the audio device;
the analysis unit is further configured to determine, according to the attribute information of the second message, a type of a transport protocol supported by the audio device.
In this embodiment of the present invention, the transmission unit is further configured to establish a connection with the audio device through a USB, a UART, or a BT and receive audio data sent by the audio device based on a transmission protocol type supported by the audio device.
In the technical solution of the embodiment of the present invention, the audio playing apparatus supports more than two types of transmission protocols, and in order to detect the type of the transmission protocol supported by the audio device, the audio playing apparatus first sends a first message to the audio device based on a first transmission protocol, where the first transmission protocol is one of the transmission protocols supported by the audio playing apparatus, and the first message is a probe packet. And after receiving the first message, the audio equipment returns a second message to the audio playing device to indicate the transmission protocol type supported by the audio equipment. Then, the audio playing device receives and plays the audio data sent by the audio equipment according to the transmission protocol type supported by the audio equipment. Therefore, the audio playing device provided by the embodiment of the invention can support different transmission protocols, can select the transmission protocol corresponding to the audio equipment for audio data transmission aiming at different audio equipment, can realize audio data playing, has strong compatibility, is convenient for users to play audio data of different transmission protocol types by using the same audio playing device, and greatly improves user experience.
Drawings
Fig. 1 is a flowchart illustrating a connection method of an audio device according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating a connection method of an audio device according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a connection method of an audio device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an audio playing device according to a first embodiment of the present invention;
fig. 5 is a schematic structural diagram of an audio playing device according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of an audio playing device according to a third embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
Fig. 1 is a schematic flowchart of a connection method of an audio device according to a first embodiment of the present invention, where the connection method of an audio device in this example is applied to an audio playing apparatus, and as shown in fig. 1, the connection method of an audio device includes the following steps:
step 101: a first message is sent to the audio device based on a first transport protocol.
In the embodiment of the present invention, the audio playback device, particularly the audio device, supports more than two transmission protocols. The transmission protocol supported by the audio playing device at least comprises: a first transport protocol, a second transport protocol. Here, the first transmission protocol and the second transmission protocol define different packet structures and transceiving protocols, respectively. The packet structure and transceiving protocol defined by the first transport protocol and the second transport protocol depend on the audio device, which may be the following: various types of electronic devices such as mobile phones, tablet computers, and notebook computers, audio devices have audio players, and different transmission protocols supported by the electronic devices are different due to different audio players, for example, an Apple (Apple) product is taken as an example, an internet Portable audio player (iPod) accessory in the Apple electronic device is an audio player, transmission protocols supported by the iPod are divided into two types, namely, a protocol version 1(iAP1) and a protocol version 2(iAP2), and in order to be able to receive and play audio data of two different transmission protocols, an audio playing apparatus correspondingly needs to support the two transmission protocols, namely, iAP1 and iAP 2.
In the embodiment of the present invention, all interactions between the audio playing apparatus and the audio device may be performed by, but not limited to, the following manners: USB, BT, UART.
Based on this, the audio playing apparatus establishes a connection with the audio device based on USB, BT, or UART, and then sends the first message to the audio device based on the first transmission protocol, where the first transmission protocol is one of the transmission protocols supported by the audio playing apparatus, the first transmission protocol may be preset by a user as a default transmission protocol, and the first message is sent to the audio device through the default transmission protocol first whenever the audio playing apparatus establishes a connection with the audio device. Taking Apple product as an example, the audio playing apparatus sends a first message to the audio device based on the default iAP2, where the first message is specifically a probe packet, and the probe packet is defined as FF 550200 EE 10 in the iAP 2.
Step 102: when a second message sent by the audio equipment is received, analyzing the second message; and determining the type of the transmission protocol supported by the audio equipment according to the analysis result.
In the first embodiment, after receiving the first message sent by the audio playing apparatus, the audio device returns a data packet (i.e., the second message) to the audio playing apparatus. If the audio equipment supports the first transmission protocol, the returned data packet is a standard connection data packet of the first transmission protocol, and if the audio equipment does not support the first transmission protocol, the returned data packet is a detection failure packet. When the audio playing device receives a connection data packet of a first transmission protocol, the audio playing device can determine that the type of the transmission protocol supported by the audio equipment is the first transmission protocol; when the audio playing device receives the detection failure packet, it can be determined that the type of the transmission protocol supported by the audio device is the second transmission protocol. The default of the implementation mode is that the audio playing device and the audio equipment support two transmission protocols, namely, when the audio playing device determines that the audio equipment does not support the first transmission protocol through interactive messages, the audio equipment is considered to support the second transmission protocol. Taking Apple product as an example, if the audio device supports the iAP2, a standard iAP2 connection packet is returned, otherwise a probe failure packet is returned (FF 5504000204 EE 08). The audio playing apparatus analyzes whether the returned data packet is a detection failure packet, and if the returned data packet is a detection failure packet, determines that the audio device supports the iAP 1. If it is a standard iAP2 connection packet, it is determined that the audio device supports AP 2.
In a second implementation manner, the audio playing apparatus and the audio device of this implementation manner support multiple transmission protocols, and after receiving a first message sent by the audio playing apparatus, the audio device returns a second message to the audio playing apparatus, where the second message has attribute information, and the attribute information identifies a type of the transmission protocol supported by the audio device. The audio playing device can determine the transmission protocol type supported by the audio equipment directly according to the attribute information in the second message.
Step 103: and establishing connection with the audio equipment and receiving and playing audio data sent by the audio equipment based on the transmission protocol type supported by the audio equipment.
Based on the type of the transmission protocol supported by the audio device determined in step 102, establishing a connection with the audio device, and receiving and playing the audio data sent by the audio device.
The audio playing device provided by the embodiment of the invention can support different transmission protocols, can select the transmission protocol corresponding to the audio equipment for audio data transmission aiming at different audio equipment, realizes the playing of the audio data, has strong compatibility, is convenient for a user to play the audio data of different transmission protocol types by using the same audio playing device, and greatly improves the user experience.
Fig. 2 is a schematic flowchart of a connection method of an audio device according to a second embodiment of the present invention, where the connection method of an audio device in this example is applied to an audio playing apparatus, and as shown in fig. 2, the connection method of an audio device includes the following steps:
step 201: a first message is sent to the audio device based on a first transport protocol.
In the embodiment of the present invention, the audio playback device, particularly the audio device, supports more than two transmission protocols. The transmission protocol supported by the audio playing device at least comprises: a first transport protocol, a second transport protocol. Here, the first transmission protocol and the second transmission protocol define different packet structures and transceiving protocols, respectively. The packet structure and transceiving protocol defined by the first transport protocol and the second transport protocol depend on the audio device, which may be the following: various types of electronic devices such as mobile phones, tablet computers, and notebook computers, audio devices have audio players, and different transmission protocols supported by the electronic devices are caused by different audio players, for example, taking an Apple (Apple) product as an example, an iPod accessory in the Apple electronic device is an audio player, transmission protocols supported by the iPod are divided into two types, namely, protocol version 1(iAP1) and protocol version 2(iAP2), and in order to be able to receive and play audio data of two different transmission protocols, an audio playing device correspondingly needs to support the two transmission protocols, namely, iAP1 and iAP 2.
In the embodiment of the present invention, all interactions between the audio playing apparatus and the audio device may be performed by, but not limited to, the following manners: USB, BT, UART.
Based on this, the audio playing apparatus establishes a connection with the audio device based on USB, BT, or UART, and then sends the first message to the audio device based on the first transmission protocol, where the first transmission protocol is one of the transmission protocols supported by the audio playing apparatus, the first transmission protocol may be preset by a user as a default transmission protocol, and the first message is sent to the audio device through the default transmission protocol first whenever the audio playing apparatus establishes a connection with the audio device. Taking Apple product as an example, the audio playing apparatus sends a first message to the audio device based on the default iAP2, where the first message is specifically a probe packet, and the probe packet is defined as FF 550200 EE 20 in the iAP 2.
Step 202: when a second message sent by the audio equipment is received, analyzing the second message; judging whether the second message is a connection data packet based on the first transmission protocol or not according to the analysis result; and judging whether the second message is a detection failure packet or not.
After receiving the first message sent by the audio playing device, the audio device returns a data packet (i.e., a second message) to the audio playing device. If the audio equipment supports the first transmission protocol, the returned data packet is a standard connection data packet of the first transmission protocol, and if the audio equipment does not support the first transmission protocol, the returned data packet is a detection failure packet. When the audio playing device receives a connection data packet of a first transmission protocol, the audio playing device can determine that the type of the transmission protocol supported by the audio equipment is the first transmission protocol; when the audio playing device receives the detection failure packet, it can be determined that the type of the transmission protocol supported by the audio device is the second transmission protocol. The default of the implementation mode is that the audio playing device and the audio equipment support two transmission protocols, namely, when the audio playing device determines that the audio equipment does not support the first transmission protocol through interactive messages, the audio equipment is considered to support the second transmission protocol. Taking Apple product as an example, if the audio device supports the iAP2, the standard iAP2 connection data packet is returned, otherwise, the detection failure packet is returned (FF 5504000204 EE 08). The audio playing apparatus analyzes whether the returned data packet is a detection failure packet, and if the returned data packet is a detection failure packet, determines that the audio device supports the iAP 1. If it is a standard iAP2 connection packet, it is determined that the audio device supports AP 2.
Step 203: when the second message is the connection data packet based on the first transmission protocol, the type of the transmission protocol supported by the audio equipment is the first transmission protocol; when the second message is the detection failure packet, the type of the transmission protocol supported by the audio device is a second transmission protocol.
Step 204: and establishing connection with the audio equipment and receiving and playing audio data sent by the audio equipment based on the transmission protocol type supported by the audio equipment.
Based on the type of the transmission protocol supported by the audio device determined in step 203, establishing a connection with the audio device, and receiving and playing the audio data sent by the audio device.
The audio playing device provided by the embodiment of the invention can support different transmission protocols, can select the transmission protocol corresponding to the audio equipment for audio data transmission aiming at different audio equipment, realizes the playing of the audio data, has strong compatibility, is convenient for a user to play the audio data of different transmission protocol types by using the same audio playing device, and greatly improves the user experience.
Fig. 3 is a flowchart illustrating a connection method of an audio device according to a third embodiment of the present invention, where the connection method of an audio device in this example is applied to an audio playing apparatus, and as shown in fig. 3, the connection method of an audio device includes the following steps:
step 301: a first message is sent to the audio device based on a first transport protocol.
In the embodiment of the present invention, the audio playback device, particularly the audio device, supports more than two transmission protocols. The transmission protocol supported by the audio playing device at least comprises: a first transport protocol, a second transport protocol. Here, the first transmission protocol and the second transmission protocol define different packet structures and transceiving protocols, respectively. The packet structure and transceiving protocol defined by the first transport protocol and the second transport protocol depend on the audio device, which may be the following: various types of electronic devices such as mobile phones, tablet computers, and notebook computers, audio devices have audio players, and different transmission protocols supported by the electronic devices are caused by different audio players, for example, taking an Apple (Apple) product as an example, an iPod accessory in the Apple electronic device is an audio player, transmission protocols supported by the iPod are divided into two types, namely, protocol version 1(iAP1) and protocol version 2(iAP2), and in order to be able to receive and play audio data of two different transmission protocols, an audio playing device correspondingly needs to support the two transmission protocols, namely, iAP1 and iAP 2.
In the embodiment of the present invention, all interactions between the audio playing apparatus and the audio device may be performed by, but not limited to, the following manners: USB, BT, UART.
Based on this, the audio playing apparatus establishes a connection with the audio device based on USB, BT, or UART, and then sends the first message to the audio device based on the first transmission protocol, where the first transmission protocol is one of the transmission protocols supported by the audio playing apparatus, the first transmission protocol may be preset by a user as a default transmission protocol, and the first message is sent to the audio device through the default transmission protocol first whenever the audio playing apparatus establishes a connection with the audio device. Taking Apple product as an example, the audio playing apparatus sends a first message to the audio device based on the default iAP2, where the first message is specifically a probe packet, and the probe packet is defined as FF 550200 EE 30 in the iAP 2.
Step 302: when a second message sent by the audio equipment is received, analyzing the second message; and determining the transmission protocol type supported by the audio equipment according to the attribute information of the second message.
The audio playing device and the audio equipment in the embodiment support multiple transmission protocols, after receiving a first message sent by the audio playing device, the audio equipment returns a second message to the audio playing device, the second message has attribute information, and the attribute information identifies the type of the transmission protocol supported by the audio equipment. The audio playing device can determine the transmission protocol type supported by the audio equipment directly according to the attribute information in the second message.
Step 303: and establishing connection with the audio equipment through a USB (universal serial bus), or a UART (universal asynchronous receiver/transmitter), or a BT (bit rate transmitter) based on the transmission protocol type supported by the audio equipment, receiving the audio data sent by the audio equipment and playing the audio data.
Based on the type of the transmission protocol supported by the audio device determined in step 302, a connection is established with the audio device, and the audio data sent by the audio device is received and played.
The audio playing device provided by the embodiment of the invention can support different transmission protocols, can select the transmission protocol corresponding to the audio equipment for audio data transmission aiming at different audio equipment, realizes the playing of the audio data, has strong compatibility, is convenient for a user to play the audio data of different transmission protocol types by using the same audio playing device, and greatly improves the user experience.
Fig. 4 is a schematic structural composition diagram of an audio playing device according to a first embodiment of the present invention, where the audio playing device is shown in fig. 4, and the audio playing device includes:
a sending unit 41, configured to send a first message to the audio device based on the first transport protocol;
a receiving unit 42, configured to receive a second message sent by the audio device;
an analyzing unit 43, configured to analyze the second message; determining the type of a transmission protocol supported by the audio equipment according to the analysis result;
a transmission unit 44, configured to establish a connection with the audio device and receive audio data sent by the audio device based on a transmission protocol type supported by the audio device;
a playing unit 45, configured to play the audio data.
It should be understood by those skilled in the art that the functions of the units in the audio playing apparatus shown in fig. 4 can be understood by referring to the related description of the connection method of the audio device. The functions of the units in the audio playback apparatus shown in fig. 4 may be implemented by a program running on a processor, or may be implemented by specific logic circuits.
Fig. 5 is a schematic structural composition diagram of an audio playing device according to a second embodiment of the present invention, where the audio playing device is shown in fig. 5, and the audio playing device includes:
a sending unit 51, configured to send a first message to the audio device based on a first transport protocol;
a receiving unit 52, configured to receive a second message sent by the audio device;
an analyzing unit 53, configured to analyze the second message; determining the type of a transmission protocol supported by the audio equipment according to the analysis result;
a transmission unit 54, configured to establish a connection with the audio device and receive audio data sent by the audio device based on a transmission protocol type supported by the audio device;
a playing unit 55, configured to play the audio data.
The analysis unit 53 includes:
a determining subunit 531, configured to determine, according to an analysis result, whether the second message is a connection data packet based on the first transmission protocol;
a determining subunit 532, configured to, when the second message is the connection data packet based on the first transmission protocol, determine the type of the transmission protocol supported by the audio device as the first transmission protocol.
The first message is a detection packet;
the determining subunit 531 is further configured to determine, according to the analysis result, whether the second message is a detection failure packet;
the determining subunit 532 is further configured to, when the second message is the detection failure packet, determine the type of the transmission protocol supported by the audio device as the second transmission protocol.
It should be understood by those skilled in the art that the functions of the units in the audio playing apparatus shown in fig. 5 can be understood by referring to the related description of the connection method of the audio device. The functions of the units in the audio playback apparatus shown in fig. 5 may be implemented by a program running on a processor, or may be implemented by specific logic circuits.
Fig. 6 is a schematic structural composition diagram of an audio playing device according to a third embodiment of the present invention, where the audio playing device is shown in fig. 6, and the audio playing device includes:
a sending unit 61, configured to send a first message to an audio device based on a first transport protocol;
a receiving unit 62, configured to receive a second message sent by the audio device;
an analyzing unit 63, configured to analyze the second message; determining the type of a transmission protocol supported by the audio equipment according to the analysis result;
a transmission unit 64, configured to establish a connection with the audio device and receive audio data sent by the audio device based on a transmission protocol type supported by the audio device;
a playing unit 65 for playing the audio data.
The second message having attribute information identifying a type of transport protocol supported by the audio device;
the analysis unit 63 is further configured to determine, according to the attribute information of the second message, a type of a transmission protocol supported by the audio device.
The transmission unit 64 is further configured to establish a connection with the audio device through a USB, a UART, or a BT and receive audio data sent by the audio device based on the transmission protocol type supported by the audio device.
It should be understood by those skilled in the art that the functions of the units in the audio playing apparatus shown in fig. 6 can be understood by referring to the related description of the connection method of the audio device. The functions of the units in the audio playback apparatus shown in fig. 6 may be implemented by a program running on a processor, or may be implemented by specific logic circuits.
The technical schemes described in the embodiments of the present invention can be combined arbitrarily without conflict.
In the embodiments provided in the present invention, it should be understood that the disclosed method and intelligent device may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one second processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.
Claims (6)
1. A method of connecting audio devices, the method comprising:
sending a first message to an audio device based on a first transport protocol;
when a second message sent by the audio equipment is received, analyzing the second message;
according to the analysis result, when the second message is judged to be the connection data packet based on the first transmission protocol, the transmission protocol type supported by the audio equipment is the first transmission protocol; or, the first message is a detection packet, and when the second message is judged to be the detection failure packet according to the analysis result, the type of the transmission protocol supported by the audio device is a second transmission protocol;
and establishing connection with the audio equipment and receiving and playing audio data sent by the audio equipment based on the transmission protocol type supported by the audio equipment.
2. The audio device connecting method according to claim 1, wherein the second message has attribute information that identifies a type of transport protocol supported by the audio device;
the determining the type of the transmission protocol supported by the audio device according to the analysis result includes:
and determining the transmission protocol type supported by the audio equipment according to the attribute information of the second message.
3. The audio device connection method according to claim 1 or 2, wherein the establishing connection with the audio device and receiving and playing audio data sent by the audio device based on the transport protocol type supported by the audio device comprises:
and establishing connection with the audio equipment through a Universal Serial Bus (USB), a Universal Asynchronous Receiver Transmitter (UART) or a Bluetooth (BT) based on the transmission protocol type supported by the audio equipment, receiving the audio data sent by the audio equipment and playing the audio data.
4. An audio playback apparatus, wherein said apparatus supports more than two transport protocols; the device comprises:
a sending unit, configured to send a first message to an audio device based on a first transport protocol;
the receiving unit is used for receiving a second message sent by the audio equipment;
an analysis unit, configured to analyze the second message; determining the type of a transmission protocol supported by the audio equipment according to the analysis result;
the transmission unit is used for establishing connection with the audio equipment and receiving audio data sent by the audio equipment based on the transmission protocol type supported by the audio equipment;
a playing unit for playing the audio data;
the analysis unit includes:
a determining subunit, configured to determine, according to an analysis result, whether the second message is a connection data packet based on the first transport protocol;
a determining subunit, configured to, when the second message is the connection data packet based on the first transport protocol, determine that the transport protocol type supported by the audio device is the first transport protocol; or,
the first message is a detection packet; the judging subunit is further configured to judge whether the second message is a detection failure packet according to the analysis result;
the determining subunit is further configured to, when the second message is the detection failure packet, determine that the type of the transmission protocol supported by the audio device is a second transmission protocol.
5. The audio playback apparatus of claim 4, wherein the second message has attribute information that identifies a type of transport protocol supported by the audio device;
the analysis unit is further configured to determine, according to the attribute information of the second message, a type of a transport protocol supported by the audio device.
6. The audio playing apparatus according to claim 4 or 5, wherein the transmitting unit is further configured to establish a connection with the audio device through USB, UART, or BT and receive the audio data sent by the audio device based on the type of transmission protocol supported by the audio device.
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)
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)
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)
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 |
-
2015
- 2015-10-20 CN CN201510685014.6A patent/CN105302752B/en active Active
Patent Citations (3)
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 | |
KR101650804B1 (en) | Method for sharing media content, terminal device, and content sharing system | |
US20140310741A1 (en) | System for sharing data via cloud server and method thereof | |
JP6665200B2 (en) | Multimedia information processing method, apparatus and system, and computer storage medium | |
WO2015058623A1 (en) | Multimedia data sharing method and system, and electronic device | |
CN108124172B (en) | Cloud projection method, device and system | |
CN109819303A (en) | Data output method and relevant device | |
CN104601205A (en) | Content sharing method and device | |
WO2017096909A1 (en) | Data connection establishing method and apparatus | |
US20210211777A1 (en) | Information Presenting Method, Terminal Device, Server and System | |
CN105511961B (en) | A kind of data transmission method for uplink and terminal | |
CN105704110B (en) | Media transmission method, media control method and device | |
CN107209378B (en) | Head-mounted display device and head-mounted display system | |
US10666588B2 (en) | Method for sharing media content, terminal device, and content sharing system | |
CN107566884B (en) | Connection method, server and terminal | |
CN105447084B (en) | A kind of method and device that list is played simultaneously | |
CN111641864A (en) | Video information acquisition method, device and equipment | |
CN106537933B (en) | Portable loudspeaker | |
TW201327370A (en) | System and method for resource sharing and broadcasting device thereof | |
WO2020233171A1 (en) | Song list switching method, apparatus and system, terminal, and storage medium | |
CN105472474A (en) | Game control method and device for connection of smart television and terminal | |
CN116939283A (en) | Equipment control method, device, electronic equipment and storage medium | |
US10104422B2 (en) | Multimedia playing control method, apparatus for the same and system | |
CN102970637A (en) | Interactive system of electroacoustic product and audio and video playing device | |
CN112203116A (en) | Video generation method, video playing method and related equipment |
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. |