WO2017000146A1 - Data transmission apparatus, router, and data transmission method - Google Patents

Data transmission apparatus, router, and data transmission method Download PDF

Info

Publication number
WO2017000146A1
WO2017000146A1 PCT/CN2015/082730 CN2015082730W WO2017000146A1 WO 2017000146 A1 WO2017000146 A1 WO 2017000146A1 CN 2015082730 W CN2015082730 W CN 2015082730W WO 2017000146 A1 WO2017000146 A1 WO 2017000146A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio data
module
data
data transmission
router
Prior art date
Application number
PCT/CN2015/082730
Other languages
French (fr)
Chinese (zh)
Inventor
杨新宇
纪宏洲
Original Assignee
深圳走天下科技有限公司
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 深圳走天下科技有限公司 filed Critical 深圳走天下科技有限公司
Priority to PCT/CN2015/082730 priority Critical patent/WO2017000146A1/en
Publication of WO2017000146A1 publication Critical patent/WO2017000146A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data transmission device, a router, and a data transmission method.
  • the present invention provides a data transmission apparatus, a router, and a data transmission method.
  • An embodiment of the present invention provides a data transmission apparatus, including: an acquisition module, configured to acquire audio data, an encoding module, configured to encode and compress the acquired audio data, and a protocol encapsulation module, configured to encode the audio data. Performing protocol encapsulation; and a broadcast module for broadcasting the encapsulated audio data to the local area network.
  • Another embodiment of the present invention provides a router including at least the above audio data transmission apparatus.
  • Another embodiment of the present invention provides a data transmission method, including: acquiring audio data; storing the acquired audio data; encoding and compressing the obtained audio data; performing protocol encapsulation on the encoded audio data; The audio data is broadcast to the LAN.
  • a data receiving apparatus including: a receiving module, configured to receive audio data broadcasted by a router; and an analyzing module, configured to analyze a frame loss condition of the audio data; a decoding module, configured to unpack and decode the audio data, and a playing module, configured to play the decoded audio data.
  • a further embodiment of the present invention provides a data receiving method, including: receiving audio data broadcast by a router; analyzing a frame loss condition of the audio data; unpacking and decoding the audio data; and playing the decoded audio data .
  • the present invention can obtain audio data through an audio data acquisition interface, and then, after encoding and compressing and encapsulating the audio data, directly transmitting to the receiving terminal without processing the audio data through the transmitting terminal, and then via the network server. Forward to the receiving terminal, convenient and fast.
  • FIG. 1 is a schematic diagram of a router and a working environment thereof according to an embodiment of the present invention
  • FIG. 2 is a functional block diagram of an audio data transmission apparatus according to an embodiment of the present invention.
  • FIG. 3 is a functional block diagram of an audio data receiving apparatus according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of an audio data transmission method and an audio data receiving method according to an embodiment of the present invention.
  • an embodiment of the present invention provides a router 100 capable of connecting to a plurality of communication terminals via a local area network to form a communication system capable of transmitting signals.
  • the communication terminal may be any device with a WIFI connection function, such as a mobile phone, a tablet computer, or the like. More specifically, in this embodiment, the communication system includes one router 100 and four smart phones. It can be understood that in other embodiments, the smartphone can be any number.
  • the router 100 includes a CPU, a memory, a memory chip for storing a software system, and the like (not shown), and further includes an audio data transmission device 10.
  • the router 100 includes a path for audio data input, such as an I2S audio input bus, a path for reading an audio file from a memory chip, and the like.
  • the router 100 also has a WIFI wireless routing function.
  • the audio data transmission device 10 includes an acquisition module 11, a first storage module 12, an encoding module 13, a protocol encapsulation module 14, and a broadcast module 15.
  • the obtaining module 11 is configured to acquire audio data.
  • the acquiring module 11 is an I2S interface, which is connected to the I2S audio input bus, the audio data is pulse code modulation (PCM) data, and the obtaining module 11 obtains the PCM through the I2S interface. data.
  • the acquisition module 11 may also obtain the audio data from other files in which audio data is stored.
  • the encoding module 13 is configured to perform encoding compression on the acquired audio data.
  • the audio data transmission device 10 further includes a first storage module 12, and the first storage module 12 is configured to store the acquired audio data.
  • the first storage module 12 is a first in first out queue (FIFO) that stores pulse code modulation (PCM) data.
  • PCM pulse code modulation
  • the encoding module 13 reads out the audio data stored in the PCM FIFO and performs audio encoding compression.
  • the audio data is encoded and compressed using an alphabet encoder.
  • the protocol encapsulation module 14 is configured to perform protocol encapsulation on the encoded audio data.
  • the protocol encapsulating module 14 takes out the encoded data frame and performs UDP protocol encapsulation. It will be appreciated that in other embodiments, the protocol may also be any other protocol suitable for use.
  • the broadcast module 15 is configured to broadcast the encapsulated audio data to a local area network.
  • the audio data transmission device 10 further includes a second storage module 16 coupled between the encoding module 13 and the protocol encapsulation module 14 for storing encoded compressed audio data.
  • first storage module 12 and the second storage module 16 can be integrated in the storage chip of the router 100.
  • the present invention further provides an audio data receiving apparatus 20 for receiving audio data transmitted by the router 100, and processing and playing.
  • the audio data receiving device 20 is disposed in the communication terminal.
  • the audio data receiving device 20 includes a receiving module 21, an analyzing module 22, a decoding module 23, and a playing module 24.
  • the receiving module 21 is configured to receive audio data broadcasted by the router 100.
  • the broadcast transmitted by the router 100 is received through the UDP protocol, and the broadcast includes the audio data.
  • the analyzing module 22 is configured to analyze a frame loss situation of the audio data during a broadcast process.
  • the decoding module 23 is configured to unpack and decode the audio data.
  • the data in the FIFO is unpacked, and then the audio data is decoded.
  • the playing module 24 is configured to play the decoded audio data. In this embodiment, after the playing module 24 obtains the decoded audio data, the audio playing interface is called to play the audio data.
  • the audio data receiving device 20 further includes a storage module for storing the received audio data and providing audio data to the analysis module 22 according to the read command.
  • the router 100 can obtain the audio PCM data through the acquisition module 11 (I2S interface), and then, after encoding and compressing the protocol and compressing the protocol, directly transmitting the audio data to the receiving terminal.
  • the audio data is not processed by the transmitting terminal, and then forwarded to the receiving terminal via the network server, which is convenient and quick.
  • the present invention further provides an audio data transmission method, where the method includes the following steps:
  • step S401 audio data is acquired.
  • audio data is acquired through an I2S interface, the audio data being Pulse Code Modulation (PCM) data.
  • PCM Pulse Code Modulation
  • Step S402 storing the acquired audio data.
  • the acquired audio data is stored by a pulse code modulation (PCM) register (FIFO).
  • PCM pulse code modulation
  • step S403 the stored audio data is read and encoded and compressed.
  • the audio data is encoded and compressed using an alphabet encoder.
  • Step S404 storing the compressed modulated audio data.
  • Step S405 performing protocol encapsulation on the encoded audio data.
  • UDP protocol encapsulation is performed by taking out the encoded data frame.
  • the protocol may also be any other protocol suitable for use.
  • Step S406 the encapsulated audio data is broadcasted to the local area network.
  • step S402 and step S404 may be omitted, and the present invention is not limited to the order of the above steps.
  • the present invention further provides an audio data receiving method, where the method includes the following steps:
  • Step S407 receiving audio data broadcast by the router 100.
  • Step S408 analyzing a frame loss condition of the audio data.
  • Step S409 unpacking and decoding the audio data.
  • Step S410 playing the decoded audio data.
  • audio PCM data can be obtained through the I2S interface, and then, after encoding and compressing and encapsulating the audio data, directly transmitting to the receiving terminal without transmitting the terminal to the audio data. After processing, it is forwarded to the receiving terminal via the network server, which is convenient and quick.

Abstract

Disclosed is a data transmission apparatus. The data transmission apparatus comprises: an acquiring module, used for acquiring audio data; a coding module, used for coding and compressing the acquired audio data; a protocol encapsulation module, used for performing protocol encapsulation on the coded audio data; and a broadcast module, used for broadcasting the encapsulated audio data to a local area network. The present invention also provides a router, a data transmission method, and a data reception apparatus and method.

Description

数据传输装置、路由器和数据传输方法Data transmission device, router and data transmission method 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种数据传输装置、路由器和数据传输方法。The present invention relates to the field of communications technologies, and in particular, to a data transmission device, a router, and a data transmission method.
背景技术Background technique
在现有的终端设备,如手机、平板电脑等中,在进行音频数据传输时,通常是通过内置的I2S音频总线(InterIC Sound Bus,是飞利浦公司针对数字音频设备之间的音频数据传输而制定的一种总线标准)获得PCM(Pulse Code Modulation,脉冲编码调制)音频数据后,经过编码压缩放入FIFO(寄存器)中,然后通过UDP(用户数据报协议)发送,经过路由中转,使得连接在这个路由上的终端设备能接收到所述音频数据。也就是说,现有技术中,只能通过连接在局域网内的设备发送音频数据,而不能在路由上直接发送音频数据。In existing terminal devices, such as mobile phones, tablets, etc., when transmitting audio data, it is usually through the built-in I2S audio bus (InterIC Sound Bus, which is developed by Philips for audio data transmission between digital audio devices). A bus standard) After obtaining PCM (Pulse Code Modulation) audio data, it is encoded and compressed into a FIFO (register), and then sent through UDP (User Datagram Protocol), and routed through the relay to make the connection The terminal device on this route can receive the audio data. That is to say, in the prior art, audio data can only be transmitted through devices connected in the local area network, and audio data cannot be directly transmitted on the route.
发明内容Summary of the invention
为了解决上述问题,本发明提供一种数据传输装置、路由器和数据传输方法。In order to solve the above problems, the present invention provides a data transmission apparatus, a router, and a data transmission method.
本发明一实施例提供一种数据传输装置,包括:获取模块,用于获取音频数据;编码模块,用于对所获取的音频数据进行编码压缩;协议封装模块,用于对编码后的音频数据进行协议封装;以及广播模块,用于将封装后的音频数据广播到局域网中。An embodiment of the present invention provides a data transmission apparatus, including: an acquisition module, configured to acquire audio data, an encoding module, configured to encode and compress the acquired audio data, and a protocol encapsulation module, configured to encode the audio data. Performing protocol encapsulation; and a broadcast module for broadcasting the encapsulated audio data to the local area network.
本发明另一实施例提供一种路由器,至少包括上述的音频数据传输装置。Another embodiment of the present invention provides a router including at least the above audio data transmission apparatus.
本发明另一实施例提供一种数据传输方法,包括:获取音频数据;存储所获取的音频数据;对所获取的音频数据进行编码压缩;对编码后的音频数据进行协议封装;以及将封装后的音频数据广播到局域网中。Another embodiment of the present invention provides a data transmission method, including: acquiring audio data; storing the acquired audio data; encoding and compressing the obtained audio data; performing protocol encapsulation on the encoded audio data; The audio data is broadcast to the LAN.
本发明另一实施例提供一种数据接收装置,包括:接收模块,用于接收来自于路由器广播的音频数据;分析模块,用于分析所述音频数据的丢帧情况; 解码模块,用于对所述音频数据进行解包和解码;播放模块,用于播放解码后的音频数据。Another embodiment of the present invention provides a data receiving apparatus, including: a receiving module, configured to receive audio data broadcasted by a router; and an analyzing module, configured to analyze a frame loss condition of the audio data; a decoding module, configured to unpack and decode the audio data, and a playing module, configured to play the decoded audio data.
本发明又一实施例提供一种数据接收方法,包括:接收一路由器广播的音频数据;分析所述音频数据的丢帧情况;对所述音频数据进行解包和解码;播放解码后的音频数据。A further embodiment of the present invention provides a data receiving method, including: receiving audio data broadcast by a router; analyzing a frame loss condition of the audio data; unpacking and decoding the audio data; and playing the decoded audio data .
本发明能够通过音频数据获取接口获得音频数据,然后,经过对所述音频数据进行编码压缩和协议封装后,直接发送至接收终端,而无需通过发送终端对音频数据进行处理后,再经由网络服务器转发到接收终端,方便快捷。The present invention can obtain audio data through an audio data acquisition interface, and then, after encoding and compressing and encapsulating the audio data, directly transmitting to the receiving terminal without processing the audio data through the transmitting terminal, and then via the network server. Forward to the receiving terminal, convenient and fast.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为本发明实施例提供的路由器及其工作环境示意图;FIG. 1 is a schematic diagram of a router and a working environment thereof according to an embodiment of the present invention;
图2为本发明实施例提供的音频数据传输装置的功能模块图;2 is a functional block diagram of an audio data transmission apparatus according to an embodiment of the present invention;
图3为本发明实施例提供的音频数据接收装置的功能模块图;FIG. 3 is a functional block diagram of an audio data receiving apparatus according to an embodiment of the present invention;
图4为本发明实施例提供的音频数据传输方法和音频数据接收方法的流程图。FIG. 4 is a flowchart of an audio data transmission method and an audio data receiving method according to an embodiment of the present invention.
具体实施方式detailed description
下面结合附图和具体实施方式对本发明的技术方案作进一步更详细的描述。显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。The technical solutions of the present invention are further described in detail below with reference to the accompanying drawings and specific embodiments. It is apparent that the described embodiments are only a part of the embodiments of the invention, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
如图1所示,本发明的一个实施例提供一种路由器100,所述路由器100能够通过局域网与多个通讯终端连接,从而形成一个可传输信号的通信系统。本实施例中,所述通讯终端可以是手机、平板电脑等等任何带有WIFI连接功能的设备。更具体的,本实施例中,所述通信系统包含一个路由器100、四个智能手机。可以理解的是,在其他实施例中,所述智能手机可以是任意数量。 As shown in FIG. 1, an embodiment of the present invention provides a router 100 capable of connecting to a plurality of communication terminals via a local area network to form a communication system capable of transmitting signals. In this embodiment, the communication terminal may be any device with a WIFI connection function, such as a mobile phone, a tablet computer, or the like. More specifically, in this embodiment, the communication system includes one router 100 and four smart phones. It can be understood that in other embodiments, the smartphone can be any number.
请参阅图2,具体的,所述路由器100包括CPU、内存、用于存储软件系统的存储芯片等(图未示),还包括一音频数据传输装置10。本实施例中,所述路由器100包括音频数据输入的路径,比如I2S音频输入总线,从存储芯片读取音频文件的路径等。此外,所述路由器100还具备WIFI无线路由功能。Referring to FIG. 2, specifically, the router 100 includes a CPU, a memory, a memory chip for storing a software system, and the like (not shown), and further includes an audio data transmission device 10. In this embodiment, the router 100 includes a path for audio data input, such as an I2S audio input bus, a path for reading an audio file from a memory chip, and the like. In addition, the router 100 also has a WIFI wireless routing function.
更具体的,所述音频数据传输装置10包括获取模块11、第一存储模块12、编码模块13、协议封装模块14以及广播模块15。More specifically, the audio data transmission device 10 includes an acquisition module 11, a first storage module 12, an encoding module 13, a protocol encapsulation module 14, and a broadcast module 15.
所述获取模块11用于获取音频数据。本实施例中,所述获取模块11为I2S接口,其与所述I2S音频输入总线连接,所述音频数据为脉冲编码调制(PCM)数据,所述获取模块11即通过所述I2S接口获取PCM数据。在其他实施例中,所述获取模块11也可以从保存有音频数据的其他文件中获得所述音频数据。The obtaining module 11 is configured to acquire audio data. In this embodiment, the acquiring module 11 is an I2S interface, which is connected to the I2S audio input bus, the audio data is pulse code modulation (PCM) data, and the obtaining module 11 obtains the PCM through the I2S interface. data. In other embodiments, the acquisition module 11 may also obtain the audio data from other files in which audio data is stored.
所述编码模块13用于对所获取的音频数据进行编码压缩。本实施例中,所述音频数据传输装置10进一步包括一第一存储模块12,所述第一存储模块12用于存储所获取的音频数据。本实施例中,所述第一存储模块12为保存脉冲编码调制(PCM)数据的一个先入先出队列(FIFO)。所述编码模块13把所述PCM FIFO存储的音频数据读取出来,并进行音频编码压缩。本实施例中,使用opus编码器对所述音频数据进行编码压缩。The encoding module 13 is configured to perform encoding compression on the acquired audio data. In this embodiment, the audio data transmission device 10 further includes a first storage module 12, and the first storage module 12 is configured to store the acquired audio data. In this embodiment, the first storage module 12 is a first in first out queue (FIFO) that stores pulse code modulation (PCM) data. The encoding module 13 reads out the audio data stored in the PCM FIFO and performs audio encoding compression. In this embodiment, the audio data is encoded and compressed using an opus encoder.
所述协议封装模块14用于对编码后的音频数据进行协议封装。本实施例中,所述协议封装模块14把编码后的数据帧取出,并进行UDP协议封装。可以理解,在其他实施例中,所述协议还可以是任何其他适合使用的协议。The protocol encapsulation module 14 is configured to perform protocol encapsulation on the encoded audio data. In this embodiment, the protocol encapsulating module 14 takes out the encoded data frame and performs UDP protocol encapsulation. It will be appreciated that in other embodiments, the protocol may also be any other protocol suitable for use.
所述广播模块15用于将封装后的音频数据广播到局域网中。The broadcast module 15 is configured to broadcast the encapsulated audio data to a local area network.
在另一实施例中,所述音频数据传输装置10进一步包括第二存储模块16,连接在所述编码模块13和所述协议封装模块14之间,用于存储编码压缩后的音频数据。In another embodiment, the audio data transmission device 10 further includes a second storage module 16 coupled between the encoding module 13 and the protocol encapsulation module 14 for storing encoded compressed audio data.
可以理解的是,所述第一存储模块12和第二存储模块16可集成在所述路由器100的存储芯片中。It can be understood that the first storage module 12 and the second storage module 16 can be integrated in the storage chip of the router 100.
请参阅图3,本发明还提供一种音频数据接收装置20,用于接收所述路由器100发送的音频数据,并进行处理和播放。本实施例中,所述音频数据接收装置20设置在所述通讯终端中。所述音频数据接收装置20包括接收模块21、分析模块22、解码模块23以及播放模块24。Referring to FIG. 3, the present invention further provides an audio data receiving apparatus 20 for receiving audio data transmitted by the router 100, and processing and playing. In this embodiment, the audio data receiving device 20 is disposed in the communication terminal. The audio data receiving device 20 includes a receiving module 21, an analyzing module 22, a decoding module 23, and a playing module 24.
所述接收模块21用于接收来自于路由器100广播的音频数据。本实施例中, 通过UDP协议接收路由器100发送的广播,所述广播包括了所述音频数据。The receiving module 21 is configured to receive audio data broadcasted by the router 100. In this embodiment, The broadcast transmitted by the router 100 is received through the UDP protocol, and the broadcast includes the audio data.
所述分析模块22用于分析所述音频数据在广播过程中的丢帧情况。The analyzing module 22 is configured to analyze a frame loss situation of the audio data during a broadcast process.
所述解码模块23用于对所述音频数据进行解包和解码。本实施例中,根据UDP封装协议,对FIFO里面的数据进行解包,然后对音频数据进行解码。The decoding module 23 is configured to unpack and decode the audio data. In this embodiment, according to the UDP encapsulation protocol, the data in the FIFO is unpacked, and then the audio data is decoded.
所述播放模块24用于播放解码后的音频数据。本实施例中,当所述播放模块24得到解码后的音频数据后,调用音频播放接口,播放所述音频数据。The playing module 24 is configured to play the decoded audio data. In this embodiment, after the playing module 24 obtains the decoded audio data, the audio playing interface is called to play the audio data.
在另一实施例中,所述音频数据接收装置20还包括一存储模块,用于存储所接收的音频数据,并根据读取命令提供音频数据给所述分析模块22。In another embodiment, the audio data receiving device 20 further includes a storage module for storing the received audio data and providing audio data to the analysis module 22 according to the read command.
通过上述的音频数据传输装置10和接收装置,路由器100能够通过获取模块11(I2S接口)获得音频PCM数据,然后,经过对所述音频数据进行编码压缩和协议封装后,直接发送至接收终端,而无需通过发送终端对音频数据进行处理后,再经由网络服务器转发到接收终端,方便快捷。Through the above-mentioned audio data transmission device 10 and the receiving device, the router 100 can obtain the audio PCM data through the acquisition module 11 (I2S interface), and then, after encoding and compressing the protocol and compressing the protocol, directly transmitting the audio data to the receiving terminal. The audio data is not processed by the transmitting terminal, and then forwarded to the receiving terminal via the network server, which is convenient and quick.
请参阅图4,本发明还提供一种音频数据传输方法,所述方法包括以下步骤:Referring to FIG. 4, the present invention further provides an audio data transmission method, where the method includes the following steps:
步骤S401,获取音频数据。本实施例中,通过I2S接口获取音频数据,所述音频数据为脉冲编码调制(PCM)数据。In step S401, audio data is acquired. In this embodiment, audio data is acquired through an I2S interface, the audio data being Pulse Code Modulation (PCM) data.
步骤S402,存储所获取的音频数据。本实施例中,通过脉冲编码调制(PCM)寄存器(FIFO)存储所获取的音频数据。Step S402, storing the acquired audio data. In the present embodiment, the acquired audio data is stored by a pulse code modulation (PCM) register (FIFO).
步骤S403,读取所存储的音频数据,并进行编码压缩。本实施例中,使用opus编码器对所述音频数据进行编码压缩。In step S403, the stored audio data is read and encoded and compressed. In this embodiment, the audio data is encoded and compressed using an opus encoder.
步骤S404,存储压缩调制后的音频数据。Step S404, storing the compressed modulated audio data.
步骤S405,对编码后的音频数据进行协议封装。本实施例中,通过把编码后的数据帧取出,而进行UDP协议封装。可以理解,在其他实施例中,所述协议还可以是任何其他适合使用的协议。Step S405, performing protocol encapsulation on the encoded audio data. In this embodiment, UDP protocol encapsulation is performed by taking out the encoded data frame. It will be appreciated that in other embodiments, the protocol may also be any other protocol suitable for use.
步骤S406,将封装后的音频数据广播到局域网中。Step S406, the encapsulated audio data is broadcasted to the local area network.
可以理解,在一些实施例中,可省略步骤S402以及步骤S404,而且本发明并不以上述步骤的顺序为限。It can be understood that, in some embodiments, step S402 and step S404 may be omitted, and the present invention is not limited to the order of the above steps.
请再次参阅图4,本发明还提供一种音频数据接收方法,所述方法包括以下步骤:Referring to FIG. 4 again, the present invention further provides an audio data receiving method, where the method includes the following steps:
步骤S407,接收路由器100广播的音频数据。Step S407, receiving audio data broadcast by the router 100.
步骤S408,分析所述音频数据的丢帧情况。 Step S408, analyzing a frame loss condition of the audio data.
步骤S409,对所述音频数据进行解包和解码。Step S409, unpacking and decoding the audio data.
步骤S410,播放解码后的音频数据。Step S410, playing the decoded audio data.
通过上述的音频数据传输方法和接收方法,能够通过I2S接口获得音频PCM数据,然后,经过对所述音频数据进行编码压缩和协议封装后,直接发送至接收终端,而无需通过发送终端对音频数据进行处理后,再经由网络服务器转发到接收终端,方便快捷。Through the audio data transmission method and the receiving method described above, audio PCM data can be obtained through the I2S interface, and then, after encoding and compressing and encapsulating the audio data, directly transmitting to the receiving terminal without transmitting the terminal to the audio data. After processing, it is forwarded to the receiving terminal via the network server, which is convenient and quick.
需要说明的是,通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的硬件平台的方式来实现,当然也可以全部通过硬件来实施。基于这样的理解,本发明的技术方案对背景技术做出贡献的全部或者部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。It should be noted that, through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary hardware platform, and of course, all can be implemented by hardware. Based on such understanding, all or part of the technical solution of the present invention contributing to the background art may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM, a magnetic disk, an optical disk, or the like. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or in some portions of the embodiments.
以上所揭露的仅为本发明实施例中的较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 The above are only the preferred embodiments of the present invention, and the scope of the present invention is not limited thereto, and the equivalent changes made by the claims of the present invention are still within the scope of the present invention.

Claims (10)

  1. 一种数据传输装置,其特征在于,包括:A data transmission device, comprising:
    获取模块,用于获取音频数据;Obtaining a module for acquiring audio data;
    编码模块,用于对所获取的音频数据进行编码压缩;An encoding module, configured to encode and compress the obtained audio data;
    协议封装模块,用于对编码后的音频数据进行协议封装;以及a protocol encapsulation module for protocol encapsulation of the encoded audio data;
    广播模块,用于将封装后的音频数据广播到局域网中。A broadcast module for broadcasting the encapsulated audio data to a local area network.
  2. 如权利要求1所述的数据传输装置,进一步包括:The data transmission device of claim 1 further comprising:
    第一存储模块,用于存储所获取的音频数据;a first storage module, configured to store the acquired audio data;
    第二存储模块,用于存储编码压缩后的音频数据。The second storage module is configured to store the encoded compressed audio data.
  3. 如权利要求2所述的数据传输装置,其特征在于,所述获取模块为I2S接口,所述音频数据为脉冲编码调制数据,所述第一存储模块为脉冲编码调制寄存器。The data transmission device according to claim 2, wherein the acquisition module is an I2S interface, the audio data is pulse code modulation data, and the first storage module is a pulse code modulation register.
  4. 一种路由器,至少包括如权利要求1~3项任一项所述的数据传输装置。A router comprising at least the data transmission device according to any one of claims 1 to 3.
  5. 一种数据传输方法,包括:A data transmission method includes:
    获取音频数据;Obtain audio data;
    对所获取的音频数据进行编码压缩;Encoding and compressing the acquired audio data;
    对编码后的音频数据进行协议封装;以及Protocol encapsulation of the encoded audio data;
    将封装后的音频数据广播到局域网中。The encapsulated audio data is broadcast to the local area network.
  6. 如权利要求5所述的数据传输方法,进一步包括步骤:存储所获取的音频数据以及编码压缩后的音频数据。The data transmission method according to claim 5, further comprising the steps of: storing the acquired audio data and encoding the compressed audio data.
  7. 如权利要求5所述的数据传输方法,其特征在于,通过I2S接口获取音频数据,所述音频数据为脉冲编码调制数据,以及通过脉冲编码调制寄存器存储所获取的音频数据。The data transmission method according to claim 5, wherein the audio data is acquired through an I2S interface, the audio data is pulse code modulation data, and the acquired audio data is stored by a pulse code modulation register.
  8. 一种数据接收装置,包括:A data receiving device includes:
    接收模块,用于接收来自于路由器广播的音频数据;a receiving module, configured to receive audio data broadcasted by the router;
    分析模块,用于分析所述音频数据的丢帧情况;An analysis module, configured to analyze a frame loss condition of the audio data;
    解码模块,用于对所述音频数据进行解包和解码;a decoding module, configured to unpack and decode the audio data;
    播放模块,用于播放解码后的音频数据。A playback module for playing decoded audio data.
  9. 如权利要求8所述的数据接收装置,其特征在于,还包括:The data receiving device according to claim 8, further comprising:
    存储模块,用于存储所接收到的音频数据,并根据读取命令提供给所述分 析模块。a storage module, configured to store the received audio data, and provide the score according to the read command Analysis module.
  10. 一种数据接收方法,包括:A data receiving method includes:
    接收一路由器广播的音频数据;Receiving audio data broadcast by a router;
    分析所述音频数据的丢帧情况;Analyzing a frame loss condition of the audio data;
    对所述音频数据进行解包和解码;Unpacking and decoding the audio data;
    播放解码后的音频数据。 Play the decoded audio data.
PCT/CN2015/082730 2015-06-30 2015-06-30 Data transmission apparatus, router, and data transmission method WO2017000146A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/082730 WO2017000146A1 (en) 2015-06-30 2015-06-30 Data transmission apparatus, router, and data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/082730 WO2017000146A1 (en) 2015-06-30 2015-06-30 Data transmission apparatus, router, and data transmission method

Publications (1)

Publication Number Publication Date
WO2017000146A1 true WO2017000146A1 (en) 2017-01-05

Family

ID=57607435

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082730 WO2017000146A1 (en) 2015-06-30 2015-06-30 Data transmission apparatus, router, and data transmission method

Country Status (1)

Country Link
WO (1) WO2017000146A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697401A (en) * 2022-03-14 2022-07-01 广州广哈通信股份有限公司 Audio data transmission method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060030349A1 (en) * 2004-07-21 2006-02-09 Volkswagen Aktiengesellschaft Emergency calling system for a passenger transporting system, especially for a motor vehicle and a method for automatically transmitting an emergency call
US20060200253A1 (en) * 1999-02-01 2006-09-07 Hoffberg Steven M Internet appliance system and method
US20060218298A1 (en) * 2005-03-23 2006-09-28 Edward Knapp Methods and apparatus for using multiple wireless links with a wireless terminal
CN101420461A (en) * 2008-12-08 2009-04-29 北京邮电大学 Adaptive token barrel marking method based on service sensing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060200253A1 (en) * 1999-02-01 2006-09-07 Hoffberg Steven M Internet appliance system and method
US20060030349A1 (en) * 2004-07-21 2006-02-09 Volkswagen Aktiengesellschaft Emergency calling system for a passenger transporting system, especially for a motor vehicle and a method for automatically transmitting an emergency call
US20060218298A1 (en) * 2005-03-23 2006-09-28 Edward Knapp Methods and apparatus for using multiple wireless links with a wireless terminal
CN101420461A (en) * 2008-12-08 2009-04-29 北京邮电大学 Adaptive token barrel marking method based on service sensing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697401A (en) * 2022-03-14 2022-07-01 广州广哈通信股份有限公司 Audio data transmission method

Similar Documents

Publication Publication Date Title
US11109138B2 (en) Data transmission method and system, and bluetooth headphone
CN109246671B (en) Data transmission method, device and system
CN108712654B (en) Audio and video stream transcoding method and device
US9438852B2 (en) Video share model-based video fixing
CN108847248B (en) Bluetooth device audio processing method, system, readable storage medium and Bluetooth device
CN105187976B (en) Mobile terminal and method for amplifying sound based on Bluetooth sound
WO2018049892A1 (en) Data transmission method and apparatus, and terminal
WO2015168840A1 (en) Data processing method and apparatus
CN112995730A (en) Sound and picture synchronous adjustment method and device, electronic equipment and medium
US20140380344A1 (en) Method and Apparatus for Program Information Exchange and Communications System
CN111885412B (en) HDMI signal screen transmission method and wireless screen transmission device
CN115552518A (en) Signal encoding and decoding method and device, user equipment, network side equipment and storage medium
WO2017000146A1 (en) Data transmission apparatus, router, and data transmission method
WO2014174763A1 (en) Processing device, integrated circuit, processing method, and program
CN110366752B (en) Voice frequency division transmission method, source terminal, play terminal, source terminal circuit and play terminal circuit
CN103856810A (en) Multi-media information terminal with screen transmission function
WO2024016758A1 (en) Audio data transmission method and apparatus, chip, electronic device, and storage medium
CN101217602A (en) Voice service processing system, method and device
CN114244911A (en) Voice analysis method and device, receiving terminal equipment and storage medium
CN115132213A (en) Audio data transmission method, device, chip, electronic equipment and storage medium
CN108124183B (en) Method for synchronously acquiring video and audio to perform one-to-many video and audio streaming
CN112929706A (en) Video data playback method, device, storage medium, and electronic device
CN109150400B (en) Data transmission method and device, electronic equipment and computer readable medium
CN112073739A (en) Mobile recording and broadcasting control system and method
CN204795592U (en) Audiphone communication system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15896677

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15896677

Country of ref document: EP

Kind code of ref document: A1