CN105681819A - Method, device and system for sending and receiving signal - Google Patents

Method, device and system for sending and receiving signal Download PDF

Info

Publication number
CN105681819A
CN105681819A CN201410660404.3A CN201410660404A CN105681819A CN 105681819 A CN105681819 A CN 105681819A CN 201410660404 A CN201410660404 A CN 201410660404A CN 105681819 A CN105681819 A CN 105681819A
Authority
CN
China
Prior art keywords
predetermined
bit
length
binary
stream
Prior art date
Application number
CN201410660404.3A
Other languages
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 CN201410660404.3A priority Critical patent/CN105681819A/en
Publication of CN105681819A publication Critical patent/CN105681819A/en

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis

Abstract

The invention discloses a method and a device for sending and receiving a signal. The method for sending the signal comprises the steps of dividing to-be-sent audio data or a control command used for configuration of an audio transmission process into N binary code streams in a first preset bit length, wherein N is an integer greater than 0; coding the N binary code streams in the first preset bit length into N binary code streams in the second preset bit length according to a preset rule, wherein the second preset bit length is greater than the first preset bit length; setting a data frame starting sign SOFA or a control frame starting sign SOFC at the starting position of at least one binary code stream in the second preset bit length and generating M data frames or M control frames, wherein the SOFA corresponds to the audio data, and the SOFC corresponds to the control command; and outputting the M data frames or the M control frames through a single-line output interface. Through the method for sending the signal, the problem that multiple signal lines are required for transmission of the audio data and the control command is solved.

Description

信号的发送、接收方法及装置、系统 Transmission signal receiving method and apparatus, system

技术领域 FIELD

[0001] 本发明涉及通信领域,具体而言,涉及一种信号的发送、接收方法及装置、系统。 [0001] The present invention relates to communication field, particularly, to a signal transmission, receiving method and apparatus, system.

背景技术 Background technique

[0002] 随着技术的发展,音频信号在设备内部和设备间的传输,越来越多的使用了数字化的方法,以避免模拟信号传输引入的噪声和失真。 [0002] With the development of technology, the audio signal transmission between devices and internal devices, the increasing use of digital methods to avoid noise and distortion introduced by the analog signal transmission. 常用的数字音频格式包括PCM(Pulse Code Modulation,脉冲编码调制)、I2S(Inter_IC Sound,芯片间音频接口)和SFOIFGony/Philips Digital Interface Format,索尼/ 飞利浦数字接口)等。 Common formats include digital audio PCM (Pulse Code Modulation, Pulse Code Modulation), I2S (Inter_IC Sound, inter-chip audio interface) and SFOIFGony / Philips Digital Interface Format, Sony / Philips Digital Interface) and the like.

[0003] PCM和I2S是很成熟的技术,简单可靠,大量应用于设备内部的音频互连。 [0003] PCM and I2S very mature technology, simple and reliable, widely used in audio equipment interconnected inside. 但这两种接口有共同的缺陷:第一是单向音频需要3个信号线传输,双向的音频需要4个信号线传输,稍嫌繁琐;第二是两侧的接口必须进行时钟,位宽和时隙的配置后才能正常工作,而这些配置命令又必须通过别的控制接口例如I2C(Inter-Integrated Circuit,芯片间互连接口)或者SPI (Serial Peripheral Interface,串行外设接口)等接口去实现,这必然造成连线数量的进一步增加,不利于电路的简化和低成本设计,也不利于设备的小型化。 But the two interfaces share a common flaw: a first one-way audio transmission requires three signal lines, two-way audio transmission requires four signal lines, somewhat cumbersome; second sides of the interface must be clocked bit width and the time slot configuration to work properly, which in turn must be other configuration commands control interface, for example, I2C (inter-Integrated Circuit, inter-chip interconnect interface), or SPI (serial peripheral Interface, serial peripheral Interface) interfaces to achieve, which will inevitably lead to a further increase in the number of connections is not conducive to simplify circuit design and low cost, is not conducive to miniaturization of the device.

[0004] sroiF也是成熟的技术,它传输单向的音频信号只需要单个信号线,对简化音频设备间的互连非常有利。 [0004] sroiF technology is mature, it transmits a one-way audio signals requires only a single signal line, is very beneficial to simplify interconnections between audio devices. 但是,sroiF也有很明显的缺陷:第一,sroiF协议比较复杂,导致通信双方的电路和软件成本较高;第二,sroiF不支持多于2个声道的信号直接传输,必须通过复杂的压缩编码才能间接实现,进一步增加软件开销、加大处理器负担并增加功耗。 However, sroiF there are obvious drawbacks: first, sroiF complex protocol, results in higher communication costs both the circuitry and software; second, sroiF not support direct transmission signal of more than two channels, must be sophisticated compression coding to achieve indirectly, further increase software overhead, increase the processor load and increasing power consumption. 由于上述的原因,目前SPDIF仅用于设备间接口,例如独立的播放器和独立功放之间的互连,在设备内部的互连中一般不用。 Because of the above reasons, SPDIF only for inter-device interface, for example, the interconnection between the independent and independent amplifiers player, the internal interconnect devices generally do not.

发明内容 SUMMARY

[0005] 本发明提供了一种信号的发送、接收方法及装置、系统,以至少解决相关技术中音频数据和控制命令需要通过多根信号线传输的问题。 [0005] The present invention provides a signal transmission, receiving method and apparatus, a system, related art to solve at least audio data and control commands require signal line for transmitting a plurality of questions through.

[0006] 根据本发明的一个方面,提供了一种信号的发送方法,包括:将待发送的音频数据或用于对音频传输过程进行配置的控制命令划分为N个第一预设比特长度的二进制码流, N为大于0的整数;将所述N个第一预设比特长度的二进制码流按照预设规则编码为N个第二预设比特长度的二进制码流,所述第二预设比特长度大于所述第一预设比特长度;在至少一个所述第二预设比特长度的二进制码流的起始位置设置数据帧起始标志SOFA或控制帧起始标志S0FC,生成Μ个数据帧或Μ个控制帧,其中,所述SOFA对应于所述音频数据, 所述S0FC对应于所述控制命令,Μ不大于N ;将所述Μ个数据帧或Μ个控制帧通过单线输出接口输出。 [0006] In accordance with one aspect of the present invention, there is provided a method of transmitting a signal, comprising: the audio data to be transmitted for audio transmission or a control command arranged into N bits of a first predetermined length binary stream, N being an integer greater than 0; and the N bits of the first predetermined length of a binary bit stream encoded according to a preset rule to the N second predetermined bit length of the binary stream, the second pre set bit length greater than the first predetermined bit length; at the start of the frame start flag setting binary data stream at least one of said second predetermined bit length or a control frame start flag SOFA S0FC, generating a Μ [mu] control data frame or frames, wherein the audio data corresponding to the SOFA, the S0FC corresponding to the control command, [mu] is not greater than N; the [mu] [mu] data frames or control frames over a single wire output interface output.

[0007] 优选地,所述第一预设比特长度为4比特,所述第二预设比特长度为5比特;所述将所述Ν个第一预设比特长度的二进制码流按照预设规则编码为Ν个第二预设比特长度的二进制码流,包括:将所述Ν个第一预设比特长度的二进制码流扩展成所述Ν个第二预设比特长度的二进制码流,其中,所述第二预设比特长度的二进制码流内包含1和〇,并且所述第二预设比特长度的二进制码流内不包含连续的三个1,并且,若所述第二预设比特长度的二进制码流的第一位为1,则所述第二预设比特长度的二进制码流的第二位为0 ;若所述第二预设比特长度的二进制码流的最后一位为1,则所述第二预设比特长度的二进制码流的倒数第二位为0。 [0007] Preferably, the first predetermined bit length is 4 bits, the second predetermined bit length is 5 bits; Ν the said first predetermined bit length of a binary code stream according to a preset rule encoded binary Ν second predetermined bit length code stream, comprising: a first Ν the predetermined bit length of the binary code stream extended to a second predetermined binary Ν bit length of the code stream, wherein the binary code stream of the second predetermined bit length and contains 1 billion, and the second preset 1 does not comprise three consecutive bits within the binary code stream length and, if the second pre- the first one is a stream of binary code provided bit length, said second predetermined binary bit stream length of the second bit is 0; and finally a binary code stream if the second predetermined bit length bit is 1, the inverse of the binary code stream a second predetermined bit length of the second bit is 0.

[0008] 优选地,所述SOFA和所述S0FC均为第一比特位为0,且包含有连续的三个1的比特码流。 [0008] Preferably, both the first S0FC SOFA and the bit is 0, and comprises three continuous bit stream 1.

[0009] 根据本发明的另一个方面,提供了一种信号的接收方法,包括:通过单线输入接口接收Μ个数据帧或Μ个控制帧,所述Μ个数据帧或所述Μ个控制帧的每一个包括至少一个第二预设比特长度的二进制码流,以及设置在所述第二预设比特长度的二进制码流的起始位置的数据帧起始标志SOFA或控制帧起始标志S0FC,其中,所述SOFA对应于所述数据中贞, 所述S0FC对应于所述控制帧;将所述Μ个数据帧或所述Μ个控制帧按照预设规则解码为N 个第一预设比特长度的二进制码流,所述第二预设比特长度大于所述第一预设比特长度,Ν 为大于〇的整数,Μ不大于Ν。 [0009] According to another aspect of the invention there is provided a method for receiving a signal, comprising: an input interface receiving a single-wire or Μ Μ data frames control frames or the data frames Μ Μ said control frame each comprises at least a second predetermined length of a binary bit stream, and setting the data frame or control frame start flag SOFA S0FC start flag at the start of the second binary code stream of the predetermined bit length wherein the data corresponding to the SOFA Chen, said control frame corresponding to the S0FC; Μ the data frame or the control frame according to a preset Μ decoding rule is a first predetermined number N binary code stream bit length, said second predetermined bit length greater than the first predetermined bit length, v is an integer greater than square, no greater than [mu] Ν.

[0010] 优选地,所述SOFA和S0FC均为第一比特位为0,且包含有连续的三个1的比特码流。 [0010] Preferably, both the first SOFA and S0FC bit is 0, and comprises three continuous bit stream 1.

[0011] 优选地,所述第一预设比特长度为4比特,所述第二预设比特长度为5比特;所述将所述Μ个数据帧或所述Μ个控制帧按照预设规则解码为N个第一预设比特长度的二进制码流,包括:将所述Μ个数据帧或所述Μ个控制帧解码为所述Ν个第一预设比特长度的二进制码流,其中,所述第二预设比特长度的二进制码流内包含1和〇,并且所述第二预设比特长度的二进制码流内不包含连续的三个1,并且若所述第二预设比特长度的二进制码流的第一位为1,则所述第二预设比特长度的二进制码流的第二位为0,并且若所述第二预设比特长度的二进制码流的最后一位为1,则所述第二预设比特长度的二进制码流的倒数第二位为0。 [0011] Preferably, the first predetermined bit length is 4 bits, the second predetermined bit length is 5 bits; Μ the said data frames or frames according to a preset control Μ rules decoding a first predetermined number of N bit length of binary code stream, comprising: Μ the data frame or the control frame decoder Μ Ν is the binary stream of first predetermined bit length, wherein said second predetermined binary code stream comprising the bit length and 1 billion, and the second preset does not comprise three consecutive binary code stream within a bit length, and if the second predetermined bit length a first binary code into a binary code stream stream 1, then the second predetermined bit length of the second bit is 0, and if binary code stream the second predetermined bit length for the last one 1, the inverse of the second predetermined binary bit stream length of the second bit is 0.

[0012] 根据本发明的另一方面,提供了一种发送装置,包括:数据分组单元,用于将待发送的音频数据或用于对音频传输过程进行配置的控制命令划分为Ν个第一预设比特长度的二进制码流,Ν为大于0的整数;编码单元,用于将所述Ν个第一预设比特长度的二进制码流按照预设规则编码为Ν个第二预设比特长度的二进制码流,所述第二预设比特长度大于所述第一预设比特长度;在至少一个所述第二预设比特长度的二进制码流的起始位置设置数据帧起始标志SOFA或控制帧起始标志S0FC,生成Μ个数据帧或Μ个控制帧,其中,所述SOFA对应于所述音频数据,所述S0FC对应于所述控制命令,Μ不大于Ν ;输出单元,用于将所述Μ个数据帧或Μ个控制帧通过单线输出接口输出。 [0012] According to another aspect of the present invention, there is provided a transmitting apparatus, comprising: a packet unit, audio data to be transmitted or the control commands for configuring the audio transmission process is divided into a first Ν preset length binary bit stream, v is an integer greater than 0; encoding unit for the first predetermined bit length v of a binary code stream encoded according to a preset rule to a second predetermined bit length v binary stream, the second predetermined bit length greater than the first predetermined bit length; SOFA data frame start flag at the start of the binary code stream least one said second predetermined bit length setting or S0FC control frame start flag, generates data frames [mu] [mu], or control frames, wherein the audio data corresponding to the SOFA, the S0FC corresponding to the control command, not more than [mu] v; output unit the single wire output interface or the Μ Μ data frames by frame control.

[0013] 优选地,所述编码单元,用于将所述Ν个第一预设比特长度的二进制码流扩展成所述Ν个第二预设比特长度的二进制码流,其中,所述第二预设比特长度的二进制码流内包含1和〇,并且所述第二预设比特长度的二进制码流内不包含连续的三个1,并且若所述第二预设比特长度的二进制码流的第一位为1,则所述第二预设比特长度的二进制码流的第二位为0,并且若所述第二预设比特长度的二进制码流的最后一位为1,则所述第二预设比特长度的二进制码流的倒数第二位为0 ;所述SOFA和所述S0FC均为第一比特位为0,且包含有连续的三个1的比特码流。 [0013] Preferably, the encoding means for a first predetermined Ν the bit length of the binary code stream into a spreading Ν second predetermined binary bit length of the code stream, wherein said first the two binary code stream comprising a predetermined bit length and a square, and the second preset does not comprise three consecutive binary code stream within a bit length, and if the second predetermined bit length binary code 1 is a first stream, the second predetermined bit length of the binary code stream of a second bit is 0, and if the second predetermined binary code stream bit length last bit is 1, binary inverse of the second predetermined length of the second bit stream bit is 0; S0FC both said first and said SOFA bit is 0, and comprises three continuous bit stream 1.

[0014] 根据本发明的另一方面,提供了一种接收装置,包括:接收单元,用于通过单线输入接口接收Μ个数据帧或Μ个控制帧,所述Μ个数据帧或所述Μ个控制帧的每一个包括至少一个第二预设比特长度的二进制码流,以及设置在所述第二预设比特长度的二进制码流的起始位置的数据帧起始标志SOFA或控制帧起始标志SOFC,其中,所述SOFA对应于所述数据帧,所述S0FC对应于所述控制帧,N为大于0的整数,Μ不大于N ;解码单元,用于将所述Μ个数据帧或所述Μ个控制帧按照预设规则解码为Ν个第一预设比特长度的二进制码流,所述第二预设比特长度大于所述第一预设比特长度。 [0014] According to another aspect of the present invention, there is provided a receiving apparatus, comprising: a receiving unit for receiving data frames Μ single-wire interfaces or Μ control input frames, the data frames or the Μ Μ each control frame comprises at least a second predetermined length of a binary bit stream, and setting the starting position of the second binary code stream of a predetermined bit length of the data frame or control frame start flag from SOFA the SOFC start flag, wherein said data frame corresponding to the SOFA, the S0FC corresponding to the control frame, N being an integer greater than 0, [mu] is not greater than N; a decoding unit for converting the data frames [mu] Μ or the control frame is decoded in accordance with a preset rule Ν binary stream of first predetermined bit length, said second predetermined bit length greater than the first predetermined bit length.

[0015] 优选地,所述解码单元,用于将所述Μ个数据帧或所述Μ个控制帧解码为所述Ν个第一预设比特长度的二进制码流,其中,所述第二预设比特长度的二进制码流内包含1和0,并且所述第二预设比特长度的二进制码流内不包含连续的三个1,并且若所述第二预设比特长度的二进制码流的第一位为1,则所述第二预设比特长度的二进制码流的第二位为0,并且若所述第二预设比特长度的二进制码流的最后一位为1,则所述第二预设比特长度的二进制码流的倒数第二位为0。 [0015] Preferably, the decoding unit for the data frames Μ Μ control frame or the decoded Ν a first predetermined length of a binary bit stream, wherein the second a predetermined length of a binary bit stream comprising within 0 and 1, and the second preset does not comprise three consecutive binary code stream within a bit length, and when the second predetermined length of a binary bit stream binary code of the first bit stream is 1, the second predetermined bit length of the second bit is 0, and a binary code stream if the second predetermined bit length last bit is 1, then the binary inverse of said second predetermined bit stream length of the second bit is 0.

[0016] 根据本发明的另一个方面,提供了一种信号交互系统,包括:处理器,用于将待发送的音频数据或用于对音频传输过程进行配置的控制命令划分为Ν个第一预设比特长度的二进制码流,Ν为大于0的整数;将所述Ν个第一预设比特长度的二进制码流按照预设规则编码为Ν个第二预设比特长度的二进制码流,所述第二预设比特长度大于所述第一预设比特长度;在至少一个所述第二预设比特长度的二进制码流的起始位置设置数据帧起始标志SOFA或控制帧起始标志S0FC,生成Μ个数据帧或Μ个控制帧,其中,所述SOFA对应于所述音频数据,所述S0FC对应于所述控制命令,Μ不大于N ;将所述Μ个数据帧或Μ个控制帧通过单线输出接口传输至音频解码器; [0016] According to another aspect of the invention, there is provided a signal exchange system, comprising: a processor, the audio data to be transmitted or for audio transmission process is divided into a control command configured of first Ν preset length binary bit stream, v is an integer greater than 0; v the length of first predetermined binary bit stream is encoded according to a preset rule v second predetermined length of a binary bit stream, the second predetermined bit length greater than the first predetermined bit length; starting position binary code stream in at least one predetermined bit length of said second frame start flag setting data or control frame start flag SOFA S0FC, generating [mu] [mu] data frames or control frames, wherein the audio data corresponding to the SOFA, the S0FC corresponding to the control command, [mu] is not greater than N; the [mu] [mu] or more data frames control frame transmitted through a single wire output interface to the audio decoder;

[0017] 所述音频解码器,用于通过单线输入接口接收所述Μ个数据帧或所述Μ个控制帧; 将所述Μ个数据帧或所述Μ个控制帧按照预设规则解码为所述Ν个第一预设比特长度的二进制码流。 [0017] The audio decoder, for receiving through said single-wire input interface Μ Μ data frames or control frames; Μ the data frame or the control frame Μ decoded according to a preset rule the Ν binary stream of first predetermined bit length.

[0018] 通过本发明,采用将待发送的音频数据或者控制命令按照预设规则进行编码,并在编码后的二进制码流的起始位置设置数据帧起始标志或控制帧起始标志,进而通过单线输出接口进行传输的技术方案。 [0018] By the present invention, using the audio data to be transmitted or the control commands encoded according to a preset rule, in the starting position and the frame start flag binary data stream or the encoded control frame start flag, and then for transmission over a single wire aspect of the output interface. 解决了相关技术中音频数据和控制命令需要通过多根信号线传输的问题,进而达到了电路简化、设备小型化的效果。 Problem in the related art audio data and control commands need to issue a plurality of signal transmission lines, thereby achieving a simplified circuit, miniaturization of equipment effects.

附图说明 BRIEF DESCRIPTION

[0019] 此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。 [0019] The drawings described herein are provided for further understanding of the present invention, constitute a part of this application, exemplary embodiments of the present invention are used to explain the present invention without unduly limiting the present invention. 在附图中: In the drawings:

[0020] 图1是根据本发明实施例的信号的发送方法流程示意图; [0020] FIG. 1 is a schematic flow signal transmission method according to an embodiment of the present invention;

[0021] 图2是根据本发明实施例的信号的接收方法流程示意图; [0021] FIG. 2 is a schematic diagram of a signal receiving method according to an embodiment of the process of the present invention;

[0022] 图3是根据本发明实施例的发送装置的结构示意图; [0022] FIG. 3 is a diagram showing the configuration of transmitting apparatus according to an embodiment of the present invention;

[0023] 图4是根据本发明实施例的接收装置的结构示意图; [0023] FIG. 4 is a diagram showing the configuration of the receiving apparatus according to an embodiment of the present invention;

[0024] 图5是根据本发明实施例的信号交互系统的结构示意图; [0024] FIG. 5 is a diagram showing the configuration of the signal of the interactive system according to an embodiment of the present invention;

[0025] 图6是根据本发明实施例的基本电路框图; [0025] FIG. 6 is a basic circuit diagram of an embodiment of the present invention;

[0026] 图7是根据本发明实施例的发送侧的硬件逻辑框图; [0026] FIG. 7 is a block diagram showing a hardware logic transmission side according to an embodiment of the present invention;

[0027] 图8是根据本发明实施例的接收侧的硬件逻辑框图; [0027] FIG. 8 is a logic diagram of a hardware embodiment of the receiving side in accordance with the present invention;

[0028] 图9是根据本发明实施例的工作流程示意图。 [0028] FIG. 9 is a schematic view of an embodiment according to the workflow of the present invention.

具体实施方式 Detailed ways

[0029] 下文中将参考附图并结合实施例来详细说明本发明。 [0029] Hereinafter with reference to the accompanying drawings and embodiments of the present invention will be described in detail. 需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。 Incidentally, in the case of no conflict, embodiments and features of the embodiments of the present application can be combined with each other.

[0030] 本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。 [0030] Other features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or learned by practice of the present invention. 本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。 The objectives and other advantages of the invention may be realized and attained by the written description, claims, and drawings structure particularly pointed out.

[0031] 需要说明的是,本发明实施例中的"第一" "第二"仅用于区分,并不用于对顺序或优先级的限定。 [0031] Incidentally, in the embodiment of "first" and "second" are only used to distinguish embodiment of the present invention is not intended to limit the order or priority.

[0032] 本发明实施例提供了一种信号的发送方法,如图1所示,该方法包括以下步骤: [0032] The embodiments of the present invention provides a method of transmitting a signal, shown in Figure 1, the method comprising the steps of:

[0033] S102、将待发送的音频数据或用于对音频传输过程进行配置的控制命令划分为N 个第一预设比特长度的二进制码流,N为大于0的整数; Audio data [0033] S102, or to be transmitted for audio transmission a control command arranged into N first predetermined binary bit stream length, N being an integer greater than 0;

[0034] S104、将N个第一预设比特长度的二进制码流按照预设规则编码为N个第二预设比特长度的二进制码流,第二预设比特长度大于第一预设比特长度; [0034] S104, the N bits of a first predetermined length of a binary bit stream encoded according to a preset rule to the N second predetermined binary bit length of the code stream, a second predetermined bit length greater than the first predetermined bit length ;

[0035] S106、在至少一个第二预设比特长度的二进制码流的起始位置设置数据帧起始标志SOFA或控制帧起始标志S0FC,生成Μ个数据帧或Μ个控制帧,其中,SOFA对应于音频数据,S0FC对应于控制命令,Μ不大于N ; [0035] S106, the binary stream at the start of at least one predetermined bit length of the second frame start flag setting data or control frame start flag SOFA S0FC, generates Μ Μ data frames or control frames, wherein SOFA corresponding to the audio data, S0FC corresponding to the control command, [mu] is not greater than N;

[0036] S108、将Μ个数据帧或Μ个控制帧通过单线输出接口输出。 [0036] S108, the data frames Μ Μ control frame or a single wire output interface.

[0037] 其中,每一个第二预设比特长度的二进制码流中均不包含S0FA(START 0F FRAME-AUDIO,数据帧起始标志)或SOFC(START OF FRAME-COMMAND,控制帧起始标志),即第二预设比特长度的二进制码流的编码方式与SOFA或S0FC不相同,进而保证了SOFA和S0FC的唯一性,方便使用简单的电路对SOFA和S0FC进行检测。 [0037] wherein each of a second predetermined length of a binary bit stream are not included in S0FA (START 0F FRAME-AUDIO, a data frame start flag) or SOFC (START OF FRAME-COMMAND, control frame start flag) , i.e., the binary stream encoding the second predetermined bit length is not S0FC SOFA or identical, thus ensuring the uniqueness of the SOFA and S0FC, easy to use and simple circuit SOFA S0FC detected. 其中,多个第二预设长度的比特码流可以对应一个SOFA或S0FC。 Wherein the second plurality of bit streams may correspond to a predetermined length or SOFA S0FC.

[0038] 本发明实施例中,由于采用了将待发送的音频数据或者控制命令按照预设规则进行编码,并在编码后的二进制码流的起始位置设置数据帧起始标志或控制帧起始标志,从而实现通过单线输出接口进行传输的技术方案。 [0038] The embodiments of the present invention, since the audio data to be transmitted or the control commands encoded according to a preset rule, and in the starting position binary code stream encoded frame start flag setting data or control frame from start flag, thereby achieving the technical solution for transmission over a single wire output interface. 因此,可以解决音频数据和控制命令需要通过多根信号线传输的问题,进而达到了电路简化、设备小型化的效果。 Thus, it is possible to solve the audio data and control commands need to issue a plurality of signal transmission lines, thereby achieving a simplified circuit, miniaturization of equipment effects.

[0039] 优选地,将N个第一预设比特长度的二进制码流按照预设规则编码为N个第二预设比特长度的二进制码流,包括:将N个第一预设比特长度的二进制码流扩展成N个第二预设比特长度的二进制码流,其中,第二预设比特长度的二进制码流内包含1和〇,并且第二预设比特长度的二进制码流内不包含连续的三个1,并且若第二预设比特长度的二进制码流的第一位为1,则第二预设比特长度的二进制码流的第二位为〇,并且若第二预设比特长度的二进制码流的最后一位为1,则第二预设比特长度的二进制码流的倒数第二位为0。 [0039] Preferably, the predetermined bit length N first binary code stream encoded according to a preset rule to the N second predetermined binary bit length of the code stream, comprising: N first predetermined bit length extended binary code stream into N second predetermined length of a binary bit stream, wherein the second predetermined length of a binary bit stream and comprises 1 billion, and does not contain a second predetermined bit length of the binary code stream three consecutive 1, and if a second predetermined length of a binary bit stream 1 is the first bit, the second predetermined length of a binary bit stream for the second square, and if a second predetermined bit the length of the binary code stream of the last bit is 1, the inverse of a second predetermined binary bit stream length of the second bit is 0. 根据这样的编码方案,无论按任意顺序随意组合,均不会出现连续的3个或更多的1。 According to such a coding scheme, whether freely combined in any order, it will not appear three or more consecutive ones.

[0040] 优选地,SOFA和S0FC均为第一比特位为0,且包含有连续的三个1的比特码流。 [0040] Preferably, and SOFA are S0FC first bit is 0, and comprises three continuous bit stream 1. 进而保证了SOFA和S0FC的唯一性,方便使用简单的电路对SOFA和S0FC进行检测。 Thereby ensuring the uniqueness of the SOFA and S0FC, easy to use and simple circuit SOFA S0FC detected.

[0041] 优选地,将Μ个数据帧或Μ个控制帧通过单线输出接口传输至音频解码器包括:将Μ个数据帧或Μ个控制帧转换为串行帧,并将串行帧通过单线输出接口传输至音频解码器。 [0041] Preferably, the data frames Μ or Μ control frame transmitted through the single-wire output interface to the audio decoder comprising: Μ Μ data frames or control frames are converted into serial frames and single-wire serial frame an output interface to transfer to the audio decoder. 进而按照预定的格式组成串行帧,在单根信号线上进行传输。 Further in accordance with a predetermined composition serial frame format for transmission over a single signal line.

[0042] 优选地,第一预设比特长度为4比特,第二预设比特长度为5比特。 [0042] Preferably, the first predetermined bit length is 4 bits, a second predetermined bit length is 5 bits.

[0043] 本发明实施例还提供了一种信号的接收方法,如图2所示,该方法包括以下步骤: [0043] Embodiments of the present invention further provides a method for receiving a signal, shown in Figure 2, the method comprising the steps of:

[0044] S202、通过单线输入接口接收Μ个数据帧或Μ个控制帧,Μ个数据帧或Μ个控制帧的每一个包括至少一个第二预设比特长度的二进制码流,以及设置在第二预设比特长度的二进制码流的起始位置的数据帧起始标志SOFA或控制帧起始标志S0FC,其中,SOFA对应于数据帧,S0FC对应于控制帧; [0044] S202, received through the input interface singlet [mu] [mu] data frames or control frames, data frames, or [mu] [mu] each control frame comprises at least a second predetermined length of a binary bit stream, and setting the first binary code data start position of the predetermined bit length of stream two frame start flag or a control frame start flag SOFA S0FC, wherein, the data frame corresponding to the SOFA, S0FC corresponds to a control frame;

[0045] S204、将Μ个数据帧或Μ个控制帧按照预设规则解码为N个第一预设比特长度的二进制码流,第二预设比特长度大于第一预设比特长度Ν为大于0的整数,Μ不大于Ν。 [0045] S204, or the data frames Μ Μ control frame in accordance with a preset rule to decode the N first predetermined binary bit length of the code stream, a second predetermined bit length greater than the first predetermined bit length greater than Ν is an integer of 0, not more than [mu] Ν.

[0046] 优选地,将Μ个数据帧或Μ个控制帧按照预设规则解码为Ν个第一预设比特长度的二进制码流,包括:将Μ个数据帧或Μ个控制帧解码为Ν个第一预设比特长度的二进制码流,其中,第二预设比特长度的二进制码流内包含1和〇,并且第二预设比特长度的二进制码流内不包含连续的三个1,并且若第二预设比特长度的二进制码流的第一位为1,则第二预设比特长度的二进制码流的第二位为0,并且若第二预设比特长度的二进制码流的最后一位为1,则第二预设比特长度的二进制码流的倒数第二位为0。 [0046] Preferably, the Μ Μ data frames or control frames according to a preset rule Ν decoding binary code stream of first predetermined bit length, comprising: Μ data frames control frames or decoded Μ Ν binary stream of first predetermined bit length, wherein the second predetermined length of a binary bit stream and comprises 1 billion, and does not contain three consecutive binary 1 in a second predetermined bit length of the code stream, when the first and second predetermined length of a binary bit stream is 1, the second predetermined length of a binary bit stream of the second bit is 0, and if a second predetermined bit length of the binary code stream the last bit is 1, the inverse of the second predetermined binary bit stream length of the second bit is 0.

[0047] 优选地,SOFA和S0FC均为第一比特位为0,且包含有连续的三个1的比特码流。 [0047] Preferably, and SOFA are S0FC first bit is 0, and comprises three continuous bit stream 1.

[0048] 优选地,第一预设比特长度为4比特,第二预设比特长度为5比特。 [0048] Preferably, the first predetermined bit length is 4 bits, a second predetermined bit length is 5 bits.

[0049] 本发明实施例还提供了一种发送装置,如图3所示,该装置包括: [0049] Embodiments of the present invention further provides a transmission apparatus, shown in Figure 3, the apparatus comprising:

[0050] 数据分组单元302,用于将待发送的音频数据或用于对音频传输过程进行配置的控制命令划分为N个第一预设比特长度的二进制码流,N为大于0的整数; Audio data [0050] packet data unit 302 is configured to be transmitted for audio transmission or a control command arranged into N code stream of a first predetermined binary bit length, N is an integer greater than 0;

[0051] 编码单元304,用于将N个第一预设比特长度的二进制码流按照预设规则编码为N 个第二预设比特长度的二进制码流,第二预设比特长度大于第一预设比特长度;在至少一个第二预设比特长度的二进制码流的起始位置设置数据帧起始标志SOFA或控制帧起始标志S0FC,生成Μ个数据帧或Μ个控制帧,其中,SOFA对应于音频数据,S0FC对应于控制命令; [0051] The coding unit 304 for the first predetermined bit length of N binary coded bit stream according to a preset rule to the N second predetermined binary code stream bit length, the second length is greater than a first predetermined bit predetermined bit length; S0FC frame start flag at the start of the binary code stream at least one second predetermined bit length setting data or control frame start flag SOFA generates Μ Μ data frames or control frames, wherein SOFA corresponding to the audio data, S0FC corresponding to a control command;

[0052] 输出单元306,用于将Μ个数据帧或Μ个控制帧通过单线输出接口传输至音频解码器。 [0052] The output unit 306, for data frames or Μ Μ control frame transmitted through the single-wire output interface to the audio decoder.

[0053] 优选地,编码单元304,用于将Ν个第一预设比特长度的二进制码流扩展成Ν个第二预设比特长度的二进制码流,其中,第二预设比特长度的二进制码流内包含1和0,并且第二预设比特长度的二进制码流内不包含连续的三个1,并且若第二预设比特长度的二进制码流的第一位为1,则第二预设比特长度的二进制码流的第二位为〇,并且若第二预设比特长度的二进制码流的最后一位为1,则第二预设比特长度的二进制码流的倒数第二位为0〇 [0053] Preferably, a coding unit 304 for the first predetermined bit length Ν a binary bit stream into a spreading Ν second predetermined length of a binary bit stream, wherein the second predetermined binary bit length 1 and the stream comprising 0, and does not include the three consecutive binary 1 bit stream of a second predetermined length, and the first one when the second predetermined length of a binary bit stream is 1, the second a predetermined length of a binary bit stream for the second square, and if a second predetermined length of a binary bit stream to a second end of the reciprocal of a binary stream, the second predetermined bit length as 0〇

[0054] 优选地,SOFA和S0FC均为第一比特位为0,且包含有连续的三个1的比特码流。 [0054] Preferably, and SOFA are S0FC first bit is 0, and comprises three continuous bit stream 1.

[0055] 优选地,输出单元306,用于将Μ个数据帧或Μ个控制帧通过单线输出接口串行输出。 [0055] Preferably, the output unit 306, for Μ Μ data frames or control frames over a single wire output interface serial output.

[0056] 本发明实施例还提供了一种接收装置,如图4所示,该装置包括: [0056] Embodiments of the present invention further provides a receiving apparatus 4, the apparatus comprising:

[0057] 接收单元402,用于通过单线输入接口接收Μ个数据帧或Μ个控制帧,Ν为大于0 的整数,Μ个数据帧或Μ个控制帧的每一个包括至少一个第二预设比特长度的二进制码流, 以及设置在第二预设比特长度的二进制码流的起始位置的数据帧起始标志SOFA或控制帧起始标志S0FC,其中,SOFA对应于数据帧,S0FC对应于控制帧; [0057] The receiving unit 402 for receiving the data frames Μ single-wire interfaces or Μ control input frame, v is an integer greater than 0, each of the data frames Μ or Μ control frame comprises at least a second predetermined binary code stream bit length, and disposed in the starting position of the second predetermined binary code stream bit length of the data frame or control frame start flag SOFA start flag S0FC, wherein, the data frame corresponding to the SOFA, S0FC corresponding control frame;

[0058] 解码单元404,用于将Μ个数据帧或Μ个控制帧按照预设规则解码为N个第一预设比特长度的二进制码流,第二预设比特长度大于第一预设比特长度。 [0058] decoding unit 404, for Μ Μ data frames or control frames in accordance with a preset rule to decode the N first predetermined binary bit length of the code stream, a second predetermined bit length greater than the first predetermined bit length.

[0059] 优选地,解码单元404,用于将Μ个数据帧或Μ个控制帧解码为Ν个第一预设比特长度的二进制码流,其中,第二预设比特长度的二进制码流内包含1和〇,并且第二预设比特长度的二进制码流内不包含连续的三个1,并且若第二预设比特长度的二进制码流的第一位为1,则第二预设比特长度的二进制码流的第二位为0,并且若第二预设比特长度的二进制码流的最后一位为1,则第二预设比特长度的二进制码流的倒数第二位为0。 [0059] Preferably, the decode unit 404, data frames for Μ or Μ Ν control frame decoder is a first predetermined binary bit length of the code stream, wherein the second predetermined bit length of the binary code stream 1 and comprises a square, and does not contain a second predetermined length of a binary bit stream of three consecutive 1, and if a second predetermined length of a binary bit stream 1 is the first bit, the second predetermined bit the length of the binary code stream of a second bit is 0, and if a second predetermined length of a binary bit stream 1 is the last one, the reciprocal second predetermined binary bit stream length of the second bit is 0.

[0060] 本发明实施例还提供了一种信号交互系统,如图5所示,该系统包括: [0060] Embodiments of the invention also provides an interactive system signal, shown in Figure 5, the system comprising:

[0061] 处理器502,用于将待发送的音频数据或用于对音频传输过程进行配置的控制命令划分为Ν个第一预设比特长度的二进制码流,Ν为大于0的整数;将Ν个第一预设比特长度的二进制码流按照预设规则编码为Ν个第二预设比特长度的二进制码流,第二预设比特长度大于第一预设比特长度;在至少一个第二预设比特长度的二进制码流的起始位置设置数据帧起始标志SOFA或控制帧起始标志S0FC,生成Μ个数据帧或Μ个控制帧,其中,SOFA 对应于音频数据,S0FC对应于控制命令;将Μ个数据帧或Μ个控制帧通过单线输出接口传输至音频解码器504 ; [0061] processor 502 for audio data to be transmitted or the control commands for configuring the audio transmission process is divided into a first preset number v binary stream bit length, v is an integer greater than 0; and Ν a first predetermined length of a binary bit stream according to a preset rule encoded as a binary code stream Ν second predetermined bit length, the bit length of a second predetermined length greater than the first predetermined bit; at least a second starting position for the start flag data frame or a control frame start flag SOFA S0FC predetermined bit length of the binary code stream generated Μ Μ data frames or control frames, wherein, SOFA corresponding to the audio data, corresponding to the control S0FC command; the data frames Μ or Μ control frame transmitted through the single-wire output interface 504 to the audio decoder;

[0062] 音频解码器504,用于通过单线输入接口接收Μ个数据帧或Μ个控制帧;将Μ个数据帧或Μ个控制帧按照预设规则解码为Ν个第一预设比特长度的二进制码流。 [0062] The audio decoder 504, an input interface for receiving a single-wire Μ Μ data frames or control frames; the data frames Μ or Μ control frame is decoded in accordance with a preset rule Ν a first predetermined bit length binary code stream.

[0063] 通过本发明,采用将待发送的音频数据或者控制命令按照预设规则进行编码,并在编码后的二进制码流的起始位置设置数据帧起始标志或控制帧起始标志,进而通过单线输出接口进行传输的技术方案。 [0063] By the present invention, using the audio data to be transmitted or the control commands encoded according to a preset rule, in the starting position and the frame start flag binary data stream or the encoded control frame start flag, and then for transmission over a single wire aspect of the output interface. 解决了相关技术中音频数据和控制命令需要通过多根信号线传输的问题,进而达到了电路简化、设备小型化的效果。 Problem in the related art audio data and control commands need to issue a plurality of signal transmission lines, thereby achieving a simplified circuit, miniaturization of equipment effects.

[0064] 本发明提供一种新型的音频信号接口,能够使用单根信号线传输单方向的音频信号,支持多声道传输,位宽和采样率可变,而且可以将配置信息(相当于上述的控制命令) 直接通过该信号线发送,无需单独的配置接口。 [0064] The present invention provides a novel audio signal interface, to use a single signal line for transmitting an audio signal in one direction, multi-channel transmission, the variable bit width and sample rate, but also configuration information (corresponding to the a control command) transmitted via the signal line directly, without a separate configuration interfaces. 该编码方式远比SPDIF简单,接口的逻辑电路和软件开销低,可广泛适用于设备内部的音频互连,替代原有的和PCM和I2S等音频信号线,并取消原有的I2C或SPI等控制信号线,大幅度简化电路。 The encoded SPDIF than simple manner, and interface logic low software overhead, may be widely applied to internal interconnect audio equipment, and replace the original PCM audio signal lines and the like I2S, and cancel the like existing I2C or SPI a control signal line, greatly simplify the circuit. 该接口采用以下的技术手段实现: The interface uses the following technical means:

[0065] 对于控制命令和音频数据,都按预定的格式组成串行的帧,在单根信号线上进行传输。 [0065] For audio data and control command, it is composed of a frame according to a predetermined serial format for transmission over a single signal line.

[0066] 帧与帧之间,通过特定的帧起始标志(SOF,START OF FRAME)进行区分,该S0F是一串二进制码流,仅用于标志一个帧的开始,在帧内部的其他部分不出现。 [0066] between frames, by a particular frame start marker (SOF, START OF FRAME) distinction, which is a string of binary S0F stream, only the flag for starting a frame, other portions of the inter-frame does not appear. S0F可以有多个(例如上述的SOFA和S0FB),用于将帧区分为不同的种类,例如可以将帧区分为音频帧和命令帧(相当于上述的控制帧)两类,分别用于传输音频数据和控制命令。 S0F may have a plurality of (e.g. above and SOFA S0FB), for a frame is divided into different categories, such as a frame can be distinguished command frame and audio frames (corresponding to the control frame) types, respectively, for transmission audio data and control commands.

[0067] 为了传递时钟信息,并避免音频数据和控制命令中出现S0F,需要选择合适的S0F,并且要对音频数据和控制命令在传输前进行编码。 [0067] In order to transmit clock information, and to prevent audio data and control command S0F occurred, to select the proper S0F, and to the audio data and a control command is coded prior to transmission. 一种优选的编码方案是:首先,将音频数据和控制命令,划分为多个4比特长度的二进制组;其次,将此二进制组扩展为5比特, 并且该5比特满足以下的三个条件:A)编码内必须包含1和0, B)不出现连续的3个1,C) 位于首尾的连续1只能有1个;最后,使用包含连续3个1的5比特码流作为SOF。 A preferred coding scheme is: First, the audio data and control commands into a plurality of groups of binary 4 bit length; Secondly, this extended set of binary 5 bits, 5 bits and which satisfies the following three conditions: a) must contain an encoding and 0, B) does not appear in three consecutive 1, C) positioned end to end in a continuous 1 only; Finally, containing 3 consecutive 5-bit code stream as an SOF.

[0068] 编码后的数据,附带在S0F的后面,组成一帧,通过单极性不归零调制或其他基带调制方法,发送到单根信号线上进行传输。 [0068] The coded data, with the back of S0F, a composition, by NRZ modulation or other unipolar baseband modulation method, transmission to a single signal line for transmission.

[0069] 接口信号线路上有默认的帧长、音频通道数和字宽。 [0069] The interface has a default frame length, the number of audio channels to the signal line and the word width. 系统启动后,通信双方以默认的格式通信。 After the system is started, the two sides communicate communication in the default format. 在工作过程中,双方通过协商,可以更改帧长度,音频通道数和字宽。 In the course of their work, the two sides through consultations, you can change the frame size, audio channels and word-wide.

[0070] 基本电路框图如图6所示,整个系统由处理器系统HOST SYSTEM,音频解码器AUDIO CODEC,以及电声器件MIC(Microphone,麦克风)/SPEAKER(微型喇叭)组成。 [0070] The basic circuit diagram shown in Figure 6, the entire system by a processor system HOST SYSTEM, the audio decoder AUDIO CODEC, and electro-acoustic devices MIC (Microphone, microphone) / SPEAKER (micro speaker) composition. 其中主处理器(相当于上述的处理器,以下简称为HOST)和AUDIO CODEC之间使用两根单向的音频信号线连接,其中一根线的传输方向是主处理器到AUDIO CODEC,作为主机对AUDIO CODEC 的控制命令传输通道和音频数据传输通道,另一根线的传输方向是AUDIO CODEC(以下简称为CODEC)到主处理器,用于传输反向的控制命令和MIC/SPEAKER接收到环境声音。 Wherein the host processor (corresponding to the processors, hereinafter referred to as HOST) using two-way audio connection between the signal line and the AUDIO CODEC, wherein the direction of a transmission line to the host processor AUDIO CODEC, as the host aUDIO CODEC control command transmission channel and audio data transmission channel, the transmission line is the direction of the other aUDIO CODEC (hereinafter referred to as CODEC) to the main processor, for transmitting control commands and reverse MIC / SPEAKER receiving environment sound.

[0071] 本实施例中,将数字化的音频信号,每4比特进行一次扩展编码,将其扩展到5比特后进行传输,编码遵循以下的规则: [0071] In this embodiment, the digitized audio signal, once every four bit spreading code, and transmit it to expand, following the encoding rules of 5 bits:

[0072] (1)每个编码内必须包含1和0,以确保携带时钟信息; [0072] (1) must contain each coded 0 and 1, to ensure that carries clock information;

[0073] (2)所有编码内没有三个或更多连续的1 ; [0073] (2) not encoding all three or more consecutive 1;

[0074] (3)首尾连续的1最多只有1个,这样在连续发送多个编码是不会产生三个或更多连续的1 ; [0074] (3) a continuous end to end at most 1, so that a plurality of successive transmission code is not generated three or more consecutive 1;

[0075] 根据这个原则确定的一个典型的编码方案如表1 : [0075] A typical coding scheme determined according to the principle as shown in Table 1:

[0076] 表1 [0076] TABLE 1

Figure CN105681819AD00111

[0079] 根据这样的编码方案,编码后的5比特,无论按任何顺序随意组合,均不会出现连续的3个或更多的1。 [0079] According to such a coding scheme, a 5-bit encoded, regardless of order in any arbitrary combination, will not appear three or more consecutive ones. 根据这个规律,本实施例规定用包含3个连续1的比特流01110 (即十六进制的OEH)、01111 (即十六进制的OFH)和00111 (即十六进制的07H)作为SOF。 According to this rule, provided in this embodiment with the embodiment comprises three consecutive 1 01110 bit streams (i.e., hexadecimal OEH), 01111 (i.e., hexadecimal The OFH) and 00111 (i.e., hexadecimal 07H) as SOF. 这两个比特流均以0起始,并且内部均包含连续的3个1,保证了起始帧的唯一性,方便使用简单的电路对S0F进行检测。 The two bit streams are 0 start, and the interior consists of consecutive 3 1, to ensure the uniqueness of the start frame, to facilitate the use of a simple circuit for detecting S0F.

[0080] 帧分为两种,一种是控制帧,内部包含控制命令,一种是音频帧,内部包含音频数据。 [0080] The frame is divided into two types, one is a control frame, containing the internal control command, one is an audio frame, the audio data contained inside. 本实施例中,规定用0H1作为S0F引导的帧是音频帧,用(FH作为S0F引导的帧是控制帧。对应的,将0H1称为音频帧标志(SOFA),将(FH称为命令帧标志(S0FC)。在本实施例中,默认帧长度是25比特,使用200kbps的物理层通信速率。具体帧格式如表2和表3所示: In this embodiment, as specified with 0H1 S0F guide frame is an audio frame, with (FH S0F guide a frame is a control frame. Corresponding to the audio frame flag called 0H1 (SOFA), the (FH called a command frame the symbol (S0FC) in the present embodiment, the frame length is 25 bits by default, using a physical layer communication rate 200kbps frame format as detailed in table 2 and table 3:

[0081] 表2音频帧格式 [0081] Table 2 audio frame format

[0082] [0082]

Figure CN105681819AD00121

[0083] 表3命令帧格式 [0083] Table 3 Command Frame Format

[0084] [0084]

Figure CN105681819AD00122

[0085] 需要说明的是,帧内的音频码流,是先经过编码扩展后才组帧的,左右声道虽然看上去是10比特,但只携带有8比特的有效信息。 [0085] Incidentally, the audio stream frame, is extended after the first encoded set of frames, although it seems that the left and right channels of 10 bits, but only carries 8 bits of valid information. 命令字也是按照上述方法编码后才发送到信号线上去的,命令字在编码前是16比特,编码后在帧内变为20比特。 Transmitting a command word is coded according to the method described above to the signal line go after the command word is 16 bits before encoding, the encoded frames becomes 20 bits.

[0086] 因为每一帧的固定长度是25比特,根据200kbps的速率,每帧的数据发送占据125us的时间,在无间隔连续发送时,对应的帧频是8kHz。 [0086] For each frame of a fixed length is 25 bits, according to the rate of 200kbps, the transmission data in each frame time occupied 125us, the continuous transmission interval when no corresponding frame rate is 8kHz. 即默认的音频信号,是双声道,8 比特量化,8kHz的采样率。 I.e. default audio signal is two-channel, 8 bit quantization, 8kHz sampling rate.

[0087] 命令帧的有效位宽是16比特,在本实施例中,具体的命令示例如表4,表4中未出现的命令保留不用。 Effective bit width [0087] 16-bit command frame is, in the present embodiment, specific examples of commands in Table 4, Table 4 commands do not appear to retain.

[0088] 表4 [0088] TABLE 4

Figure CN105681819AD00123

Figure CN105681819AD00131

[0091] 本实施例中,发送侧的硬件逻辑框图如图7所示。 [0091] In this embodiment, hardware logic block diagram of the transmitting side shown in Fig. 首先,音频数据和控制命令进入二选一开关,根据需要选中一路。 First, audio data and control commands into the alternative switch, select the required way. 被选中的数据被再被划分为4比特的组(数据分组),随后进入编码器,将每4比特编码扩展为5比特。 The selected data is then divided into groups of 4 bits (data packets), then enters the encoder, each 4-bit code to 5 bit extension.

[0092] 上述5比特宽度的数据再次进入一个二选一开关,此开关可以在上述编码后的5 比特数据和S0FA/S0FC之间,根据需要选择其中一个,并通过时钟单元控制的5bit移位寄存器输出到信号线上。 Data [0092] The 5-bit width of a re-enters the alternative switch, the switch may be between 5 bits and the coded data after S0FA / S0FC, select one according to need, and by the clock unit shift control 5bit register output to the signal line. 当需要传输〇时,输出逻辑低电平,需要传输1时,输出逻辑高电平。 When the square to be transmitted, outputs a logic low level, it needs to be transmitted when an output logic high.

[0093] 本实施例中,接收侧的硬件逻辑框图如图8所示。 [0093] In this embodiment, the hardware logic block diagram of the receiving side as shown in FIG. 时钟单元利用输入信号的高低电平跳变,提取时钟的相位信息。 Clock means using the high and low input signal transition, the clock extract phase information. 接收时钟驱动5bit移位寄存器,产生5比特宽度的二进制数据。 The shift register receives a clock driver 5bit, generating 5-bit binary data width.

[0094] S0F检测单元对5bit移位寄存器的5比特进行连续检测,一旦检测到SOFA或者S0FC,则输出S0F/S0FA/S0FC信号。 [0094] S0F 5bit detection unit 5-bit shift register is continuously detected, or upon detection SOFA S0FC, S0F / S0FA / S0FC signal is output. 在S0F/S0FA/S0FC信号的控制下,解码单元和数据合并单元对5比特宽的数据先进行解码变为4比特,再合并为所需的并行数据。 Under the control of S0F / S0FA / S0FC signal decoding unit and the data combining unit for the first 5-bit wide data decoding becomes 4 bits, and then combined into the desired parallel data.

[0095] SOFA和S0FC信号,还分别控制命令输入寄存器和音频缓冲区,将合并后的数据送出到命令寄存器或音频缓冲区。 [0095] SOFA S0FC signals and further control the audio buffer register and the command input, the data is sent to the command register or merged audio buffer.

[0096] 下面,以一个完整的工作流程为例,对本实施例的工作原理进行更具体地说明。 [0096] Next, a complete workflow to an example, the principle embodiment of the present embodiment will be described more specifically. 这个工作流程如图9所示,主机和CODEC(音频解码器)上电后,以200kbps的默认速率通信。 The work flow shown in FIG. 9, after power (audio decoder) and the CODEC host, the default communication rate 200kbps. 主机首先将通信格式切换为双声道/8kHz/16bit位宽,然后将CODEC的音量设置为最大值, 最后输出一个双声道的4kHz方波信号(交替的0x5050和0Xb050)给CODEC播放。 The host first switching two-channel communication format / 8kHz / 16bit bit width, then the CODEC is set to the maximum volume, the last two channel outputs a 4kHz square wave signal (alternating 0x5050 and 0Xb050) CODEC for playing. 详细步骤如下: Detail steps are as follows:

[0097] 1)系统加电后,默认的速率是200kbps,但双向信号线均空闲,恒定为低电平,双方接收到的是全0信号,双方都检测不到S0F,如表5及表6 : [0097] 1) After the power system, the default rate is 200kbps, but a bidirectional signal lines are idle, a constant is low, both the received signal is all 0, both S0F are not detected, as shown in Table 5 and Table 6:

[0098] 表5输出帧格式 [0098] Table 5 outputs the frame format

[0099] [0099]

Figure CN105681819AD00141

[0100] 表6输入帧格式 [0100] Table 6 input frame format

[0101] [0101]

Figure CN105681819AD00142

[0102] 2)复位后软件开始工作,通过单线接口向音频解码器发送一帧控制命令,查询音频解码器是否支持所需的格式。 [0102] 2) software to work after the reset, the interface transmits a control command over a single wire to the audio decoder, the audio decoder supports query the desired format. 帧的最前面是起始标志(S0FC),在命令标志后面跟随CODEC查询命令0112H,询问CODEC是否能支持双声道/8kHz/16bit的格式。 Head frame is the start mark (S0FC), followed by the command flag followed CODEC query command 0112H, asked whether the format can support dual-channel CODEC / 8kHz / 16bit of. 此时同时,音频输入信号线(从CODEC到HOST方向),仍旧保持IDLE状态,如表7及表8 : At this same time, the audio input signal line (the direction from the CODEC to HOST), still remains in the IDLE state, as shown in Table 7 and Table 8:

[0103] 表7输出帧格式 [0103] Table 7 outputs a frame format

[0104] [0104]

Figure CN105681819AD00143

[0105] 表8输入帧格式 [0105] Table 8 input frame format

[0106] [0106]

Figure CN105681819AD00144

[0107] 3)随后,CODEC发送出应答命令0212H,给主机答复可以支持2声道/8kHz/16bit 的数据格式。 [0107] 3) Then, CODEC send the response command 0212H, the reply to the host channel can support data formats 2 / 8kHz / 16bit of. 此时,HOST输出IDLE状态,如表9及表10 : At this time, the HOST output IDLE state, as shown in Table 9 and Table 10:

[0108] 表9输出帧格式 [0108] TABLE 9 outputs the frame format

[0109] [0109]

Figure CN105681819AD00145

Figure CN105681819AD00151

[0110] 表1〇输入帧格式 [0110] Table 1〇 input frame format

[0111] [0111]

Figure CN105681819AD00152

[0112] 4)主机收到CODEC的应答命令后,知道CODEC支持双声道/8kHz/16bit的格式。 After the [0112] 4) CODEC host receives a response command, know CODEC supports dual-channel format / 8kHz / 16bit of. 于是给音频解码器发送设置命令0312H,设置新的通信模式。 Then sends a setting command to the audio decoder 0312H, set new communication mode.

[0113] 表11输出帧格式 [0113] Table 11 outputs the frame format

[0114] [0114]

Figure CN105681819AD00153

[0115] 表12输入帧格式 [0115] Table 12 input frame format

[0116] [0116]

Figure CN105681819AD00154

[0117] 5),在主机发出上述命令后,立即将输出的帧格式切换为,如表13及表14 : [0117] 5), after the host issuing the above command, the output is immediately switched to the frame format, as shown in Table 13 and Table 14:

[0118] 表13音频帧格式 [0118] Table 13 audio frame format

[0119] [0119]

Figure CN105681819AD00155

[0120] 表14命令帧格式 [0120] Table 14 Command Frame Format

[0121] [0121]

Figure CN105681819AD00156

[0122] 由于新的帧长是45比特,帧速率不变仍旧是8k,物理层的通信速率变更为45*8k =360kbps。 [0122] Since the new frame length is 45 bits, the frame rate remains unchanged 8K, the physical layer of the communication rate is changed to 45 * 8k = 360kbps.

[0123] CODEC在接收到通信格式更新命令后,也立即将接收电路配置到上述的帧格式和通信速率上。 [0123] CODEC communications format after receiving the update command, but also the receiving circuit disposed immediately above the frame format and the communication rate.

[0124] 6)主机用新的帧格式向音频解码器发配置命令,将音量设置到最大,对应的设置命令是047HL因为新的帧长已经变长,命令没有占用的长度,输出IDLE。 [0124] 6) a host with a new frame format sent to the audio decoder configuration command to set the volume to the maximum, the corresponding command is set as the new frame length has 047HL becomes long, the length of the unoccupied command output IDLE. 此时,音频输入信号线,仍旧保持IDLE状态,如表15及表16 : At this time, the audio input signal line, still remains in the IDLE state, as shown in Table 15 and Table 16:

[0125] 表15输出帧格式 [0125] Table 15 outputs a frame format

[0126] [0126]

Figure CN105681819AD00161

[0127] 表16输入帧格式 [0127] Table 16 input frame format

[0128] [0128]

Figure CN105681819AD00162

[0129] 7)在CODEC接收到并正确解码音量设置命令后,将自身的音量输出设置为最大, 并且向HOST发出应答信息04FFH,此时HOST处于等待状态,输出信号保持空闲状态,如表17及表18 : [0129] 7) received in the CODEC and the decoded correctly after a volume setting command, itself set to the maximum output volume, and sends a response message to the HOST 04FFH, HOST in a wait state at this time, the output signal remains in an idle state, as shown in Table 17 and table 18:

[0130] 表17输出帧格式 [0130] Table 17 outputs a frame format

[0131] [0131]

Figure CN105681819AD00163

[0132] 表18输入帧格式 [0132] Table 18 input frame format

[0133] [0133]

Figure CN105681819AD00171

[0134] 8)在HOST接收到来自于CODEC的应答信息后,开始向音频解码器发送音频数据, 此时音频输入信号线处于空闲状态。 [0134] 8) After the HOST receives the response information from the CODEC to begin transmitting the audio data to the audio decoder, the audio input signal line at this time is in the idle state. HOST输出的音频数据是循环的5050H和A050H,每个数据发送两次,分别表不左声道和右声道,如表19及表20 : HOST output audio data is cyclic 5050H and A050H, each data transmitted twice, each table is not the left and right channels, as shown in Table 19 and Table 20:

[0135] 表19输出帧格式 [0135] Table 19 outputs a frame format

[0136] [0136]

Figure CN105681819AD00172

[0137] 表20输入帧格式 [0137] Table 20 inputs a frame format

[0138] [0138]

[0139] [0139]

Figure CN105681819AD00173

Figure CN105681819AD00181

[0140] 9)C0DEC 收到上述循环的5050H 和A050H 后,经过ADC(Analog-to_Digital Converter,模/数转换器)和功放,将此方波输出给SPEAKER,发出告警声。 After [0140] 9) C0DEC received A050H 5050H and the circulation, through the ADC (Analog-to_Digital Converter, A / D converter) and a power amplifier, this square wave output to the SPEAKER, an alarm sound.

[0141] 在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。 [0141] In a further embodiment, there is also provided a software, the technical solution for performing the above-described embodiments and preferred embodiments described herein.

[0142] 在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。 [0142] In a further embodiment, there is also provided a storage medium, the storage medium stores the above-described software, the storage media include, but are not limited to: an optical disc, a flexible disk, hard disk, a flash memory or the like.

[0143] 显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。 [0143] Obviously, those skilled in the art should understand that the modules or steps of the present invention described above can be used general-purpose computing device, they can be integrated in a single computing device or distributed across multiple computing devices available on the Internet, optionally, they can be implemented with program codes executable by a computing device, so that, to be performed by a computing device stored in a storage means, and in some cases, may be different from this at step sequence shown or described, or they are made into integrated circuit modules, or by making them of a plurality of modules or steps in a single integrated circuit module. 这样,本发明不限制于任何特定的硬件和软件结合。 Thus, the present invention is not limited to any particular hardware and software combination.

[0144] 以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。 [0144] The foregoing is only preferred embodiments of the present invention, it is not intended to limit the invention to those skilled in the art, the present invention may have various changes and variations. 凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 Any modification within the spirit and principle of the present invention, made, equivalent substitutions, improvements, etc., should be included within the scope of the present invention.

Claims (11)

1. 一种信号的发送方法,其特征在于,包括: 将待发送的音频数据或用于对音频传输过程进行配置的控制命令划分为N个第一预设比特长度的二进制码流,N为大于0的整数; 将所述N个第一预设比特长度的二进制码流按照预设规则编码为N个第二预设比特长度的二进制码流,所述第二预设比特长度大于所述第一预设比特长度; 在至少一个所述第二预设比特长度的二进制码流的起始位置设置数据帧起始标志SOFA或控制帧起始标志SOFC,生成Μ个数据帧或Μ个控制帧,其中,所述SOFA对应于所述音频数据,所述S0FC对应于所述控制命令,Μ不大于N ; 将所述Μ个数据帧或Μ个控制帧通过单线输出接口输出。 CLAIMS 1. A method of transmitting a signal, characterized by comprising: the audio data to be transmitted for audio transmission or a control command arranged into N first predetermined binary bit stream length, N is the integer greater than 0; said N first predetermined bit length of binary coded bit stream according to a preset rule to the N second predetermined binary code stream bit length, said second length greater than said predetermined bit the first predetermined bit length; at the start of the binary code stream least one said second predetermined bit length setting data frame or a control frame start flag SOFA start flag SOFC, Μ generates data frames or control Μ frame, wherein, the audio data corresponding to the SOFA, the S0FC corresponding to the control command, [mu] is not greater than N; the [mu] [mu] data frames or control frames over a single wire output interface.
2. 根据权利要求1所述的信号的发送方法,其特征在于,所述第一预设比特长度为4比特,所述第二预设比特长度为5比特;所述将所述Ν个第一预设比特长度的二进制码流按照预设规则编码为Ν个第二预设比特长度的二进制码流,包括: 将所述Ν个第一预设比特长度的二进制码流扩展成所述Ν个第二预设比特长度的二进制码流,其中,所述第二预设比特长度的二进制码流内包含1和〇,所述第二预设比特长度的二进制码流内不包含连续的三个1,并且,若所述第二预设比特长度的二进制码流的第一位为1,则所述第二预设比特长度的二进制码流的第二位为0 ;若所述第二预设比特长度的二进制码流的最后一位为1,则所述第二预设比特长度的二进制码流的倒数第二位为0。 2. A signal transmission method according to claim 1, wherein the first predetermined bit length is 4 bits, the second predetermined bit length is 5 bits; the number of the Ν a predetermined length of a binary bit stream according to a preset rule encoded as a binary code stream Ν second predetermined bit length, comprising: a first Ν the predetermined bit length of the binary code stream expanded into Ν a second predetermined length of a binary bit stream, wherein said second predetermined binary code stream comprising 1 bit length and square, do not contain three consecutive binary code stream within the second predetermined bit length a 1, and, if the second predetermined bit length of the binary code stream of the first bit is 1, the second predetermined bit length of the binary code stream of the second bit is 0; if the second a predetermined length of a binary bit stream 1 is the last one, is the inverse of binary bit stream of a second predetermined length of the second bit is 0.
3. 根据权利要求2所述的信号的发送方法,其特征在于,所述SOFA和所述S0FC均为第一比特位为0,且包含有连续的三个1的比特码流。 3. The signal transmission method according to claim 2, wherein both said first S0FC SOFA and the bit is 0, and comprises three continuous bit stream 1.
4. 一种信号的接收方法,其特征在于,包括: 通过单线输入接口接收Μ个数据帧或Μ个控制帧,所述Μ个数据帧或所述Μ个控制帧的每一个包括至少一个第二预设比特长度的二进制码流,以及设置在所述第二预设比特长度的二进制码流的起始位置的数据帧起始标志SOFA或控制帧起始标志S0FC,其中,所述SOFA 对应于所述数据帧,所述S0FC对应于所述控制帧; 将所述Μ个数据帧或所述Μ个控制帧按照预设规则解码为N个第一预设比特长度的二进制码流,所述第二预设比特长度大于所述第一预设比特长度,Ν为大于0的整数,Μ不大于Ν〇 4. A method of receiving a signal, characterized by comprising: an input interface receiving a single-wire or Μ Μ data frames control frames or the data frames Μ Μ said control frames each comprise at least one of two preset length of a binary bit stream, and setting the data frame or control frame start flag SOFA S0FC start flag at the start of the second binary code stream of a predetermined bit length, wherein, corresponding to the SOFA in the data frame, the control frame corresponding to the S0FC; Μ the data frame or the control frame Μ decoded in accordance with a preset rule N first predetermined binary bit length of the code stream, the said second predetermined bit length greater than the first predetermined bit length, Ν is an integer greater than 0, no greater than [mu] Ν〇
5. 根据权利要求4所述的信号的接收方法,其特征在于,所述SOFA和S0FC均为第一比特位为0,且包含有连续的三个1的比特码流。 The signal receiving method according to claim, wherein both said first SOFA and S0FC bit is 0, and comprises three continuous bit stream 1.
6. 根据权利要求5所述的信号的接收方法,其特征在于,所述第一预设比特长度为4比特,所述第二预设比特长度为5比特;所述将所述Μ个数据帧或所述Μ个控制帧按照预设规则解码为Ν个第一预设比特长度的二进制码流,包括: 将所述Μ个数据帧或所述Μ个控制帧解码为所述Ν个第一预设比特长度的二进制码流,其中,所述第二预设比特长度的二进制码流内包含1和0,并且所述第二预设比特长度的二进制码流内不包含连续的三个1,并且若所述第二预设比特长度的二进制码流的第一位为1,则所述第二预设比特长度的二进制码流的第二位为0,并且若所述第二预设比特长度的二进制码流的最后一位为1,则所述第二预设比特长度的二进制码流的倒数第二位为0〇 Μ the said data; 6. The method of claim 5, wherein the received signal, characterized in that said first predetermined bit length is 4 bits, the second predetermined bit length is 5 bits the frame or frames according to a preset control Μ rule Ν decoding binary code stream of first predetermined bit length, comprising: Μ the data frame or the control frame decoder Μ Ν is the number of binary code stream a predetermined bit length, wherein said second predetermined binary code stream comprising 1 bit length and 0, and the second predetermined length of a binary bit stream does not contain three consecutive 1, and if the second predetermined bit length of the binary code stream of the first bit is 1, the second predetermined bit length of the binary code stream of the second bit is 0, and if the second pre- binary code stream provided a last bit length is 1, the inverse of the second bit stream a second predetermined binary code bit length is 0〇
7. -种发送装置,其特征在于,包括: 数据分组单元,用于将待发送的音频数据或用于对音频传输过程进行配置的控制命令划分为N个第一预设比特长度的二进制码流,N为大于0的整数; 编码单元,用于将所述N个第一预设比特长度的二进制码流按照预设规则编码为N个第二预设比特长度的二进制码流,所述第二预设比特长度大于所述第一预设比特长度;在至少一个所述第二预设比特长度的二进制码流的起始位置设置数据帧起始标志SOFA或控制帧起始标志S0FC,生成Μ个数据帧或Μ个控制帧,其中,所述SOFA对应于所述音频数据, 所述S0FC对应于所述控制命令,Μ不大于N ; 输出单元,用于将所述Μ个数据帧或Μ个控制帧通过单线输出接口输出。 7. - kind of transmission apparatus, characterized by comprising: a data grouping unit, for audio data to be transmitted or the control commands for configuring the audio transmission process is divided into a first predetermined bit length of N binary code stream, N being an integer greater than 0; encoding unit for the N bits of the first predetermined length of a binary bit stream according to a preset rule encoded as a binary bit stream N second predetermined bit length, the second predetermined bit length greater than the first predetermined bit length; starting position for the start flag SOFA data frame or a control frame start flag S0FC binary code stream in at least one of said second predetermined bit length, generating [mu] [mu] data frames or control frames, wherein the audio data corresponding to the SOFA, the S0FC corresponding to the control command, [mu] is not greater than N; output means for converting the data frames [mu] or a single-wire output interface Μ control frame via.
8. 根据权利要求7所述的发送装置,其特征在于, 所述编码单元,用于将所述Ν个第一预设比特长度的二进制码流扩展成所述Ν个第二预设比特长度的二进制码流,其中,所述第二预设比特长度的二进制码流内包含1和0,并且所述第二预设比特长度的二进制码流内不包含连续的三个1,并且若所述第二预设比特长度的二进制码流的第一位为1,则所述第二预设比特长度的二进制码流的第二位为〇,并且若所述第二预设比特长度的二进制码流的最后一位为1,则所述第二预设比特长度的二进制码流的倒数第二位为〇;所述SOFA和所述S0FC均为第一比特位为0,且包含有连续的三个1的比特码流。 The transmitting apparatus according to claim 7, wherein said coding means for a first predetermined Ν the bit length of the binary code stream extended to a second predetermined bit length Ν binary code stream, wherein said second predetermined binary code stream comprising 1 bit length and 0, and the second predetermined bit length binary code stream does not contain three consecutive 1, and if the said second predetermined binary code bit length of the first stream is 1, the second predetermined length of a binary bit stream for the second square, and if said second predetermined binary bit length the last bit stream is 1, the inverse of the second predetermined length of a binary bit stream to a second square; S0FC both said first and said SOFA bit is 0, and comprises a continuous the bit stream 1 is three.
9. 一种接收装置,其特征在于,包括: 接收单元,用于通过单线输入接口接收Μ个数据帧或Μ个控制帧,所述Μ个数据帧或所述Μ个控制帧的每一个包括至少一个第二预设比特长度的二进制码流,以及设置在所述第二预设比特长度的二进制码流的起始位置的数据帧起始标志SOFA或控制帧起始标志S0FC,其中,所述SOFA对应于所述数据帧,所述S0FC对应于所述控制帧,N为大于0的整数, Μ不大于N ; 解码单元,用于将所述Μ个数据帧或所述Μ个控制帧按照预设规则解码为Ν个第一预设比特长度的二进制码流,所述第二预设比特长度大于所述第一预设比特长度。 A receiving apparatus comprising: receiving means for receiving a single-wire input interface Μ Μ data frames or control frames, said data frames or Μ Μ control frames each comprise binary bit stream at least one second predetermined length, and setting the data frame or control frame start flag SOFA S0FC start flag at the start of the second binary code stream of the predetermined bit length, wherein the SOFA said data corresponding to said frame, said control frame corresponding to the S0FC, N being an integer greater than 0, [mu] is not greater than N; a decoding unit for the [mu] [mu] data frames control frames or the Ν according to a preset rule decoding a first predetermined binary bit length of the code stream, the second predetermined bit length greater than the first predetermined bit length.
10. 根据权利要求9所述的接收装置,其特征在于, 所述解码单元,用于将所述Μ个数据帧或所述Μ个控制帧解码为所述Ν个第一预设比特长度的二进制码流,其中,所述第二预设比特长度的二进制码流内包含1和〇,并且所述第二预设比特长度的二进制码流内不包含连续的三个1,并且若所述第二预设比特长度的二进制码流的第一位为1,则所述第二预设比特长度的二进制码流的第二位为〇,并且若所述第二预设比特长度的二进制码流的最后一位为1,则所述第二预设比特长度的二进制码流的倒数第二位为0。 The receiving apparatus according to claim 9, wherein said decoding means for converting the data frames Μ Μ control frame or the decoded bits Ν a first predetermined length binary code stream, wherein said second predetermined binary code stream comprising 1 bit length and square, and does not contain three consecutive binary 1 in the second predetermined bit length of the code stream, and if the the second predetermined length of a binary bit stream 1 is the first one, then the second predetermined length of a binary bit stream for the second square, and if the second predetermined bit length binary code the last bit stream is 1, the inverse of the second predetermined binary bit stream length of the second bit is 0.
11. 一种信号交互系统,其特征在于,包括: 处理器,用于将待发送的音频数据或用于对音频传输过程进行配置的控制命令划分为Ν个第一预设比特长度的二进制码流,Ν为大于0的整数;将所述Ν个第一预设比特长度的二进制码流按照预设规则编码为Ν个第二预设比特长度的二进制码流,所述第二预设比特长度大于所述第一预设比特长度;在至少一个所述第二预设比特长度的二进制码流的起始位置设置数据帧起始标志SOFA或控制帧起始标志S0FC,生成Μ个数据帧或Μ个控制帧,其中,所述SOFA对应于所述音频数据,所述S0FC对应于所述控制命令,Μ不大于Ν ;将所述Μ 个数据帧或Μ个控制帧通过单线输出接口传输至音频解码器; 所述音频解码器,用于通过单线输入接口接收所述Μ个数据帧或所述Μ个控制帧;将所述Μ个数据帧或所述Μ个控制帧按照预设规则解码 11. An interactive system signals, characterized by comprising: a processor for audio data to be transmitted or the control commands for configuring the audio transmission process is divided into a first predetermined bit length Ν binary code flow, v is an integer greater than 0; v the length of first predetermined binary bit stream is encoded according to a preset rule v second predetermined binary bit length of the code stream, the second predetermined bit a length greater than the first predetermined bit length; starting position for the frame start flag binary data stream in at least one of said second predetermined bit length or a control frame start flag SOFA S0FC, generates data frames Μ [mu], or control frames, wherein the audio data corresponding to the SOFA, the S0FC corresponding to the control command, not more than [mu] v; the [mu] [mu] data frames or control frame transmission over a single wire output interface to the audio decoder; the audio decoder for Μ control frame via the single-wire interface to receive input data frames or the Μ; Μ the data frame or the control frame according to a preset Μ rules decoding 所述Ν个第一预设比特长度的二进制码流。 The Ν binary stream of first predetermined bit length.
CN201410660404.3A 2014-11-18 2014-11-18 Method, device and system for sending and receiving signal CN105681819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410660404.3A CN105681819A (en) 2014-11-18 2014-11-18 Method, device and system for sending and receiving signal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410660404.3A CN105681819A (en) 2014-11-18 2014-11-18 Method, device and system for sending and receiving signal
PCT/CN2015/074793 WO2016078271A1 (en) 2014-11-18 2015-03-20 Signal sending and receiving method, device and system

Publications (1)

Publication Number Publication Date
CN105681819A true CN105681819A (en) 2016-06-15

Family

ID=56013168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410660404.3A CN105681819A (en) 2014-11-18 2014-11-18 Method, device and system for sending and receiving signal

Country Status (2)

Country Link
CN (1) CN105681819A (en)
WO (1) WO2016078271A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0815664A4 (en) * 1995-03-15 1999-11-24 Motorola Inc Method and apparatus for organizing and recovering information communicated in a radio communication system
CN101485212A (en) * 2006-05-02 2009-07-15 高级网络技术有限公司 Method and system for wireless real-time transmission of multichannel audio or video data
CN101557509A (en) * 2008-04-07 2009-10-14 清华大学 Method for transmitting mobile multimedia compatible with terrestrial digital terrestrial television transmission standard
CN101594328A (en) * 2008-05-30 2009-12-02 佳能株式会社 Communication system and control method thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9903900D0 (en) * 1999-02-19 1999-04-14 Digital Gramaphone And Wireles Data encoding/decoding device and apparatus using the same
JP2003152898A (en) * 2001-11-12 2003-05-23 Nec Eng Ltd Phone terminal equipment
CN101272500B (en) * 2008-05-14 2010-12-01 中兴通讯股份有限公司 Transmission method and system for video/audio data flow
CN101764672B (en) * 2009-07-24 2013-10-09 美的集团股份有限公司 Checking system for data communication of electromagnetic oven and application method thereof
CN103379397B (en) * 2012-04-26 2017-06-13 国民技术股份有限公司 Data transmission, processing, signal processing method and audio interface module based
CN103402007A (en) * 2013-07-26 2013-11-20 广州史达泊雷网络科技有限公司 Audio interface-based data transmission method between intelligent terminal and operating handle

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0815664A4 (en) * 1995-03-15 1999-11-24 Motorola Inc Method and apparatus for organizing and recovering information communicated in a radio communication system
CN101485212A (en) * 2006-05-02 2009-07-15 高级网络技术有限公司 Method and system for wireless real-time transmission of multichannel audio or video data
CN101557509A (en) * 2008-04-07 2009-10-14 清华大学 Method for transmitting mobile multimedia compatible with terrestrial digital terrestrial television transmission standard
CN101594328A (en) * 2008-05-30 2009-12-02 佳能株式会社 Communication system and control method thereof

Also Published As

Publication number Publication date
WO2016078271A1 (en) 2016-05-26

Similar Documents

Publication Publication Date Title
KR100402190B1 (en) Way data communication
CN101103532B (en) Double data rate serial encoder and system
JP2562791B2 (en) Priority data transfer method and apparatus for wireless telephone peripherals
CN1552028B (en) A method and a system on chip which distributed direct memory access and control system
JP2655364B2 (en) Data transfer method and apparatus for communication between the peripheral and the master
US7802049B2 (en) Links having flexible lane allocation
US7929518B2 (en) Method and system for a gigabit Ethernet IP telephone chip with integrated DDR interface
US9167349B2 (en) Method and apparatus for reproducing multi-channel sound using cable/wireless device
KR20060003874A (en) Carrier management for a network
RU2008127062A (en) Decoding of binaural audio signals
CN1871635A (en) Method and device for transmitting data over a plurality of transmission lines
RU2011108927A (en) Channel coding based on an integrated-conversion frequency signal with extended bandwidth
CN102301730B (en) Method, device and system for transmitting and processing multichannel AV
JPH10117184A (en) Infrared ray audio link in mobile telephone
US20030225951A1 (en) Communication system and methodology for sending a designator for at least one of a set of time-division multiplexed channels forwarded across a locally synchronized bus
CN105009535B (en) A transcoding method for embedding information in a clock signal state transition signaling multi-conductor
JP2007529146A (en) Involving conversion between qB / rB and xB / yB encoded bit stream, multiplexing the primary bitstream of the additional bit stream
JP2001022390A (en) Codec device for computer
EP1606912B1 (en) Preempting low-priority traffic with high-priority traffic
WO2001008366A1 (en) Apparatus and method for media access control
KR100664634B1 (en) Transmitting apparatus and processing method in a transmitting apparatus
WO2010016894A1 (en) Multi-stream digital display interface
KR100795441B1 (en) Communications bus having low latency interrupts and control signals, hotpluggability error detection and recovery and bandwidth allocation
JPH11308175A (en) Transmission device/method, reception device/method, supply medium and transmission system
CN1174617C (en) Image processing device

Legal Events

Date Code Title Description
C06 Publication
SE01