CN111192596A - Transmission system using audio as digital signal coding and decoding and transmission method thereof - Google Patents

Transmission system using audio as digital signal coding and decoding and transmission method thereof Download PDF

Info

Publication number
CN111192596A
CN111192596A CN202010161907.1A CN202010161907A CN111192596A CN 111192596 A CN111192596 A CN 111192596A CN 202010161907 A CN202010161907 A CN 202010161907A CN 111192596 A CN111192596 A CN 111192596A
Authority
CN
China
Prior art keywords
audio
frame
data
frequency
signal
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.)
Pending
Application number
CN202010161907.1A
Other languages
Chinese (zh)
Inventor
黄君燚
苏孝宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Research Institute HKUST
Original Assignee
Shenzhen Research Institute HKUST
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 Shenzhen Research Institute HKUST filed Critical Shenzhen Research Institute HKUST
Priority to CN202010161907.1A priority Critical patent/CN111192596A/en
Publication of CN111192596A publication Critical patent/CN111192596A/en
Pending legal-status Critical Current

Links

Images

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
    • G10L19/04Speech 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 using predictive techniques
    • G10L19/16Vocoder architecture
    • G10L19/18Vocoders using multiple modes
    • G10L19/24Variable rate codecs, e.g. for generating different qualities using a scalable representation such as hierarchical encoding or layered encoding

Abstract

The invention relates to a transmission system and a transmission method thereof using audio as digital signal coding and decoding, wherein the transmission system comprises a first audio processing device, a second audio processing device and an analog audio signal connecting device, and the first audio processing device and the second audio processing device transmit audio signals through the analog audio signal connecting device; the first audio processing device converts the digital signal into an analog audio signal and outputs the analog audio signal to the analog audio signal connecting device; the second audio processing device receives the analog audio signal from the analog audio signal connector and converts the analog signal into a digital signal supporting fast Fourier transform operation; the analog audio signal connection device is a standard 3.5mm connector, or other form of analog interface.

Description

Transmission system using audio as digital signal coding and decoding and transmission method thereof
Technical Field
The invention belongs to the field of transmission of multiplexing of analog and digital communication interfaces between different audio devices, and particularly relates to a transmission system and a transmission method thereof using audio as digital signals for coding and decoding.
Background
The current technical scheme can only transmit audio analog data and cannot simultaneously transmit customized digital signals in the analog data transmission among different audio processing devices.
According to the current technical scheme, audio segments with different frequencies are generated by a sending end and spliced into an audio data stream, a receiving end analyzes the audio data stream according to frequency information of the audio stream after receiving the audio stream, wherein the duration of the starting time and/or the ending time of a time period in which the waveform of each frequency is located relative to a pre-agreed reference time is pre-agreed. Data transmission flexibility is poor.
Currently, the means of audio communication is very little, and therefore, there is no suitable way to simultaneously accommodate communication between different mobile terminals.
Disclosure of Invention
The first technical problem to be solved by the present invention is to provide a transmission system which expands the function of audio transmission channels between devices, realizes the transmission of digital signals without adding a new transmission mode, uses the characteristic of audio carrying frequency information to encode audio data in a frequency domain, ensures accurate, real-time, reliable and flexible data transmission by restricting the encoding and decoding protocols of a transmitting and receiving end, and uses audio as the encoding and decoding of digital signals. The second technical problem to be solved by the present invention is to provide a transmission method for providing more accurate and fast audio used in data transmission mode as digital signal coding and decoding between different audio processing devices without adding a new communication bus. The third technical problem solved by the invention is to provide a set of transmission method for self-defining communication protocol to use audio as digital signal coding and decoding to solve the compatibility problem of communication between different devices.
The first technical solution of the present invention is the transmission system using audio as digital signal encoding and decoding, which is characterized by comprising a first audio processing device, a second audio processing device, and an analog audio signal connection device, wherein the first audio processing device and the second audio processing device transmit audio signals through the analog audio signal connection device;
the first audio processing device converts the digital signal into an analog audio signal and outputs the analog audio signal to the analog audio signal connecting device;
the second audio processing device receives the analog audio signal from the analog audio signal connector and converts the analog signal into a digital signal supporting fast Fourier transform operation;
the analog audio signal connection device is a standard 3.5mm connector, or other form of analog interface.
Preferably, the method comprises the following steps: the first audio processing device comprises a different-frequency waveform generation module, an audio data analysis module, an audio transmitting module and an audio receiving module; correspondingly, the second audio processing device comprises an audio receiving module, an audio transmitting module, an audio data analyzing module and a different-frequency waveform generating module; the first audio processing device and the second audio processing device perform duplex mode transmission through an analog audio signal connecting device; the audio characteristics of the first audio processing device and the second audio processing device confirm that the transmitted audio is in a width range of 125Hz to 20000Hz in the frequency domain; the frequency-domain-intra-coded form was confirmed to be at a start frequency of 300Hz and a step frequency of 200 Hz.
Preferably, the method comprises the following steps: the first audio processing device comprises different-frequency audio generation modules, a frequency analysis module, an audio transmitting module and an audio data receiving module; correspondingly, the second audio processing device comprises an audio data receiving module, an audio transmitting module, a frequency analyzing module and different-frequency audio generating modules; the first audio processing device and the second audio processing device transmit audio data between different systems through audio transmission devices; the audio characteristics of the first audio processing device and the second audio processing device confirm that the transmitted audio is in a width range of 125Hz to 20000Hz in the frequency domain; the frequency-domain-intra-coded form was confirmed to be at a start frequency of 300Hz and a step frequency of 200 Hz.
Preferably, the method comprises the following steps: the first audio processing device is a smart phone/computer, and the second audio processing device is a single chip microcomputer; or the first audio processing device is a smart phone, and the second audio processing device is an audio processing transceiver device with a 3.5mm common head.
The second technical solution of the present invention is the transmission system of the audio data streams with different frequencies, which is characterized in that the transmission system comprises a first device for generating audio data streams with different frequencies, a second device for analyzing the audio data streams with different frequencies, and audio transmission equipment, wherein the audio transmission equipment is used for transmitting audio signals between the first device and the second device;
the first device converts data to be transmitted into binary codes and generates waveform data with different frequencies, and the waveform data are assembled into an audio data stream;
the second device receives the audio data stream, acquires a data field through analog-to-digital conversion, analyzes the frequency information of the data field through analysis and operation, finds out binary data of a corresponding relation and converts the binary data into received data;
the audio transmission device selects: AUDIO connector TRS, BLUETOOTH AUDIO, USB AUDIO.
Preferably, the method comprises the following steps: generating waveform data of different frequencies in the first device, further comprising: a base frequency value and a frequency step value; parsing data field frequency information in the second device, further comprising: a base frequency value and a frequency step value.
The third technical solution of the present invention is a transmission method using audio as digital signal encoding and decoding, characterized by comprising the steps of:
⑴ software built in the first audio processing device generates a set of data, the data is the superposition of signals with different frequencies in the frequency domain, and the data corresponding to the frequencies are subjected to 0/1 calibration according to the attributes of the different frequencies;
⑵ the system determines the step value according to the data processing precision ability of the receiving and transmitting end, converts the digital signal into the analog signal and transmits to the analog audio signal connecting device;
⑶ the second audio processing device receives the analog signal from the analog audio signal connection device, converts the analog signal into digital signal, analyzes the data, judges the signal representation of the received data in the frequency domain according to the Fourier transform result, determines the frequency corresponding to the effective bit of the data according to the initial frequency and the frequency step value of the sending end, and then obtains the amplitude information of the frequency point;
⑷, if the amplitude information is larger than the set threshold value, the bit is marked as 1, if the amplitude information is smaller than the set threshold value, the bit is marked as 0, and according to the analysis of the data frequency domain signal of one frame, the binary digit with the set bit is obtained to be regarded as successful receiving.
Preferably, the calibrating in step ⑴ includes, using X as a step, the range of X is 100-1000 Hz, and preferably 200Hz as a step, using Y as an initial frequency, the range of Y is 100-1000 Hz, and preferably 300Hz as an initial frequency, calibrating the frequency corresponding to every other step as a data bit, setting the frequency amplitude of the frequency, if the bit is 0, the amplitude is zero, if the bit is 1, the amplitude is full, and so on, and determining the total bit width according to the frequency receiving range of the master-slave device.
The fourth technical solution of the present invention is the transmission method of the digital audio signal encoding and decoding, which is characterized by comprising the following steps:
⑴ converting data to be transmitted into binary array by first equipment, selecting floating point number or real number for data to be transmitted, selecting 8-bit binary representation, 16-bit binary representation and 32-bit binary representation according to data range, calculating to obtain binary array of data to be transmitted after the first equipment confirms the binary representation mode, generating a frame of audio data as message header frame by the first equipment, wherein the audio data generation rule of the message header frame is to superpose sinusoidal signals of 1000Hz, 3000Hz, 5000Hz and 70000 Hz;
⑵ the first device generates a frame of audio data as the message end frame, the audio data generation rule of the message end frame is to superpose the sinusoidal signals of 2000Hz, 4000Hz, 6000Hz, 80000 Hz;
⑶ the first device generates a frame of audio data as a message frame, the audio data generation rule of the message frame is that 500Hz is the initial frequency, 400Hz is the step value, that is, 500Hz represents the lowest bit of eight-bit binary, 3300Hz represents the highest bit, according to the binary array obtained in step ⑴, the sinusoidal signals with corresponding frequency of the bit corresponding to '1' are superposed, that is, the audio of the message frame is the superposition of the sinusoidal signals with 900Hz and 1300 Hz;
⑷ the first device splices the three frames of data into a segment of audio seamlessly according to the message head frame, the message frame and the message tail frame, and transmits the audio segment to the second device at one time;
⑸ analyzing the audio data received in real time by the second device according to frame, wherein the analysis frame length is consistent with the message data frame length generated by the first device, and the second device performs fast Fourier transform on each received frame data to obtain the frequency domain expression of the audio data;
⑹ when the fast Fourier transform result of the current frame received by the second device shows that the amplitude of 1000Hz, 3000Hz, 5000Hz, 70000Hz is large, and when the amplitude of other frequencies is smaller than the T value, the range of the T value is calculated according to the fast Fourier transform result, one fifth of the highest point H of the amplitude is taken as the T value, which indicates that the message header frame is received, the next frame is marked as the message frame, the second device obtains the message frame, performs fast Fourier transform on the data of the current frame, obtains the frequency domain information of the current frame, extracts the frequency of the point with large amplitude, and finds the corresponding binary code according to the initial frequency and the step value of the first device;
⑺ the second device converts the binary digit group obtained in step ⑹ into decimal real number, namely '6', and the second device performs fast Fourier transform on the next frame of the message frame to obtain the representation in the frequency domain of the audio data of the frame, wherein the second device displays that the amplitude of 2000Hz, 4000Hz, 6000Hz and 80000Hz is large and the amplitude of other frequencies is less than the value T when receiving the fast Fourier transform result of the current frame, the range of the value T is calculated according to the fast Fourier transform result, when one fifth of the peak H of the amplitude is taken as the value T, the message end frame is received, and the transmission is marked to be ended;
⑻ inputting a set of data to be transmitted by the second device, converting the data into binary numbers by software;
⑼ the second device generates a frame of audio data signal according to the value of the binary number, the frame of audio data has signal in frequency domain representing 500Hz, 700Hz, 2100Hz, 2500Hz, 3900Hz, 5100Hz, 5300Hz frequency band, and no signal in other frequency bands;
⑽ the second device generates a signal header frame, the frequency domain representation of the audio data of the frame is that signals exist in the frequency bands of 1000Hz, 5000Hz and 7000Hz, and no signals exist in other frequency bands;
⑾ the second device generates a signal tail frame, the frequency domain representation of the audio data of the frame is that signals exist in 3000Hz, 6000Hz and 9000Hz frequency bands, and no signals exist in other frequency bands;
⑿ splicing the signal head frame, signal frame and signal tail frame into continuous 3 frame data by the second device, converting the data into analog audio by D \ A conversion of the second device, and sending to the first device;
⒀ the first device receives the analog data through 3.5mm interface, then converts the analog data into digital signal through A \ D, reads the data of each frame in real time, and makes fast Fourier transform to the data of each frame, when it is recognized that there is signal in 3000Hz, 6000Hz, 9000Hz frequency band, and there is no signal in other frequency band, it is determined that the frame is the signal head frame, and marks the next frame as signal frame;
⒁ a first device performs fast Fourier transform on data of a signal frame, reads signals of each frequency according to XHz as an initial frequency, an X range of 100-1000 Hz, preferably 300Hz as an initial frequency, and YHz as a stepping reading signal of each frequency, reads signals of each frequency according to a Y range of 100-1000 Hz, preferably 200Hz as a stepping reading signal, marks bits with signals as 1, marks bits without signals as 0 until reaching ZHz, and reads binary numbers of 32 bits according to a Z range of 1000-192000 Hz, preferably 9600 Hz;
⒂ the first device converts the 32-bit binary number into decimal number according to eight bits, to obtain four numbers of 3, 4, 5 and 6;
⒃ the first device reads the next frame of the signal frame to perform fast Fourier transform, when the frame has signal in 3000Hz, 6000Hz and 9000Hz frequency band and no signal in other frequency band, it marks the current frame as the signal end frame, and does not receive signal frame, and continues to detect whether there is signal head frame;
⒄ if it does not conform to the characteristics of the end frame, it indicates that the data transmission still has data not transmitted, and this frame is still a signal frame, and the digital signal is obtained according to the reading mode of the signal frame.
Preferably, the start frequency, step value and stop frequency in step ⑶ can all be customized, an appropriate step value is selected according to the length of the binary array and the audio sampling rate, and the start frequency and stop frequency are selected according to the audio sampling rate and the bandwidth of the transceiver.
Compared with the prior art, the invention has the beneficial effects that:
⑴ the invention can acquire the frequency domain information of the audio data to carry data by digital operation according to the ability of the audio signal carrying frequency information, which is more stable and accurate, the process of encoding the audio signal in the frequency domain is carried out in real time, no mandatory requirement is provided for the direct audio interface of the two devices, only analog audio transmission can be supported, the audio channel is reused as the transmission method of the digital signal encoding and decoding, the real-time data exchange between the first device and the second device can be realized, and the transmission of the digital signal can be realized without adding a new data path.
⑵ the invention expresses the digital signal to be transmitted as the frequency spectrum information of the audio signal according to the set rule based on the frequency characteristic of the audio signal, which improves the precision of the information carried by the audio signal and the speed of data interaction between the first device and the second device.
⑶ the invention has complete message structure including message head, message body and message tail for the data protocol to be sent, and can ensure the accuracy of the first and second devices.
⑷ the present invention may support information transfer between a first device and a second device in real time, but also supports two-way asynchronous transfer.
Drawings
FIG. 1 is a diagram of a transport mode framework of the present invention;
FIG. 2 is a waveform diagram of a header frame of the device of FIG. 1;
fig. 3A is a block diagram of an audio data transmission system of a first example of the present invention;
fig. 3B is a block diagram of an audio data transmission system of a first example of the present invention;
fig. 3C is a block diagram of an audio data transmission system of a first example of the present invention;
FIG. 4 is a waveform diagram of a message frame of the device of FIG. 3;
fig. 5 is a block diagram of an audio data transmission method of a second example of the present invention;
FIG. 6 is a waveform diagram of an end frame of the device message of FIG. 5;
FIG. 7 is a block diagram of audio data transmission between different systems according to a third example of the present invention;
fig. 8 is a waveform diagram of a handset message frame of fig. 7.
Detailed Description
The invention will be described in more detail below with reference to the accompanying drawings:
referring to fig. 5 and fig. 6, the transmission system using audio as digital signal encoding and decoding includes a first audio processing device, a second audio processing device, and an analog audio signal connection device, where the first audio processing device and the second audio processing device transmit audio signals through the analog audio signal connection device;
the first audio processing device comprises a different-frequency waveform generating module, an audio data analyzing module, an audio transmitting module and an audio receiving module, and is used for converting digital signals into analog audio signals and outputting the analog audio signals to the analog audio signal connecting device;
the second audio processing device comprises an audio receiving module, an audio transmitting module, an audio data analyzing module and a different-frequency waveform generating module; the analog audio signal connector is used for receiving an analog audio signal from the analog audio signal connector and converting the analog signal into a digital signal supporting fast Fourier transform operation;
the analog audio signal connection device is a standard 3.5mm connector, or other form of analog interface. And the first audio processing equipment and the second audio processing equipment perform duplex mode transmission through analog audio signal connection equipment.
The first audio processing device is a smart phone, and the second audio processing device is an audio processing transceiver device with a 3.5mm male head.
The audio characteristics of the first audio processing device and the second audio processing device confirm that the transmitted audio is in a width range of 125Hz to 20000Hz in the frequency domain; the frequency-domain-intra-coded form was confirmed to be at a start frequency of 300Hz and a step frequency of 200 Hz.
Referring to fig. 1 to 4, the transmission system of audio data streams with different frequencies includes a first device for generating audio data streams with different frequencies, a second device for analyzing audio data streams with different frequencies, and an audio transmission device, where the audio transmission device transmits audio signals between the first device and the second device; the audio transmission device selects: AUDIO connector TRS, BLUETOOTH AUDIO, USB AUDIO.
Referring to fig. 3A, the first device converts data to be transmitted into binary codes, generates waveform data with different frequencies, and assembles the waveform data into an audio data stream; wherein generating waveform data of different frequencies further comprises: a base frequency value and a frequency step value;
referring to fig. 3B, the second device receives the audio data stream, obtains the data field through analog-to-digital conversion, analyzes the frequency information of the data field through analysis, finds out the binary data corresponding to the data field, and converts the binary data into the received data; wherein parsing the data field frequency information further comprises: a base frequency value and a frequency step value.
Referring to fig. 7 and 8, the transmission system using audio as digital signal encoding and decoding includes a first audio processing device, a second audio processing device, and an analog audio signal connection device, where the first audio processing device and the second audio processing device transmit audio data between different systems through an audio transmission device; the audio characteristics of the first audio processing device and the second audio processing device confirm that the transmitted audio is in a width range of 125Hz to 20000Hz in the frequency domain; confirming that the frequency domain intra-coding mode is that the initial frequency is 300Hz, and the stepping frequency is 200 Hz;
the first audio processing device comprises different-frequency audio generation modules, a frequency analysis module, an audio transmitting module and an audio data receiving module; the digital signal is converted into an analog audio signal and is output to the analog audio signal connecting equipment;
the second audio processing device comprises an audio data receiving module, an audio transmitting module, a frequency analyzing module and different-frequency audio generating modules; the digital audio signal conversion circuit is used for receiving an analog audio signal from the analog audio signal connector and converting the analog signal into a digital signal supporting fast Fourier transform operation.
In this embodiment, the first audio processing device is a smart phone/computer, and the second audio processing device is a single chip microcomputer.
Referring to fig. 1 to 4, the transmission method using audio as the encoding and decoding of the digital signal includes the following steps:
⑴ software built in the first audio processing device generates a set of data, the data is the superposition of signals with different frequencies in the frequency domain, and the data corresponding to the frequencies are subjected to 0/1 calibration according to the attributes of the different frequencies;
⑵ the system determines the step value according to the data processing precision ability of the receiving and transmitting end, converts the digital signal into the analog signal and transmits to the analog audio signal connecting device;
⑶ the second audio processing device receives the analog signal from the analog audio signal connection device, converts the analog signal into digital signal, analyzes the data, judges the signal representation of the received data in the frequency domain according to the Fourier transform result, determines the frequency corresponding to the effective bit of the data according to the initial frequency and the frequency step value of the sending end, and then obtains the amplitude information of the frequency point;
⑷, if the amplitude information is larger than the set threshold value, marking the bit as 1, if the amplitude information is smaller than the set threshold value, marking the bit as 0, and obtaining the binary digits with the set bit number as successful receiving according to the analysis of the data frequency domain signal of the frame data;
the calibration of step ⑴ includes, for example, using 200hz as a step, 300hz as an initial frequency, calibrating a frequency corresponding to every other step as a data bit, setting a frequency amplitude of the frequency, if the bit is 0, the amplitude is zero, if the bit is 1, the amplitude is full, and so on, and determining the total bit width according to the frequency receiving range of the master and slave devices.
Referring to fig. 1 to 8, the method for transmitting the digital audio signal includes the following steps:
⑴ a first device converts data to be transmitted into a binary array, wherein the data to be transmitted selects floating point number or real number, selects 8-bit binary representation, 16-bit binary representation and 32-bit binary representation according to a data range, and selects 8-bit binary representation to be 00000110 if the data to be transmitted is '6';
⑵ the first device generates a frame of audio data as the end of message frame, the audio data generation rule of the end of message frame is to superpose the sinusoidal signals of 2000Hz, 4000Hz, 6000Hz, 80000Hz, and the result of the fast Fourier transform of the frame data is shown in FIG. 5;
⑶ the first device generates a frame of audio data as the message frame, the audio data generation rule of the message frame is that 500Hz is the initial frequency, 400Hz is the step value, that is, 500Hz represents the lowest bit of eight-bit binary, 3300Hz represents the highest bit, according to the binary array obtained in step ⑴, the sine signal of the corresponding frequency of the bit corresponding to '1' is superimposed, that is, the audio of the message frame is the superposition of the sine signal of 900Hz and 1300Hz, the result of the fast Fourier change of the frame data is shown in FIG. 2;
⑷ the first device splices the three frames of data into a segment of audio seamlessly according to the message head frame, the message frame and the message tail frame, and transmits the audio segment to the second device at one time;
⑸ analyzing the audio data received in real time by the second device according to frame, analyzing the frame length consistency with the message data frame length generated by the first device, and performing fast Fourier transform on each received frame data by the second device to obtain the frequency domain expression of the frame audio data;
⑹ when the fast Fourier transform result of the current frame received by the second device shows that the amplitude of 1000Hz, 3000Hz, 5000Hz, 70000Hz is large, and when the amplitude of other frequencies is smaller than T value, the range of T value is calculated according to the fast Fourier transform result, when one fifth of the highest point H of the amplitude is taken as T value, the message header frame is received, the next frame is marked as message frame, the second device obtains message frame, fast Fourier transform is carried out on the data of the current frame, frequency domain information of the current frame is obtained, the frequency of the point with large amplitude is extracted, the binary code corresponding to the point with large amplitude is found according to the initial frequency and step value of the first device, and as the result of FIG. 5, the corresponding binary group is 00000110;
⑺ the second device converts the binary digit group obtained in step ⑹ into decimal real number, namely '6', and the second device performs fast Fourier transform on the next frame of the message frame to obtain the representation in the frequency domain of the audio data of the frame, wherein the second device displays that the amplitude of 2000Hz, 4000Hz, 6000Hz and 80000Hz is large and the amplitude of other frequencies is less than the value T when receiving the fast Fourier transform result of the current frame, the range of the value T is calculated according to the fast Fourier transform result, when one fifth of the peak H of the amplitude is taken as the value T, the message end frame is received, and the transmission is marked to be ended;
⑻ confirming the width range of 125 Hz-20000 Hz in the frequency domain of the transmitted audio according to the audio characteristics of the first device and the second device, confirming the encoding form in the frequency domain is that the starting frequency is 300Hz, the step frequency is 200Hz, the second device inputs a group of data to be transmitted, the data is converted into binary numbers by software, for example, the data to be transmitted is 3, 4, 5, 6, and after being converted into binary numbers, the data is 00000011, 00000100, 00000101, 00000110;
⑼ the second device generates a frame of audio data signal frame according to the value of the binary number, the frame of audio data has signals in the frequency bands of 500Hz, 700Hz, 2100Hz, 2500Hz, 3900Hz, 5100Hz and 5300Hz, the result of the fast Fourier change of the frame data is shown in FIG. 7, the other frequency bands have no signals, the signal frame can be expanded into continuous frames, each frame represents four decimal numbers;
⑽ the second device generates a signal header frame, the frequency domain representation of the audio data of the frame is that signals exist in the frequency bands of 1000Hz, 5000Hz and 7000Hz, and no signals exist in other frequency bands;
⑾ the second device generates a signal tail frame, the frequency domain representation of the audio data of the frame is that signals exist in 3000Hz, 6000Hz and 9000Hz frequency bands, and no signals exist in other frequency bands;
⑿ splicing the signal head frame, signal frame and signal tail frame into continuous 3 frame data by the second device, converting the data into analog audio by D \ A conversion of the second device, and sending to the first device;
⒀ the first device receives the analog data through 3.5mm interface, then converts the analog data into digital signal through A \ D, reads the data of each frame in real time, and makes fast Fourier transform to the data of each frame, when it is recognized that there is signal in 3000Hz, 6000Hz, 9000Hz frequency band, and there is no signal in other frequency band, it is determined that the frame is the signal head frame, and marks the next frame as signal frame;
⒁ the first device makes fast Fourier transform to the data of signal frame, and reads the signal of each frequency according to 300Hz as the initial frequency and step by 200Hz, and reads the binary number of 32 bits when the bit with signal is marked as 1 and the bit without signal is marked as 0 until 9600 Hz;
⒂ the first device converts the 32-bit binary number into decimal number according to eight bits, to obtain four numbers of 3, 4, 5 and 6;
⒃ the first device reads the next frame of the signal frame to perform fast Fourier transform, when the frame has signal in 3000Hz, 6000Hz and 9000Hz frequency band and no signal in other frequency band, it marks the current frame as the signal end frame, and does not receive signal frame, and continues to detect whether there is signal head frame;
⒄ if it does not conform to the characteristics of the end frame, it indicates that the data transmission still has data not transmitted, and this frame is still a signal frame, and the digital signal is obtained according to the reading mode of the signal frame.
The start frequency, step value and stop frequency in step ⑶ can be defined by user, the proper step value is selected according to the length of binary array and audio sampling rate, and the start frequency and stop frequency are selected according to the audio sampling rate and bandwidth of the transceiver.
The above-mentioned embodiments are only preferred embodiments of the present invention, and all equivalent changes and modifications made within the scope of the claims of the present invention should be covered by the claims of the present invention.

Claims (10)

1. A transmission system using audio as digital signal coding and decoding is characterized by comprising a first audio processing device, a second audio processing device and an analog audio signal connecting device, wherein the first audio processing device and the second audio processing device transmit audio signals through the analog audio signal connecting device;
the first audio processing device converts the digital signal into an analog audio signal and outputs the analog audio signal to the analog audio signal connecting device;
the second audio processing device receives the analog audio signal from the analog audio signal connector and converts the analog signal into a digital signal supporting fast Fourier transform operation;
the analog audio signal connection device is a standard 3.5mm connector, or other form of analog interface.
2. The transmission system according to claim 1, wherein the first audio processing device comprises a different frequency waveform generation module, an audio data analysis module, an audio transmission module, and an audio receiving module; correspondingly, the second audio processing device comprises an audio receiving module, an audio transmitting module, an audio data analyzing module and a different-frequency waveform generating module; the first audio processing device and the second audio processing device perform duplex mode transmission through an analog audio signal connecting device; the audio characteristics of the first audio processing device and the second audio processing device confirm that the transmitted audio is in a width range of 125Hz to 20000Hz in the frequency domain; the frequency-domain-intra-coded form was confirmed to be at a start frequency of 300Hz and a step frequency of 200 Hz.
3. The transmission system according to claim 1, wherein the first audio processing device comprises a different-frequency audio generating module, a frequency analyzing module, an audio transmitting module, and an audio data receiving module; correspondingly, the second audio processing device comprises an audio data receiving module, an audio transmitting module, a frequency analyzing module and different-frequency audio generating modules; the first audio processing device and the second audio processing device transmit audio data between different systems through audio transmission devices; the audio characteristics of the first audio processing device and the second audio processing device confirm that the transmitted audio is in a width range of 125Hz to 20000Hz in the frequency domain; the frequency-domain-intra-coded form was confirmed to be at a start frequency of 300Hz and a step frequency of 200 Hz.
4. The transmission system according to claim 2 or 3, wherein the first audio processing device is a smart phone/computer, and the second audio processing device is a single chip microcomputer; or the first audio processing device is a smart phone, and the second audio processing device is an audio processing transceiver device with a 3.5mm common head.
5. The transmission system of the audio data streams with different frequencies is characterized by comprising a first device for generating the audio data streams with different frequencies, a second device for analyzing the audio data streams with different frequencies and audio transmission equipment, wherein audio signals are transmitted between the first device and the second device through the audio transmission equipment;
the first device converts data to be transmitted into binary codes and generates waveform data with different frequencies, and the waveform data are assembled into an audio data stream;
the second device receives the audio data stream, acquires a data field through analog-to-digital conversion, analyzes the frequency information of the data field through analysis and operation, finds out binary data of a corresponding relation and converts the binary data into received data;
the audio transmission device selects: AUDIO connector TRS, BLUETOOTH AUDIO, USB AUDIO.
6. The system for transmitting audio data streams of different frequencies according to claim 5, wherein the first device generates waveform data of different frequencies, further comprising: a base frequency value and a frequency step value; parsing data field frequency information in the second device, further comprising: a base frequency value and a frequency step value.
7. A transmission method using audio as a digital signal codec, comprising the steps of:
⑴ software built in the first audio processing device generates a set of data, the data is the superposition of signals with different frequencies in the frequency domain, and the data corresponding to the frequencies are subjected to 0/1 calibration according to the attributes of the different frequencies;
⑵ the system determines the step value according to the data processing precision ability of the receiving and transmitting end, converts the digital signal into the analog signal and transmits to the analog audio signal connecting device;
⑶ the second audio processing device receives the analog signal from the analog audio signal connection device, converts the analog signal into digital signal, analyzes the data, judges the signal representation of the received data in the frequency domain according to the Fourier transform result, determines the frequency corresponding to the effective bit of the data according to the initial frequency and the frequency step value of the sending end, and obtains the amplitude information of the frequency point;
⑷, if the amplitude information is larger than the set threshold value, the bit is marked as 1, if the amplitude information is smaller than the set threshold value, the bit is marked as 0, and according to the analysis of the data frequency domain signal of one frame, the binary digit with the set bit is obtained to be regarded as successful receiving.
8. The transmission method according to claim 7, wherein the calibrating step ⑴ includes steps of X, X ranges from 100Hz to 1000Hz, Y ranges from 100Hz to 1000Hz, every other step corresponds to a data bit, setting the frequency amplitude of the frequency, if the bit is 0, the amplitude is zero, if the bit is 1, the amplitude is full, and so on, and the total bit width is determined according to the frequency receiving range of the master device and the slave device.
9. A transmission method for coding and decoding digital audio signals is characterized by comprising the following steps:
⑴ converting data to be transmitted into binary array by first equipment, selecting floating point number or real number for data to be transmitted, selecting 8-bit binary representation, 16-bit binary representation and 32-bit binary representation according to data range, calculating to obtain binary array of data to be transmitted after the first equipment confirms the binary representation mode, generating a frame of audio data as message header frame by the first equipment, wherein the audio data generation rule of the message header frame is to superpose sinusoidal signals of 1000Hz, 3000Hz, 5000Hz and 70000 Hz;
⑵ the first device generates a frame of audio data as the message end frame, the audio data generation rule of the message end frame is to superpose the sinusoidal signals of 2000Hz, 4000Hz, 6000Hz, 80000 Hz;
⑶ the first device generates a frame of audio data as a message frame, the audio data generation rule of the message frame is that 500Hz is the initial frequency, 400Hz is the step value, that is, 500Hz represents the lowest bit of eight-bit binary, 3300Hz represents the highest bit, according to the binary array obtained in step ⑴, the sinusoidal signals with corresponding frequency of the bit corresponding to '1' are superposed, that is, the audio of the message frame is the superposition of the sinusoidal signals with 900Hz and 1300 Hz;
⑷ the first device splices the three frames of data into a segment of audio seamlessly according to the message head frame, the message frame and the message tail frame, and transmits the audio segment to the second device at one time;
⑸ analyzing the audio data received in real time by the second device according to frame, analyzing whether the frame length is consistent with the message data frame length generated by the first device, and performing fast Fourier transform on each received frame data by the second device to obtain the frequency domain expression of the frame audio data;
⑹ when the fast Fourier transform result of the current frame received by the second device shows that the amplitude of 1000Hz, 3000Hz, 5000Hz, 70000Hz is large, and when the amplitude of other frequencies is smaller than the T value, the range of the T value is calculated according to the fast Fourier transform result, one fifth of the highest point H of the amplitude is taken as the T value, which indicates that the message header frame is received, the next frame is marked as the message frame, the second device obtains the message frame, performs fast Fourier transform on the data of the current frame, obtains the frequency domain information of the current frame, extracts the frequency of the point with large amplitude, and finds the corresponding binary code according to the initial frequency and the step value of the first device;
⑺ the second device converts the binary digit group obtained in step ⑹ into decimal real number, namely '6', and the second device performs fast Fourier transform on the next frame of the message frame to obtain the representation in the frequency domain of the audio data of the frame, wherein the second device displays that the amplitude of 2000Hz, 4000Hz, 6000Hz and 80000Hz is large and the amplitude of other frequencies is less than the value T when receiving the fast Fourier transform result of the current frame, the range of the value T is calculated according to the fast Fourier transform result, when one fifth of the peak H of the amplitude is taken as the value T, the message end frame is received, and the transmission is marked to be ended;
⑻ inputting a set of data to be transmitted by the second device, converting the data into binary numbers by software;
⑼ the second device generates a frame of audio data signal according to the value of the binary number, the frame of audio data has signal in frequency domain representing 500Hz, 700Hz, 2100Hz, 2500Hz, 3900Hz, 5100Hz, 5300Hz frequency band, and no signal in other frequency bands;
⑽ the second device generates a signal header frame, the frequency domain representation of the audio data of the frame is that signals exist in the frequency bands of 1000Hz, 5000Hz and 7000Hz, and no signals exist in other frequency bands;
⑾ the second device generates a signal tail frame, the frequency domain representation of the audio data of the frame is that signals exist in 3000Hz, 6000Hz and 9000Hz frequency bands, and no signals exist in other frequency bands;
⑿ splicing the signal head frame, signal frame and signal tail frame into continuous 3 frame data by the second device, converting the data into analog audio by D \ A conversion of the second device, and sending to the first device;
⒀ the first device receives the analog data through 3.5mm interface, then converts the analog data into digital signal through A \ D, reads the data of each frame in real time, and makes fast Fourier transform to the data of each frame, when it is recognized that there is signal in 3000Hz, 6000Hz, 9000Hz frequency band, and there is no signal in other frequency band, it is determined that the frame is the signal head frame, and marks the next frame as signal frame;
⒁ the first device performs fast Fourier transform on the data of the signal frame, and reads signals of each frequency step by step according to XHz as an initial frequency, an X range of 100-1000 Hz, and YHz, wherein a Y range of 100-1000 Hz marks a bit with a signal as 1, a bit without a signal as 0 until reaching ZHz, and a Z range of 1000-192000 Hz reads a binary number of 32 bits;
⒂ the first device converts the read 32-bit binary number into decimal number according to eight bits, and obtains four numbers of 3, 4, 5 and 6;
⒃ the first device reads the next frame of the signal frame to perform fast Fourier transform, when the frame has signal in 3000Hz, 6000Hz and 9000Hz frequency band and no signal in other frequency band, it marks the current frame as the signal end frame, and does not receive signal frame, and continues to detect whether there is signal head frame;
⒄ if it does not conform to the characteristics of the end frame, it indicates that the data transmission still has data not transmitted, and this frame is still a signal frame, and the digital signal is obtained according to the reading mode of the signal frame.
10. The method as claimed in claim 9, wherein the start frequency, step value and stop frequency are all customized in step ⑶, and the method comprises selecting a proper step value according to the length of the binary array and the audio sampling rate, and selecting the start frequency and the stop frequency according to the audio sampling rate and the bandwidth of the transceiver.
CN202010161907.1A 2020-03-10 2020-03-10 Transmission system using audio as digital signal coding and decoding and transmission method thereof Pending CN111192596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010161907.1A CN111192596A (en) 2020-03-10 2020-03-10 Transmission system using audio as digital signal coding and decoding and transmission method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010161907.1A CN111192596A (en) 2020-03-10 2020-03-10 Transmission system using audio as digital signal coding and decoding and transmission method thereof

Publications (1)

Publication Number Publication Date
CN111192596A true CN111192596A (en) 2020-05-22

Family

ID=70710401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010161907.1A Pending CN111192596A (en) 2020-03-10 2020-03-10 Transmission system using audio as digital signal coding and decoding and transmission method thereof

Country Status (1)

Country Link
CN (1) CN111192596A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938215A (en) * 2021-09-10 2022-01-14 猫岐智能科技(上海)有限公司 Data sending module, data receiving module, multi-channel duplex sound wave communication system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938215A (en) * 2021-09-10 2022-01-14 猫岐智能科技(上海)有限公司 Data sending module, data receiving module, multi-channel duplex sound wave communication system and method
CN113938215B (en) * 2021-09-10 2023-10-03 佳格科技(浙江)股份有限公司 Multipath duplex acoustic wave communication system

Similar Documents

Publication Publication Date Title
CN101299632B (en) Synchronization and segment type detection method for data transmission via an audio communication system
KR100621815B1 (en) Method for conveying tty signals over wireless communication systems
CN111192596A (en) Transmission system using audio as digital signal coding and decoding and transmission method thereof
CN105024764A (en) Audio-format-based file transmission method and system
CN212161282U (en) Transmission system for coding and decoding digital signal or audio data stream with different frequency
WO1998026570A3 (en) Communications system and method for testing of a communications apparatus
CN103532686B (en) Serial data transmission circuit and control method thereof with line sequence self-adaptive
EP1624642A3 (en) Apparatus, method and system for providing information in accordance with one of a plurality of protocols
CN106612487B (en) System and method for testing terminal audio index of private network system
CN104796938A (en) Micropower wireless communication error rate detection analyzer
CN107480598B (en) DSP system based on artificial intelligence
RU2204216C2 (en) Check-up of talking path in communication systems
CN113938240B (en) Method and device for outputting multiple IRIG time codes
CN117539818B (en) Interface based on PHY model, chip integrating interface and chip simulation system
CN105657592A (en) Audio communication method and device
CN111917504B (en) Double-line synchronous high-speed transmission system for transmitting multi-path data
CN215871846U (en) Testing device
CN111970063B (en) Communication method, device, equipment and storage medium
RU27244U1 (en) MOBILE COMPLEX OF EQUIPMENT FOR PROCESSING AND TRANSMISSION OF DATA BY COMMUNICATION CHANNELS
JP2012209780A (en) Mobile communication terminal test system, base station simulator, and delay time measurement method
CN104168096A (en) Method and apparatus to transmit data through tones
WO2021020341A1 (en) Signal transmitting system and signal transmitting method
CN116736337A (en) Remote calibration system and method for metering device
CN114257326A (en) Time-frequency transmission method and system based on one-way physical isolation
RU2132086C1 (en) Remote alarm system with current modulation of control signal

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