[go: up one dir, main page]

CN111192596B - Using audio as a transmission method for digital signal encoding and decoding - Google Patents

Using audio as a transmission method for digital signal encoding and decoding Download PDF

Info

Publication number
CN111192596B
CN111192596B CN202010161907.1A CN202010161907A CN111192596B CN 111192596 B CN111192596 B CN 111192596B CN 202010161907 A CN202010161907 A CN 202010161907A CN 111192596 B CN111192596 B CN 111192596B
Authority
CN
China
Prior art keywords
frame
audio
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.)
Active
Application number
CN202010161907.1A
Other languages
Chinese (zh)
Other versions
CN111192596A (en
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.)
HKUST Shenzhen Research Institute
Original Assignee
HKUST Shenzhen Research Institute
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 HKUST Shenzhen Research Institute filed Critical HKUST Shenzhen Research Institute
Priority to CN202010161907.1A priority Critical patent/CN111192596B/en
Publication of CN111192596A publication Critical patent/CN111192596A/en
Application granted granted Critical
Publication of CN111192596B publication Critical patent/CN111192596B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computational Linguistics (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

本发明涉及使用音频作为数字信号编解码的传输系统及其传输方法,该传输系统,包括第一音频处理设备、第二音频处理设备、模拟音频信号连接设备,所述第一音频处理设备与第二音频处理设备之间通过模拟音频信号连接设备进行音频信号的传输;所述第一音频处理设备,将数字信号转化为模拟音频信号并输出到模拟音频信号连接设备;所述第二音频处理设备,从模拟音频信号连接器接收模拟音频信号,将模拟信号转化为支持快速傅里叶变换运算的数字信号;所述模拟音频信号连接设备是标准的3.5mm接头,或其他形式的模拟接口。

The present invention relates to a transmission system and a transmission method using audio as a digital signal codec. The transmission system comprises a first audio processing device, a second audio processing device, and an analog audio signal connecting device. The first audio processing device and the second audio processing device transmit audio signals via the analog audio signal connecting device. The first audio processing device converts digital signals into analog audio signals and outputs the analog audio signals to the analog audio signal connecting device. The second audio processing device receives analog audio signals from an analog audio signal connector and converts the analog signals into digital signals supporting fast Fourier transform operations. The analog audio signal connecting device is a standard 3.5mm connector or other forms of analog interfaces.

Description

Transmission method using audio as digital signal codec
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 for encoding and decoding digital signals by using audio.
Background
The current technical scheme is that the analog data transmission between different audio processing devices can only transmit audio analog data, and can not transmit customized digital signals at the same time.
According to the current technical scheme, audio clips with different frequencies are generated through a transmitting end and spliced into an audio data stream, a receiving end receives the audio stream and then analyzes the audio stream according to frequency information of the audio stream, wherein the starting time and/or the ending time of a time period where waveforms of each frequency are located are/is preset relative to a preset reference time. The flexibility of data transmission is poor.
There are few means of audio communication per se, 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 invention is to provide a transmission system which expands the function of an audio transmission channel between devices, realizes the transmission of digital signals on the basis of no need of newly added transmission modes, encodes audio data in a frequency domain by using the characteristic of carrying frequency information of audio, ensures accurate, real-time, reliable and flexible data transmission by restricting the encoding and decoding protocol of a receiving and transmitting end and uses the audio as the encoding and decoding of the digital signals. The second technical problem to be solved by the invention is to provide a transmission method for providing more accurate and rapid data transmission modes to use audio as digital signal codes and decodes on the premise of no need of newly adding a communication bus between different audio processing devices. The third technical problem to be solved by the invention is to provide a transmission method for using audio as digital signal coding and decoding by a customized communication protocol for solving 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 codec, which is characterized in that the transmission system comprises a first audio processing device, a second audio processing device, and an analog audio signal connection device, wherein the transmission of audio signals is performed between the first audio processing device and the second audio processing device 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 a fast fourier transform operation;
The analog audio signal connection device is a standard 3.5mm connector, or other form of analog interface.
As preferable: 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 are transmitted in duplex mode through an analog audio signal connecting device; the audio characteristics of the first audio processing device and the second audio processing device confirm the width range of 125 Hz-20000 Hz of the transmitted audio in the frequency domain; the frequency-domain intra-coding is confirmed to be 300Hz at a start frequency and 200Hz at a step frequency.
As preferable: the first audio processing device comprises an audio generation module, a frequency analysis module, an audio transmission module and an audio data receiving module which are all of different frequencies; correspondingly, the second audio processing device comprises an audio data receiving module, an audio transmitting module, a frequency analyzing module and a different-frequency audio generating module; 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 the width range of 125 Hz-20000 Hz of the transmitted audio in the frequency domain; the frequency-domain intra-coding is confirmed to be 300Hz at a start frequency and 200Hz at a step frequency.
As preferable: the first audio processing device is a smart phone/computer, and the second audio processing device is a singlechip; 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 male head.
The second technical solution of the present invention is the transmission system of audio data streams with different frequencies, which is characterized in that the 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 an audio transmission device, wherein audio signals are transmitted between the first device and the second device through the audio transmission device;
The first device converts data to be transmitted into binary codes and generates waveform data with different frequencies, and assembles the waveform data into an audio data stream;
The second device receives the audio data stream, obtains 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 the corresponding relation, and converts the binary data into received data;
The audio transmission equipment selects: AUDIO connector TRS, BLUETOOTH AUDIO, USB AUDIO.
As preferable: generating waveform data of different frequencies in the first device, further comprising: a base frequency value and a frequency step value; the parsing data field frequency information in the second device further includes: a base frequency value and a frequency step value.
The third technical solution of the present invention is the transmission method using audio as digital signal codec, which is characterized by comprising the following steps:
⑴ Generating a group of data by software built in the first audio processing equipment, wherein the data are superposition of signals with different frequencies in a frequency domain, and performing 0/1 calibration on the data corresponding to the frequencies according to the attribute of the different frequencies;
⑵ The system determines a stepping value according to the data processing precision capability of the receiving and transmitting end, converts a digital signal into an analog signal and transmits the analog signal to analog audio signal connecting equipment;
⑶ After receiving the analog signal from the analog audio signal connection device, the second audio processing device converts the analog signal into a digital signal, analyzes the data, judges the signal representation of the received data in a frequency domain according to a Fourier transform result, determines the frequency corresponding to the data valid bit according to the initial frequency and the frequency step value of the transmitting end, and then acquires the amplitude information of the frequency point;
⑷ And if the amplitude information is larger than the set threshold value, marking the bit as 1, and if the amplitude information is smaller than the set threshold value, marking the bit as 0, and obtaining binary digits of the set bit number according to analysis of a frame data frequency domain signal, wherein the binary digits are regarded as successful reception.
As preferable: the calibrating of step ⑴ specifically includes: x is taken as a step, and the range of X is 100-1000 Hz, preferably 200Hz is taken as a step; y is the initial frequency, Y ranges from 100 Hz to 1000Hz, preferably 300Hz is the initial frequency, the frequency corresponding to every other step is calibrated as a data bit, the frequency amplitude of the frequency is set, the amplitude is zero if the bit is 0, the amplitude is full if the bit is 1, and the like; the total bit width is determined according to the frequency reception range of the master-slave device.
The fourth technical solution of the present invention is a transmission method of the digital audio signal codec, which is characterized by comprising the following steps:
⑴ The method comprises the steps that first equipment converts data to be transmitted into binary groups, floating point numbers or real numbers are selected for the data to be transmitted, and 8-bit binary representation, 16-bit binary representation and 32-bit binary representation are selected according to a data range; after the first device confirms the binary representation mode, a binary number group of data to be transmitted is obtained through calculation, and the first device generates a frame of audio data as a message header frame; the audio data generation rule of the message header frame is to superimpose sinusoidal signals of 1000Hz, 3000Hz, 5000Hz and 7000 Hz;
⑵ The first device generates a frame of audio data as a message tail frame; the audio data generation rule of the message tail frame is to superimpose sinusoidal signals of 2000Hz, 4000Hz, 6000Hz and 8000 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 used as an initial frequency, 400Hz is used as a stepping value, namely 500Hz represents the lowest bit of the eight-bit binary system, 3300Hz represents the highest bit, and sine signals with the corresponding frequencies of the bits corresponding to '1' are overlapped according to the binary system obtained in the step ⑴, namely the audio of the message frame is obtained by overlapping the sine signals with 900Hz and 1300 Hz;
⑷ The first equipment seamlessly splices three frames of data into a section of audio according to a message header frame, a message frame and a message tail frame, and transmits the section of audio to the second equipment at one time;
⑸ The second equipment analyzes the audio data received in real time according to frames, the analysis frame length is consistent with the frame length of the message data generated by the first equipment, and the second equipment performs fast Fourier transform on each received frame of data to obtain the frequency domain internal representation of the frame of audio data;
⑹ The fast Fourier transform result of the current frame received by the second equipment shows that the amplitude of 1000Hz, 3000Hz, 5000Hz and 7000Hz is large, 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 amplitude point H is taken as the T value, the received message header frame is indicated, the next frame is marked as the message frame, the second equipment obtains the message frame, fast Fourier transform is carried out on the current frame data, the frequency domain information of the current frame is obtained, the frequency of the point with large amplitude is extracted, and the corresponding binary code is found according to the initial frequency and the stepping value of the first equipment;
⑺ The second device converts the binary number set obtained in the step ⑹ into decimal real numbers, namely '6', and the second device performs fast Fourier transform on the next frame of the message frame to obtain the frequency domain representation of the audio data of the frame; the second equipment receives the fast Fourier transform result of the current frame, and displays that the amplitude values of 2000Hz, 4000Hz, 6000Hz and 8000Hz are large, the amplitude values of other frequencies are smaller than T values, the range of the T values is calculated according to the fast Fourier transform result, when one fifth of the highest amplitude point H is taken as the T value, the second equipment indicates that a message tail frame is received, and the end of the transmission is marked;
⑻ The second equipment inputs a group of data to be transmitted, and the data is converted into binary numbers through software;
⑼ The second device generates a frame of audio data signal frame according to the binary number value, wherein the audio data of the frame has signals in frequency bands of 500Hz, 700Hz, 1900Hz, 2300Hz, 3900Hz, 5100Hz and 5300Hz in the frequency domain, and the other frequency bands have no signals;
⑽ The second equipment generates a signal header frame, and the frequency domain representation of the audio data of the frame is that signals exist in frequency bands of 1000Hz, 5000Hz and 7000Hz, and no signals exist in other frequency bands;
⑾ The second equipment generates a signal tail frame, the frequency domain representation of the audio data of the frame is that signals exist in frequency bands of 3000Hz, 6000Hz and 9000Hz, and no signals exist in other frequency bands;
⑿ The second device splices the signal head frame, the signal frame and the signal tail frame into continuous 3-frame data, converts the data into analog audio through D/A conversion of the second device and sends the analog audio to the first device;
⒀ The first equipment receives analog data through a 3.5mm interface, converts the analog data into digital signals through A/D, reads the data of each frame in real time, performs fast Fourier transform on the data of each frame, and confirms that the frame is a signal header frame and marks the next frame as a signal frame when recognizing that signals exist in frequency bands with frame characteristics of 3000Hz, 6000Hz and 9000Hz and no signals exist in other frequency bands;
⒁ The first device performs fast Fourier transform on data of a signal frame, signals of all frequencies are read in steps according to XHz as a starting frequency, an X range is 100-1000 Hz, preferably 300Hz as the starting frequency, YHz is the step, the Y range is 100-1000 Hz, preferably 200Hz is the step, the signals of all frequencies are read, bits with signals are marked as 1, bits without signals are marked as 0 until the bits reach ZHz, and the Z range is 1000-192000 Hz, preferably 9600Hz, and binary numbers of 32 bits are read;
⒂ The first device converts the read 32-bit binary number into a decimal number according to each eight bits to obtain four digits of 3, 4, 5 and 6;
⒃ The first equipment reads the next frame of the signal frame to carry out fast Fourier transform, when the frame characteristics are that signals exist in frequency bands of 3000Hz, 6000Hz and 9000Hz, and if no signal exists in other frequency bands, the current frame is marked as a signal tail frame, the signal frame is not continuously received, and whether a signal head frame is transmitted or not is continuously detected;
⒄ If the characteristics of the tail frame are not met, the data transmission is not completed, the frame is still a signal frame, and the digital signal is acquired according to the reading mode of the signal frame.
As preferable: the starting frequency, the step value, and the ending frequency in step ⑶ can be customized; and selecting proper stepping values according to the length of the binary number group and the audio sampling rate, and selecting a starting frequency and a terminating frequency according to the audio sampling rate and the frequency bandwidth of the transceiver.
Compared with the prior art, the invention has the beneficial effects that:
⑴ According to the method, the device and the system, the frequency domain information of the audio data can be obtained through digital operation according to the capability of carrying the frequency information of the audio signal, so that the audio signal is carried, the process of encoding the audio signal in the frequency domain is more stable and more accurate, the direct audio interfaces of two devices are not mandatory, only analog audio transmission can be supported, the audio channel is multiplexed to be used as a transmission method for encoding and decoding the digital signal, the data exchange between the first device and the second device can be realized in real time, and the transmission of the digital signal is realized under the condition that a new data channel is not needed.
⑵ According to the frequency characteristics of the audio signals, the digital signals to be transmitted are expressed as the frequency spectrum information of the audio signals according to the set rules, so that the accuracy of carrying information by the audio signals is improved, and the speed of data interaction between the first equipment and the second equipment is also improved. The flexible spectrum coding mode can be selected in a self-defining mode according to the audio processing capacity of the first equipment and the second equipment, and greater flexibility is provided for scheme implementation.
⑶ The invention has complete message structure of data protocol to be sent, including message header, message body and message tail, and can ensure accuracy of first equipment and second equipment.
⑷ The invention can support the real-time information transmission between the first device and the second device, but also support the asynchronous transmission of both sides.
Drawings
FIG. 1 is a diagram of a transmission scheme of the present invention;
FIG. 2 is a waveform diagram of a message 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 the device message tail frame of FIG. 3;
fig. 5 is a block diagram of an audio data transmission method according to a second example of the present invention;
FIG. 6 is a waveform diagram of the device message frame 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 the mobile phone message frame of fig. 7.
Detailed Description
The invention will be further described in detail below with reference to the accompanying drawings:
Referring to fig. 5 and 6, the transmission system using audio as digital signal codec includes a first audio processing device, a second audio processing device, and an analog audio signal connection device, where audio signals are transmitted between the first audio processing device and the second audio processing device through the analog audio signal connection device;
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, and is used for converting a digital signal into an analog audio signal and outputting the analog audio signal 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; for receiving an analog audio signal from an analog audio signal connector and converting the analog signal to a digital signal supporting a fast fourier transform operation;
the analog audio signal connection device is a standard 3.5mm connector, or other form of analog interface. And duplex mode transmission is carried out between the first audio processing equipment and the second audio processing equipment through an analog audio signal connecting device.
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 within the width range of 125 Hz-20000 Hz in the frequency domain; the frequency-domain intra-coding is confirmed to be 300Hz at a start frequency and 200Hz at a step frequency.
Referring to fig. 1 to 4, the transmission system for different frequency audio data streams includes a first device for generating different frequency audio data streams, a second device for parsing different frequency audio data streams, and an audio transmission device, wherein audio signals are transmitted between the first device and the second device through the audio transmission device; the audio transmission equipment selects: AUDIO connector TRS, BLUETOOTH AUDIO, USB AUDIO.
Referring to fig. 3A, the first device converts data to be transmitted into binary codes and 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 and operation, finds out the binary data of the corresponding relationship, and converts the binary data into the received data; the parsing 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 codec includes a first audio processing device, a second audio processing device, and an analog audio signal connection device, where audio data between different systems is transmitted between the first audio processing device and the second audio processing device through the audio transmission device; the audio characteristics of the first audio processing device and the second audio processing device confirm the width range of 125 Hz-20000 Hz of the transmitted audio in the frequency domain; confirming that the frequency domain internal coding form is 300Hz with the initial frequency and 200Hz with the step frequency;
the first audio processing device comprises an audio generation module, a frequency analysis module, an audio transmission module and an audio data receiving module which are all of different frequencies; for converting the digital signal into an analog audio signal and outputting to an analog audio signal connection device;
The second audio processing device comprises an audio data receiving module, an audio transmitting module, a frequency analyzing module and a different-frequency audio generating module; for receiving analog audio signals from an analog audio signal connector, converting the analog signals to digital signals supporting fast fourier transform operations.
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 digital signal codec includes the following steps:
⑴ Generating a group of data by software built in the first audio processing equipment, wherein the data are superposition of signals with different frequencies in a frequency domain, and performing 0/1 calibration on the data corresponding to the frequencies according to the attribute of the different frequencies;
⑵ The system determines a stepping value according to the data processing precision capability of the receiving and transmitting end, converts a digital signal into an analog signal and transmits the analog signal to analog audio signal connecting equipment;
⑶ After receiving the analog signal from the analog audio signal connection device, the second audio processing device converts the analog signal into a digital signal, analyzes the data, judges the signal representation of the received data in a frequency domain according to a Fourier transform result, determines the frequency corresponding to the data valid bit according to the initial frequency and the frequency step value of the transmitting end, and then acquires the amplitude information of the frequency point;
⑷ If the amplitude information is larger than a set threshold value, marking the bit as 1, and if the amplitude information is smaller than the set threshold value, marking the bit as 0, and obtaining binary digits of a set bit number according to analysis of a frame data frequency domain signal, wherein the binary digits are regarded as successful reception;
Wherein: the calibrating of step ⑴ specifically includes: if 200hz is a step, 300hz is a starting frequency, the frequency corresponding to every other step is marked as a data bit, the frequency amplitude of the frequency is set, the amplitude is zero if the bit is 0, the amplitude is full if the bit is 1, and the like; the total bit width is determined according to the frequency reception range of the master-slave device.
Referring to fig. 1 to 8, the method for transmitting the digital audio signal codec includes the following steps:
⑴ The first device converts data to be transmitted into binary groups, wherein the data to be transmitted adopts floating point numbers or real numbers, 8-bit binary representation, 16-bit binary representation and 32-bit binary representation are selected according to the data range, and if the data to be transmitted is '6', the 8-bit binary representation is 00000110; after the first device confirms the binary representation mode, a binary number group of data to be transmitted is obtained through calculation, and the first device generates a frame of audio data as a message header frame; the audio data generation rule of the message header frame is to superimpose sinusoidal signals of 1000Hz, 3000Hz, 5000Hz and 7000Hz, and the result of the fast Fourier change of the frame data is shown in figure 2;
⑵ The first device generates a frame of audio data as a message tail frame; the audio data generation rule of the message tail frame is to superimpose sinusoidal signals of 2000Hz, 4000Hz, 6000Hz and 8000Hz, and the result of the fast Fourier change of the frame data is shown in figure 4;
⑶ 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 used as an initial frequency, 400Hz is used as a step value, namely 500Hz represents the lowest bit of the eight-bit binary system, 3300Hz represents the highest bit, sine signals of corresponding frequencies of bits corresponding to '1' are overlapped according to the binary number group obtained in the step ⑴, namely the audio of the message frame is that the sine signals of 900Hz and 1300Hz are overlapped, and the result of fast fourier change of the frame data is shown in fig. 6;
⑷ The first equipment seamlessly splices three frames of data into a section of audio according to a message header frame, a message frame and a message tail frame, and transmits the section of audio to the second equipment at one time;
⑸ The second equipment analyzes the audio data received in real time according to frames, analyzes the consistency of the frame length and the frame length of the message data generated by the first equipment, and performs fast Fourier transform on each received frame of data to obtain the frequency domain internal representation of the frame of audio data;
⑹ The fast Fourier transform result of the current frame received by the second device shows that the amplitude of 1000Hz, 3000Hz, 5000Hz and 7000Hz is large, 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, when one fifth of the highest amplitude point H is taken as the T value, the message head frame is received, the next frame is marked as the message frame, the second device obtains the message frame, fast Fourier transform is carried out on the current frame data, the frequency domain information of the current frame is obtained, the frequency of the point with large amplitude is extracted, the corresponding binary code is found according to the initial frequency and the stepping value of the first device, and the result of FIG. 6 corresponds to the binary number group 00000110;
⑺ The second device converts the binary number set obtained in the step ⑹ into decimal real numbers, namely '6', and the second device performs fast Fourier transform on the next frame of the message frame to obtain the frequency domain representation of the audio data of the frame; the second equipment receives the fast Fourier transform result of the current frame, and displays that the amplitude values of 2000Hz, 4000Hz, 6000Hz and 8000Hz are large, the amplitude values of other frequencies are smaller than T values, the range of the T values is calculated according to the fast Fourier transform result, when one fifth of the highest amplitude point H is taken as the T value, the second equipment indicates that a message tail frame is received, and the end of the transmission is marked;
⑻ Confirming the width range of the transmitted audio in the frequency domain from 125Hz to 20000Hz according to the audio characteristics of the first equipment and the second equipment, wherein the confirmation frequency domain coding form is that the initial frequency is 300Hz and the stepping frequency is 200Hz, the second equipment inputs a group of data to be transmitted, the data is converted into binary numbers through software, and the data to be transmitted are 3, 4,5 and 6, and the binary numbers are 00000011, 00000100, 00000101 and 00000110;
⑼ The second device generates a frame of audio data signal frame according to the binary number value, the frame of audio data has signals in frequency bands of 500Hz, 700Hz, 1900Hz, 2300Hz, 3900Hz, 5100Hz and 5300Hz in the frequency domain, the result of the fast Fourier change of the frame of data is shown as figure 8, the other frequency bands have no signals, the signal frame can be expanded into continuous frames, and each frame represents four decimal numbers;
⑽ The second equipment generates a signal header frame, and the frequency domain representation of the audio data of the frame is that signals exist in frequency bands of 1000Hz, 5000Hz and 7000Hz, and no signals exist in other frequency bands;
⑾ The second equipment generates a signal tail frame, the frequency domain representation of the audio data of the frame is that signals exist in frequency bands of 3000Hz, 6000Hz and 9000Hz, and no signals exist in other frequency bands;
⑿ The second device splices the signal head frame, the signal frame and the signal tail frame into continuous 3-frame data, converts the data into analog audio through D/A conversion of the second device and sends the analog audio to the first device;
⒀ The first equipment receives analog data through a 3.5mm interface, converts the analog data into digital signals through A/D, reads the data of each frame in real time, performs fast Fourier transform on the data of each frame, and confirms that the frame is a signal header frame and marks the next frame as a signal frame when recognizing that signals exist in frequency bands with frame characteristics of 3000Hz, 6000Hz and 9000Hz and no signals exist in other frequency bands;
⒁ The first device performs fast Fourier transform on data of a signal frame, reads signals of all frequencies according to 300Hz as a starting frequency and steps to 200Hz, marks bits with signals as 1, marks bits without signals as 0, and reads 32-bit binary numbers;
⒂ The first device converts the read 32-bit binary number into a decimal number according to each eight bits to obtain four digits of 3, 4, 5 and 6;
⒃ The first equipment reads the next frame of the signal frame to carry out fast Fourier transform, when the frame characteristics are that signals exist in frequency bands of 3000Hz, 6000Hz and 9000Hz, and if no signal exists in other frequency bands, the current frame is marked as a signal tail frame, the signal frame is not continuously received, and whether a signal head frame is transmitted or not is continuously detected;
⒄ If the characteristics of the tail frame are not met, the data transmission is not completed, the frame is still a signal frame, and the digital signal is acquired according to the reading mode of the signal frame.
Wherein: the starting frequency, the step value, and the ending frequency in step ⑶ can be customized; and selecting proper stepping values according to the length of the binary number group and the audio sampling rate, and selecting a starting frequency and a terminating frequency according to the audio sampling rate and the frequency bandwidth of the transceiver.
The foregoing description is only of the preferred embodiments of the invention, and all changes and modifications that come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

Claims (2)

1. A transmission method for encoding and decoding a digital audio signal, comprising the steps of:
⑴ The method comprises the steps that first equipment converts data to be transmitted into binary groups, floating point numbers or real numbers are selected for the data to be transmitted, and 8-bit binary representation, 16-bit binary representation and 32-bit binary representation are selected according to a data range; after the first device confirms the binary representation mode, a binary number group of data to be transmitted is obtained through calculation, and the first device generates a frame of audio data as a message header frame; the audio data generation rule of the message header frame is to superimpose sinusoidal signals of 1000Hz, 3000Hz, 5000Hz and 7000 Hz;
⑵ The first device generates a frame of audio data as a message tail frame; the audio data generation rule of the message tail frame is to superimpose sinusoidal signals of 2000Hz, 4000Hz, 6000Hz and 8000 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 used as an initial frequency, 400Hz is used as a stepping value, namely 500Hz represents the lowest bit of the eight-bit binary system, 3300Hz represents the highest bit, and sine signals with the corresponding frequencies of the bits corresponding to '1' are overlapped according to the binary system obtained in the step ⑴, namely the audio of the message frame is obtained by overlapping the sine signals with 900Hz and 1300 Hz;
⑷ The first equipment seamlessly splices three frames of data into a section of audio according to a message header frame, a message frame and a message tail frame, and transmits the audio to the second equipment at one time;
⑸ The second equipment analyzes the audio data received in real time according to frames, analyzes whether the frame length is consistent with the frame length of the message data generated by the first equipment, and performs fast Fourier transform on each received frame of data to obtain the frequency domain internal representation of the frame of audio data;
⑹ The fast Fourier transform result of the current frame received by the second equipment shows that the amplitude of 1000Hz, 3000Hz, 5000Hz and 7000Hz is large, 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 amplitude point H is taken as the T value, the received message header frame is indicated, the next frame is marked as the message frame, the second equipment obtains the message frame, fast Fourier transform is carried out on the current frame data, the frequency domain information of the current frame is obtained, the frequency of the point with large amplitude is extracted, and the corresponding binary code is found according to the initial frequency and the stepping value of the first equipment;
⑺ The second device converts the binary number set obtained in the step ⑹ into decimal real numbers, namely '6', and the second device performs fast Fourier transform on the next frame of the message frame to obtain the frequency domain representation of the audio data of the frame; the second equipment receives the fast Fourier transform result of the current frame, and displays that the amplitude values of 2000Hz, 4000Hz, 6000Hz and 8000Hz are large, the amplitude values of other frequencies are smaller than T values, the range of the T values is calculated according to the fast Fourier transform result, when one fifth of the highest amplitude point H is taken as the T value, the second equipment indicates that a message tail frame is received, and the end of the transmission is marked;
⑻ Confirming the width range of the transmitted audio in the frequency domain from 125Hz to 20000Hz according to the audio characteristics of the first equipment and the second equipment, confirming the encoding form in the frequency domain to be 300Hz with the initial frequency and 200Hz with the stepping frequency, inputting a group of data to be transmitted by the second equipment, and converting the data into binary numbers through software; the data to be transmitted are 3, 4, 5 and 6, and are 00000011, 00000100, 00000101 and 00000110 after being converted into binary system;
⑼ The second equipment generates a frame of audio data signal frame according to the binary number value, the audio data of the frame has signals in frequency bands of 500Hz, 700Hz, 1900Hz, 2300Hz, 3900Hz, 5100Hz and 5300Hz in the frequency domain, the other frequency bands have no signals, the signal frame can be expanded into continuous frames, and each frame represents four decimal numbers;
⑽ The second equipment generates a signal header frame, and the frequency domain representation of the audio data of the frame is that signals exist in frequency bands of 1000Hz, 5000Hz and 7000Hz, and no signals exist in other frequency bands;
⑾ The second equipment generates a signal tail frame, the frequency domain representation of the audio data of the frame is that signals exist in frequency bands of 3000Hz, 6000Hz and 9000Hz, and no signals exist in other frequency bands;
⑿ The second device splices the signal head frame, the signal frame and the signal tail frame into continuous 3-frame data, converts the data into analog audio through D/A conversion of the second device and sends the analog audio to the first device;
⒀ The first equipment receives analog data through a 3.5mm interface, converts the analog data into digital signals through A/D, reads the data of each frame in real time, performs fast Fourier transform on the data of each frame, and confirms that the frame is a signal header frame and marks the next frame as a signal frame when recognizing that signals exist in frequency bands with frame characteristics of 1000Hz, 5000Hz and 7000Hz and signals exist in other frequency bands;
⒁ The first equipment performs fast Fourier transform on data of a signal frame, reads signals of all frequencies according to 300Hz as a starting frequency and steps to 200Hz, marks bits with signals as 1, marks bits without signals as 0, and reads 32-bit binary numbers;
⒂ The first device converts the read 32-bit binary number into a decimal number according to each eight bits to obtain four digits of 3,4, 5 and 6;
⒃ The first equipment reads the next frame of the signal frame to carry out fast Fourier transform, when the frame characteristics are that signals exist in frequency bands of 3000Hz, 6000Hz and 9000Hz, and if no signal exists in other frequency bands, the current frame is marked as a signal tail frame, the signal frame is not continuously received, and whether a signal head frame is transmitted or not is continuously detected;
⒄ If the characteristics of the tail frame are not met, the data transmission is not completed, the frame is still a signal frame, and the digital signal is acquired according to the reading mode of the signal frame.
2. The method according to claim 1, wherein the starting frequency, the step value, and the ending frequency in step ⑶ are all customizable; and selecting proper stepping values according to the length of the binary number group and the audio sampling rate, and selecting a starting frequency and a terminating frequency according to the audio sampling rate and the frequency bandwidth of the transceiver.
CN202010161907.1A 2020-03-10 2020-03-10 Using audio as a transmission method for digital signal encoding and decoding Active CN111192596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010161907.1A CN111192596B (en) 2020-03-10 2020-03-10 Using audio as a transmission method for digital signal encoding and decoding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010161907.1A CN111192596B (en) 2020-03-10 2020-03-10 Using audio as a transmission method for digital signal encoding and decoding

Publications (2)

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

Family

ID=70710401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010161907.1A Active CN111192596B (en) 2020-03-10 2020-03-10 Using audio as a transmission method for digital signal encoding and decoding

Country Status (1)

Country Link
CN (1) CN111192596B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938215B (en) * 2021-09-10 2023-10-03 佳格科技(浙江)股份有限公司 Multipath duplex acoustic wave communication system
CN117459510B (en) * 2023-11-28 2025-01-10 深圳市博陆科电子科技有限公司 Method and system for reducing transmission delay of Bluetooth headset
CN118509070B (en) * 2024-07-19 2024-09-20 北京金风慧能技术有限公司 Cross-equipment data transmission method, equipment, system and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102832968A (en) * 2012-07-27 2012-12-19 武汉大学 Method for performing communication between mobile phone and equipment by using audio interface
CN103312419A (en) * 2012-03-07 2013-09-18 苏州汉朗光电有限公司 Method and system for data communication based on audio or ultrasonic
CN212161282U (en) * 2020-03-10 2020-12-15 香港科技大学深圳研究院 Audio is a transmission system of digital signal codec or audio data stream of different frequencies

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IL154745A0 (en) * 2003-03-04 2003-10-31 Medit Medical Interactive Tech Method and system for acoustic communication
CN102739320B (en) * 2012-06-16 2014-11-05 天地融科技股份有限公司 Method, system and device for transmitting audio data and electronic signature tool
CN103368614A (en) * 2013-06-21 2013-10-23 深圳市力同亚太科技有限公司 Audio transmitting method, audio receiving method, transmitting device and receiving device
US10181910B2 (en) * 2014-01-27 2019-01-15 Ubona Technologies Pvt. Ltd Data transfer using mobile devices
CN105610753A (en) * 2014-10-29 2016-05-25 江苏绿扬电子仪器集团有限公司 DDS-based FM modulation system
CN105281843B (en) * 2015-09-10 2018-08-24 移康智能科技(上海)股份有限公司 The sending, receiving method of 2 D code information and transmission, reception device
CN107547142B (en) * 2017-08-31 2022-01-14 努比亚技术有限公司 Ultrasonic wave-based communication method, device and computer-readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312419A (en) * 2012-03-07 2013-09-18 苏州汉朗光电有限公司 Method and system for data communication based on audio or ultrasonic
CN102832968A (en) * 2012-07-27 2012-12-19 武汉大学 Method for performing communication between mobile phone and equipment by using audio interface
CN212161282U (en) * 2020-03-10 2020-12-15 香港科技大学深圳研究院 Audio is a transmission system of digital signal codec or audio data stream of different frequencies

Also Published As

Publication number Publication date
CN111192596A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
CN111192596B (en) Using audio as a transmission method for digital signal encoding and decoding
CN104717601B (en) Wireless monitoring equipment logs in the method and system of wireless network
CN108226598B (en) Oscilloscope signal decoding method and device and oscilloscope
CN102832968B (en) Method for performing communication between mobile phone and equipment by using audio interface
CN101299632A (en) Synchronization and segment type detection method for data transmission via an audio communication system
CN103077723A (en) Audio transmission system
CN111865952A (en) Data processing method, data processing device, storage medium and electronic equipment
EP1331776A4 (en) DIGITAL DATA TRANSMITTER, METHOD FOR ENCODING A TRANSMISSION LINE, AND METHOD FOR DECODING
CN105471517A (en) Short-distance information exchange method and system, information sending device, information receiving device and terminal
CN1514610A (en) Wireless sounding apparatus and method for obtaining voice frequency in the same
CN212161282U (en) Audio is a transmission system of digital signal codec or audio data stream of different frequencies
EP2152012A1 (en) Wireless communication system and personal digital assistant
CN105024764A (en) Audio-format-based file transmission method and system
EP1624642A3 (en) Apparatus, method and system for providing information in accordance with one of a plurality of protocols
CN106656353B (en) Information transmission method and device applied to intelligent robot
HUP0000485A2 (en) Method and apparatus for mapping between cellular bit streams and wireline waveforms
KR101014629B1 (en) Health Care Server and Health Information Notification Method
CN117539818B (en) Interface based on PHY model, chip integrating interface and chip simulation system
CN105933073B (en) A kind of ultrasonic wave coding/decoding system and computational methods based on wireless acoustic signals
JP2016082468A (en) Optical transmission system
CN113938240A (en) Method and device for outputting multiple IRIG time codes
CN105657592A (en) Audio communication method and device
CN213780194U (en) A current sensor for transmitting test signal through optical fiber
CN111917504B (en) Double-line synchronous high-speed transmission system for transmitting multi-path data
CN117459510B (en) Method and system for reducing transmission delay of Bluetooth headset

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