CN109785849B - Method for inserting unidirectional control information into pcm audio stream based on iis transmission - Google Patents
Method for inserting unidirectional control information into pcm audio stream based on iis transmission Download PDFInfo
- Publication number
- CN109785849B CN109785849B CN201910043795.7A CN201910043795A CN109785849B CN 109785849 B CN109785849 B CN 109785849B CN 201910043795 A CN201910043795 A CN 201910043795A CN 109785849 B CN109785849 B CN 109785849B
- Authority
- CN
- China
- Prior art keywords
- data
- audio
- interpolation
- command
- transmission
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The invention relates to a method for inserting unidirectional control information into a pcm audio stream based on iis transmission. And according to the characteristic that at least one intermediate point introduced by linear interpolation exists between inflection points of the audio pcm data subjected to linear interpolation, converting the next bit of data of the interpolation data subjected to the inflection points, so that the interpolation data is changed into a new inflection point serving as an identification point of a separation control command, and further realizing mixed transmission of the audio and the data. The method realizes the mixed transmission of small data and audio by only using the iis physical channel without influencing the tone quality obviously.
Description
Technical Field
The invention relates to a method for inserting unidirectional control information into a pcm audio stream based on iis transmission.
Background
In the conventional digital audio playing process, pcm data stream is transmitted to the DAC chip through iis for audio playing, and control information is separately transmitted through iic or spi. The invention provides a method for completing mixed transmission of small data and audio by only using an iis physical channel on the premise of not influencing the sound quality significantly.
Disclosure of Invention
The invention aims to provide a method for inserting unidirectional control information into a pcm audio stream based on the iis transmission, which realizes the mixed transmission of small data and audio by only using the iis physical path without influencing the sound quality significantly.
In order to achieve the purpose, the technical scheme of the invention is as follows: according to the characteristic that at least one intermediate point for linear interpolation introduction exists between inflection points of audio pcm data after linear interpolation, the next bit data of the interpolation data after the inflection points are transformed, so that the interpolation data become a new inflection point serving as an identification point of a separation control command, and the mixed sending of audio and data is realized by taking the abnormality of two adjacent inflection points as an identification of insertion control information.
In an embodiment of the present invention, the method specifically includes the following steps:
step S1, firstly, carrying out interpolation frequency raising on the transmitted audio data to ensure that the interpolated data does not have two adjacent inflection points, when the transmitting end needs to transmit a command, finding the nearest inflection point, and transforming the next bit data of the interpolated data after the inflection point to change the interpolated data into a new inflection point, so that the two adjacent inflection points appear in the data, and simultaneously replacing the corresponding audio data of the right channel with the command needing to be transmitted;
step S2, after the receiving end receives the data, judging that two adjacent inflection points are found, knowing that the sending end has a command to send, receiving the command according to an agreed format, and calculating the original audio data through a linear interpolation algorithm; and mixed transmission of audio and data is realized.
Compared with the prior art, the invention has the following beneficial effects: the method realizes the mixed transmission of small data and audio by only using the iis physical channel without influencing the tone quality obviously.
Drawings
FIG. 1 shows 5 trends in audio pcm data variation; where circles represent raw data and asterisks represent interpolated data.
FIG. 2 is a schematic diagram illustrating a method for inserting unidirectional control information into a pcm audio stream based on the iis transmission according to the present invention.
FIG. 3 is a schematic diagram of an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is specifically explained below with reference to the accompanying drawings.
The invention provides a method for inserting unidirectional control information into pcm audio stream based on iis transmission, which comprises the steps of converting the next bit of data of interpolation data after an inflection point according to the characteristic that at least one intermediate point of linear interpolation introduced between the inflection points exists in the audio pcm data after linear interpolation, changing the interpolation data into a new inflection point as an identification point of a separation control command, and using the abnormality of two adjacent inflection points as identification of insertion control information to further realize mixed transmission of audio and data. The method comprises the following concrete implementation steps:
step S1, firstly, interpolation frequency boosting is carried out on original data, so that two adjacent inflection points do not appear on the interpolated data, when a sending end needs to send a command, the sending end finds the nearest inflection point, the next bit data of the interpolated data after the inflection point is transformed, so that the interpolated data is changed into a new inflection point, the two adjacent inflection points appear in the data, and meanwhile, the corresponding audio data of the right channel is replaced by the command needing to be sent;
step S2, after the receiving end receives the data, judging that two adjacent inflection points are found, knowing that the sending end has a command to send, receiving the command according to an agreed format, and calculating the original audio data through a linear interpolation algorithm; and mixed transmission of audio and data is realized.
The following is a specific implementation of the present invention.
The technical principle of the method for inserting the unidirectional control information into the pcm audio stream based on the iis transmission is as follows:
as shown in fig. 1, the following 5 variations of standard audio data are possible: the star is a point inserted by a linear interpolation method for frequency multiplication upsampling, and as can be seen from the figure, the linear interpolation point does not change the variation trend of the original audio data, except for straight data, inflection points exist in 'peak' and 'valley', and the inflection points are inevitably generated under the maximum and minimum influences of the ascending and descending. The ordinary quantized audio pcm data has inflection points (highest point and lowest point in a local range) necessarily, and a large number of such inflection points exist in the actually quantized audio pcm data, the inflection points of the original audio pcm data can be adjacent to or spaced by a few slowly-varying data points, but the interpolated data has no two immediately-connected inflection points necessarily, namely, at least one intermediate point introduced by linear interpolation exists between the inflection points, and the characteristic is a key characteristic for realizing the insertion of the control command.
As shown in FIG. 2, the method of the present invention is implemented as follows: when a sending end needs to transmit a word command, a subsequent datum of the interpolation datum can be modified, a new inflection point is artificially formed, meanwhile, an original datum after the interpolation datum on a subsequent other pcm data channel is changed into a command word, when a receiving end finds two adjacent inflection points, the original datum can be restored according to a linear interpolation method, meanwhile, a datum after the inflection point of another sound channel is read as the command word, and meanwhile, the normal audio datum is restored according to the linear interpolation method.
As shown in fig. 3, taking stereo transmission as an example: the original left and right channel data are interpolated, the interpolated data are adjusted to form two adjacent inflection points, and the data corresponding to the other channel are modified into a command. And the receiving end judges that the two adjacent inflection points can analyze the corresponding channel data as command data.
The above are preferred embodiments of the present invention, and all changes made according to the technical scheme of the present invention that produce functional effects do not exceed the scope of the technical scheme of the present invention belong to the protection scope of the present invention.
Claims (1)
1. A method for inserting unidirectional control information into pcm audio stream based on iis transmission is characterized in that according to the characteristic that at least one intermediate point of linear interpolation import exists between inflection points of audio pcm data after linear interpolation, the next bit of data of the interpolation data after the inflection points is transformed, so that the interpolation data becomes a new inflection point serving as an identification point of a separation control command, and further mixed transmission of audio and data is realized, and the next bit of data of the interpolation data is the value of the next voice sampling point; the method comprises the following concrete implementation steps:
step S1, firstly, interpolation frequency raising is carried out on original data, when a sending end needs to send a command, the sending end finds a nearest inflection point, and the next bit data of the interpolation data after the inflection point is transformed, so that the interpolation data is changed into a new inflection point, and meanwhile, the corresponding audio data of the right channel is replaced by the command needing to be sent;
step S2, after the receiving end receives the data, judging that two adjacent inflection points are found, knowing that the sending end has a command to send, receiving the command according to an agreed format, and calculating the original audio data through a linear interpolation algorithm; and mixed transmission of audio and data is realized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910043795.7A CN109785849B (en) | 2019-01-17 | 2019-01-17 | Method for inserting unidirectional control information into pcm audio stream based on iis transmission |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910043795.7A CN109785849B (en) | 2019-01-17 | 2019-01-17 | Method for inserting unidirectional control information into pcm audio stream based on iis transmission |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109785849A CN109785849A (en) | 2019-05-21 |
CN109785849B true CN109785849B (en) | 2020-11-27 |
Family
ID=66500985
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910043795.7A Active CN109785849B (en) | 2019-01-17 | 2019-01-17 | Method for inserting unidirectional control information into pcm audio stream based on iis transmission |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109785849B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111724824B (en) * | 2020-06-11 | 2021-12-03 | 北京凯视达信息技术有限公司 | Audio storage and retrieval method |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101180674A (en) * | 2005-05-26 | 2008-05-14 | Lg电子株式会社 | Method of encoding and decoding an audio signal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9479289B2 (en) * | 2014-08-14 | 2016-10-25 | Electronics And Telecommunications Research Institute | Low density parity check encoder having length of 16200 and code rate of 5/15, and low density parity check encoding method using the same |
-
2019
- 2019-01-17 CN CN201910043795.7A patent/CN109785849B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101180674A (en) * | 2005-05-26 | 2008-05-14 | Lg电子株式会社 | Method of encoding and decoding an audio signal |
Also Published As
Publication number | Publication date |
---|---|
CN109785849A (en) | 2019-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106911987B (en) | Main control end, equipment end, the method and system for transmitting multichannel audb data | |
US7742542B2 (en) | Phase correlated quadrature amplitude modulation | |
AU2009267477B2 (en) | Method for encoding a symbol, method for decoding a symbol, method for transmitting a symbol from a transmitter to a receiver, encoder, decoder and system for transmitting a symbol from a transmitter to a receiver | |
JP3764230B2 (en) | Reformatting variable rate data for fixed rate communication | |
WO2004053810A3 (en) | Technique for improving the quality of digital signals in a multi-level signaling system | |
CN103795364A (en) | Method and device for decoding encoded input signal | |
US11038525B2 (en) | Methods of converting or reconverting a data signal and method and system for data transmission and/or data reception | |
CN101180674A (en) | Method of encoding and decoding an audio signal | |
CN101542596A (en) | Methods and apparatuses for encoding and decoding object-based audio signals | |
CN109785849B (en) | Method for inserting unidirectional control information into pcm audio stream based on iis transmission | |
CN103077723A (en) | Audio transmission system | |
CN101292428A (en) | Method and apparatus for encoding/decoding | |
CN1193347C (en) | Sinusoidal coding | |
CN1149568C (en) | Signal-processing method and device for block-coded audio signals of audio communication system | |
WO2016078271A1 (en) | Signal sending and receiving method, device and system | |
JP2001506448A (en) | Multi-level coding | |
EP1278318A2 (en) | Wireless audio transmission system | |
ATE242909T1 (en) | METHOD FOR REDUCING THE PROCESSING CAPACITY AND NETWORK ELEMENT REQUIRED FOR VOICE CODING | |
CN106357623A (en) | Audio transmission system | |
US20040064324A1 (en) | Bandwidth expansion using alias modulation | |
CN1071769A (en) | The method that a kind of voice signal to the people is encoded and deciphered | |
CN103533510A (en) | Single-channel multi-channel audio output wireless conference system | |
JPS63110830A (en) | Frequency band dividing and encoding system | |
CN1330505A (en) | Fully digitalized sound system | |
US6185539B1 (en) | Process of low sampling rate digital encoding of audio signals |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |