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

Through frequency encoding and fast Fourier transform of audio signals, the compatibility problem of analog and digital signals transmission between different audio devices is solved, and flexible and accurate data transmission is achieved, which is suitable for communication between multiple audio devices.

CN111192596BActive Publication Date: 2024-11-22HKUST SHENZHEN RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010161907.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-10
Publication Date
2024-11-22
Estimated Expiration
2040-03-10

AI Technical Summary

Technical Problem

The prior art cannot simultaneously transmit analog data and custom digital signals between different audio devices, and the data transmission flexibility is poor, and there is a lack of communication methods compatible with different mobile terminals.

Method used

By using the frequency information of the audio signal for encoding, the analog audio signal connection device is used to realize the transmission of digital signals, and the data is decoded using fast Fourier transform and frequency step values ​​to ensure the accuracy, real-time and reliability of data transmission. Provides a variety of data transmission methods without the need for adding a new communication bus.

Benefits of technology

Accurate, fast and flexible data transmission between different audio processing devices is achieved, compatibility issues are solved, and real-time data exchange is realized without adding data paths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111192596B_ABST
    Figure CN111192596B_ABST
Patent Text Reader

Abstract

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.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the transmission field of analog and digital communication interface multiplexing between different audio devices, and in particular to a transmission system and a transmission method using audio as digital signal encoding and decoding. Background Art

[0002] The current technical solution for analog data transmission between different audio processing devices can only transmit audio analog data, and cannot simultaneously transmit customized digital signals.

[0003] The current technical solution generates audio clips of different frequencies at the sending end and splices them into an audio data stream. After receiving the audio stream, the receiving end parses it according to the frequency information of the audio stream, where the start time and / or end time of the time period of the waveform of each frequency is pre-agreed relative to the pre-agreed reference time. The flexibility of data transmission is very poor.

[0004] Currently, there are only a few means of audio communication, and therefore, there is no suitable way to be compatible with communications between different mobile terminals. Summary of the invention

[0005] The first technical problem solved by the present invention is to provide a method for expanding the audio transmission channel function between devices, realizing the transmission of digital signals without adding a new transmission method, using the characteristic of audio carrying frequency information to encode audio data in the frequency domain, and ensuring accurate, real-time, reliable and flexible data transmission by constraining the encoding and decoding protocols of the transmitting and receiving ends, and using audio as a transmission system for digital signal encoding and decoding. The second technical problem solved by the present invention is to provide a method for using audio as a digital signal encoding and decoding to provide more accurate and fast data transmission methods between different audio processing devices without adding a new communication bus. The third technical problem solved by the present invention is to provide a set of customized communication protocols that solve the compatibility problem of communication between different devices and use audio as a transmission method for digital signal encoding and decoding.

[0006] The first technical solution of the present invention is the transmission system using audio as digital signal codec, which is special in that it includes 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;

[0007] 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 connection device;

[0008] The second audio processing device receives an analog audio signal from the analog audio signal connector and converts the analog signal into a digital signal supporting a fast Fourier transform operation;

[0009] The analog audio signal connection device is a standard 3.5mm connector or other forms of analog interfaces.

[0010] Preferably: the first audio processing device comprises a different frequency waveform generating module, an audio data parsing 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 parsing module, and a different frequency waveform generating module; the first audio processing device and the second audio processing device are connected via an analog audio signal device for duplex mode transmission; the audio characteristics of the first audio processing device and the second audio processing device confirm that the transmitted audio is in a frequency domain width range of 125Hz to 20000Hz; and confirm that the encoding form in the frequency domain is a starting frequency of 300Hz and a step frequency of 200Hz.

[0011] Preferably: 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 a different frequency audio generating module; the first audio processing device and the second audio processing device transmit audio data between different systems via 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 frequency domain width range of 125Hz to 20000Hz; and confirm that the encoding form in the frequency domain is with a starting frequency of 300Hz and a step frequency of 200Hz.

[0012] Preferably: 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 male connector.

[0013] The second technical solution of the present invention is the transmission system of the audio data streams with different frequencies, which is special in that it includes a first device for generating audio data streams with different frequencies, a second device for parsing audio data streams with different frequencies, and an audio transmission device, wherein the audio signal is transmitted between the first device and the second device through the audio transmission device;

[0014] The first device converts the data to be transmitted into binary code and generates waveform data of different frequencies, which are assembled into an audio data stream;

[0015] The second device receives the audio data stream, obtains the data field through analog-to-digital conversion, parses the frequency information of the data field through analysis and calculation, finds the corresponding binary data, and converts it into the received data;

[0016] The audio transmission device is selected from: audio connector TRS, Bluetooth audio BLUETOOTH AUDIO, USB AUDIO.

[0017] Preferably, the waveform data of different frequencies generated in the first device further includes: a basic frequency value and a frequency step value; the frequency information of the parsed data field in the second device further includes: a basic frequency value and a frequency step value.

[0018] The third technical solution of the present invention is the transmission method using audio as digital signal codec, which is special in that it includes the following steps:

[0019] (1) The software built into the first audio processing device generates a set of data, which is the superposition of signals of different frequencies in the frequency domain, and calibrates the data corresponding to the frequencies as 0 / 1 according to the properties of the different frequencies;

[0020] ⑵The system determines the step value according to the data processing accuracy capability of the transmitting and receiving ends, converts the digital signal into an analog signal and sends it to the analog audio signal connection device;

[0021] ⑶ 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, determines the signal performance of the received data in the frequency domain according to the Fourier transform result, determines the frequency corresponding to the valid bit of the data according to the starting frequency and frequency step value of the transmitting end, and then obtains the amplitude information of the frequency point;

[0022] (4) If the amplitude information is greater than the set threshold, the bit is marked as 1, and if it is less than the threshold, it is marked as 0. According to the analysis of the frequency domain signal of a frame of data, obtaining a binary number of the set number of bits is considered to be a successful reception.

[0023] Preferably, the calibration described in step (1) specifically includes: taking X as a step, X ranges from 100 to 1000 Hz, preferably 200 Hz as a step; Y is the starting frequency, Y ranges from 100 to 1000 Hz, preferably 300 Hz as the starting frequency, and the frequency corresponding to every other step is calibrated as a data bit, and the frequency amplitude of the frequency is set. If the bit is 0, the amplitude is zero, if the bit is 1, the amplitude is full amplitude, and so on; the total bit width is determined according to the frequency receiving range of the master and slave devices.

[0024] The fourth technical solution of the present invention is the transmission method of the digital audio signal encoding and decoding, which is special in that it includes the following steps:

[0025] (1) The first device converts the data to be sent into a binary array, wherein the data to be sent is a floating point number or a real number, and an 8-bit binary representation, a 16-bit binary representation, or a 32-bit binary representation is selected according to the data range; after the first device confirms the binary representation mode, the binary array of the data to be sent is calculated, 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;

[0026] (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 sine signals of 2000 Hz, 4000 Hz, 6000 Hz, and 8000 Hz;

[0027] ⑶ The first device generates a frame of audio data as a message frame; the audio data generation rule of the message frame is to use 500 Hz as the starting frequency and 400 Hz as the step value, that is, 500 Hz represents the lowest bit of the eight-bit binary, and 3300 Hz represents the highest bit. According to the binary array obtained in step (1), the sinusoidal signals of the corresponding frequencies of the bits corresponding to '1' are superimposed, that is, the audio of the message frame is the superposition of sinusoidal signals of 900 Hz and 1300 Hz;

[0028] (4) The first device seamlessly splices the three frames of data into an audio segment according to the message header frame, the message frame, and the message tail frame, and transmits the audio segment to the second device at one time;

[0029] (5) The second device analyzes the audio data received in real time by frame, and the analysis frame length is consistent with the message data frame length generated by the first device. The second device performs a fast Fourier transform on each frame of data received to obtain the frequency domain representation of the frame of audio data;

[0030] (6) When the fast Fourier transform result of the current frame received by the second device shows that the amplitudes of 1000Hz, 3000Hz, 5000Hz, and 7000Hz are large, and the amplitudes of other frequencies are less than the T value, the range of the T value is calculated according to the fast Fourier transform result, and one-fifth of the highest amplitude point H is taken as the T value, indicating that the message header frame is received, and the next frame is marked as a message frame. The second device obtains the message frame, performs a fast Fourier transform on the current frame data, obtains the frequency domain information of the current frame, extracts the frequency of the point with a large amplitude, and finds its corresponding binary code according to the starting frequency and step value of the first device;

[0031] ⑺The second device converts the binary array obtained in step ⑹ into a decimal real number, which is '6'. The second device performs a fast Fourier transform on the next frame of the message frame to obtain the frequency domain representation of the audio data of this frame. The fast Fourier transform result of the current frame received by the second device shows that the amplitudes of 2000Hz, 4000Hz, 6000Hz, and 8000Hz are large, and the amplitudes of other frequencies are less than the T value. The range of the T value is calculated based on the fast Fourier transform result. When one-fifth of the highest amplitude point H is taken as the T value, it indicates that the message tail frame has been received, marking the end of this transmission.

[0032] (8) The second device inputs a set of data to be transmitted and converts the data into binary numbers through software;

[0033] (9) The second device generates a frame of audio data signal frame according to the value of the binary number, and the performance of this frame of audio data in the frequency domain is that there are signals in the frequency bands of 500 Hz, 700 Hz, 1900 Hz, 2300 Hz, 3900 Hz, 5100 Hz, and 5300 Hz, and there are no signals in other frequency bands;

[0034] ⑽The second device generates a signal header frame, and the frequency domain performance of the audio data in this frame is that there are signals in the 1000Hz, 5000Hz, and 7000Hz frequency bands, and no signals in other frequency bands;

[0035] ⑾The second device generates a signal tail frame. The frequency domain performance of the audio data in this frame is that there are signals in the 3000Hz, 6000Hz, and 9000Hz frequency bands, and no signals in other frequency bands;

[0036] ⑿ The second device splices the signal header frame, signal frame, and signal tail frame into three consecutive frames of data, converts the data into analog audio through the D\A conversion of the second device, and sends it to the first device;

[0037] ⒀After receiving the analog data through the 3.5mm interface, the first device converts it into a digital signal through A\D, reads the data of each frame in real time, performs fast Fourier transform on the data of each frame, and when it is identified that the frame characteristics are that there are signals in the 3000Hz, 6000Hz, and 9000Hz frequency bands, and there are no signals in other frequency bands, it confirms that the frame is a signal header frame and marks the next frame as a signal frame;

[0038] ⒁ The first device performs fast Fourier transform on the data of the signal frame, with XHz as the starting frequency, X ranging from 100 to 1000Hz, preferably 300Hz as the starting frequency, YHz as the step to read the signal of each frequency, the Y range is 100 to 1000Hz, preferably the step is 200Hz to read the signal of each frequency, mark the bit with signal as 1, and mark the bit without signal as 0, until ZHz, the Z range is 1000 to 192000Hz, preferably 9600Hz, and read a 32-bit binary number;

[0039] ⒂The first device converts the read 32-bit binary number into a decimal number in eight-bit increments to obtain four numbers: 3, 4, 5, and 6;

[0040] ⒃The first device reads the next frame of the signal frame and performs fast Fourier transform. If the frame characteristic shows that there are signals in the 3000Hz, 6000Hz, and 9000Hz frequency bands and no signals in other frequency bands, the current frame is marked as the signal tail frame, and the signal frame is not received any more, but the detection is continued to see if there is a signal header frame coming in.

[0041] ⒄If it does not meet the characteristics of the tail frame, it means that there is still data to be transmitted. This frame is still a signal frame, and the digital signal is obtained according to the signal frame reading method.

[0042] As a preference: the starting frequency, step value and end frequency in step (3) can all be customized; select a suitable step value according to the length of the binary array and the audio sampling rate, and select the starting frequency and end frequency according to the audio sampling rate and bandwidth of the transceiver device.

[0043] Compared with the prior art, the present invention has the following beneficial effects:

[0044] ⑴ The present invention can carry data by obtaining the frequency domain information of audio data through digital calculation according to the ability of audio signals to carry frequency information. It is more stable and more accurate. The process of encoding the audio signal in the frequency domain is carried out in real time. There is no mandatory requirement for the direct audio interface between the two devices. It only supports analog audio transmission. The audio channel is multiplexed as a transmission method for digital signal encoding and decoding. It can realize real-time data exchange between the first device and the second device, and realize the transmission of digital signals without the need for adding new data paths.

[0045] (2) According to the frequency characteristics of the audio signal, the present invention expresses the digital signal to be transmitted as the spectrum information of the audio signal according to the set rules, thereby improving the accuracy of the information carried by the audio signal and also improving the speed of data interaction between the first device and the second device. The flexible spectrum encoding method of the present invention can be customized according to the audio processing capabilities of the first device and the second device, providing greater flexibility for the implementation of the solution.

[0046] ⑶ The present invention has a complete message structure for the data protocol to be sent, including a message header, a message body, and a message tail, which can ensure the accuracy of the first device and the second device.

[0047] (4) The present invention can support real-time information transmission between the first device and the second device, but also supports asynchronous transmission between the two parties. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1It is a transmission mode framework diagram of the present invention;

[0049] Figure 2 yes Figure 1 Waveform diagram of the device message header frame;

[0050] Figure 3A is a block diagram of an audio data transmission system according to a first embodiment of the present invention;

[0051] Figure 3B is a block diagram of an audio data transmission system according to a first embodiment of the present invention;

[0052] Figure 3C is a block diagram of an audio data transmission system according to a first embodiment of the present invention;

[0053] Figure 4 It is a waveform diagram of the tail frame of the device message in Figure 3;

[0054] Figure 5 is a block diagram of an audio data transmission method according to a second embodiment of the present invention;

[0055] Figure 6 yes Figure 5 Waveform diagram of device message frame in the figure;

[0056] Figure 7 is a block diagram of audio data transmission between different systems in a third embodiment of the present invention;

[0057] Figure 8 yes Figure 7 Waveform diagram of mobile phone message frame. DETAILED DESCRIPTION

[0058] The present invention will be further described below in conjunction with the accompanying drawings:

[0059] See also Figure 5 , Figure 6 As shown, 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 connecting device, wherein the first audio processing device and the second audio processing device transmit audio signals via the analog audio signal connecting device;

[0060] The first audio processing device includes a different frequency waveform generation module, an audio data analysis module, an audio transmission module, and an audio reception module, which are used to convert digital signals into analog audio signals and output them to the analog audio signal connection device;

[0061] The second audio processing device includes an audio receiving module, an audio transmitting module, an audio data parsing module, and a different frequency waveform generating module; it is used to receive an analog audio signal from an analog audio signal connector and convert the analog signal into a digital signal that supports a fast Fourier transform operation;

[0062] The analog audio signal connection device is a standard 3.5mm connector or other forms of analog interfaces. The first audio processing device and the second audio processing device perform duplex mode transmission via the analog audio signal connection device.

[0063] 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 connector.

[0064] The audio characteristics of the first audio processing device and the second audio processing device confirm that the transmitted audio has a width range of 125 Hz to 20000 Hz in the frequency domain; and confirm that the encoding format in the frequency domain is with a starting frequency of 300 Hz and a step frequency of 200 Hz.

[0065] See also Figures 1 to 4 As shown, 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 parsing audio data streams with different frequencies, and an audio transmission device. The audio signal is transmitted between the first device and the second device through the audio transmission device; the audio transmission device is selected from: audio connector TRS, Bluetooth audio BLUETOOTH AUDIO, USB AUDIO.

[0066] See also Figure 3A As shown, the first device converts the data to be transmitted into binary code and generates waveform data of different frequencies, which are assembled into an audio data stream; wherein the waveform data of different frequencies further includes: a basic frequency value and a frequency step value;

[0067] See also Figure 3B As shown, the second device receives the audio data stream, obtains the data field through analog-to-digital conversion, parses the data field frequency information through analysis and operation, finds the corresponding binary data, and converts it into the received data; the parsed data field frequency information further includes: a basic frequency value and a frequency step value.

[0068] See also Figure 7 , Figure 8 As shown, 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. 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 has a width range of 125Hz to 20000Hz in the frequency domain; confirm that the encoding form in the frequency domain is with a starting frequency of 300Hz and a step frequency of 200Hz;

[0069] The first audio processing device includes a different frequency audio generation module, a frequency analysis module, an audio transmission module, and an audio data receiving module; and is used to convert a digital signal into an analog audio signal and output it to an analog audio signal connection device;

[0070] The second audio processing device includes an audio data receiving module, an audio transmitting module, a frequency analysis module, and a different frequency audio generating module; it is used to receive an analog audio signal from an analog audio signal connector and convert the analog signal into a digital signal that supports fast Fourier transform operations.

[0071] In this embodiment, the first audio processing device is a smart phone / computer, and the second audio processing device is a single chip microcomputer.

[0072] See also Figures 1 to 4 As shown, the transmission method using audio as digital signal codec includes the following steps:

[0073] (1) The software built into the first audio processing device generates a set of data, which is the superposition of signals of different frequencies in the frequency domain, and calibrates the data corresponding to the frequencies as 0 / 1 according to the properties of the different frequencies;

[0074] ⑵The system determines the step value according to the data processing accuracy capability of the transmitting and receiving ends, converts the digital signal into an analog signal and sends it to the analog audio signal connection device;

[0075] ⑶ 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, determines the signal performance of the received data in the frequency domain according to the Fourier transform result, determines the frequency corresponding to the valid bit of the data according to the starting frequency and frequency step value of the transmitting end, and then obtains the amplitude information of the frequency point;

[0076] (4) If the amplitude information is greater than the set threshold, the bit is marked as 1, and if it is less than the threshold, it is marked as 0. According to the analysis of the frequency domain signal of a frame of data, the binary number of the set bit is obtained, which is regarded as a successful reception;

[0077] Among them: the calibration described in step (1) specifically includes: taking 200 Hz as the step and 300 Hz as the starting frequency, the frequency corresponding to every other step is calibrated as a data bit, and the frequency amplitude of the frequency is set. If the bit is 0, the amplitude is zero, if the bit is 1, the amplitude is full, and so on; the total bit width is determined according to the frequency receiving range of the master and slave devices.

[0078] See also Figures 1 to 8 As shown, the digital audio signal encoding and decoding transmission method comprises the following steps:

[0079] ⑴ The first device converts the data to be sent into a binary array. The data to be sent uses floating point numbers or real numbers. According to the data range, 8-bit binary representation, 16-bit binary representation, and 32-bit binary representation are selected. For example, if the data to be sent is '6', the 8-bit binary representation is selected as 00000110; After the first device confirms the binary representation, it calculates the binary array of the data to be sent, and generates a frame of audio data as a message header frame; The audio data generation rule of the message header frame is to superimpose sine signals of 1000Hz, 3000Hz, 5000Hz, and 7000Hz. The result of the fast Fourier transform of this frame data is as follows Figure 2 As shown;

[0080] (2) The first device generates a frame of audio data as the message tail frame; the audio data generation rule of the message tail frame is to superimpose sine signals of 2000Hz, 4000Hz, 6000Hz, and 8000Hz. The result of the fast Fourier transform of this frame data is as follows: Figure 4 As shown;

[0081] ⑶ The first device generates a frame of audio data as a message frame; the audio data generation rule of the message frame is to use 500Hz as the starting frequency and 400Hz as the step value, that is, 500Hz represents the lowest bit of the eight-bit binary, and 3300Hz represents the highest bit. According to the binary array obtained in step ⑴, the sinusoidal signals of the corresponding frequencies of the bits corresponding to '1' are superimposed, that is, the audio of the message frame is the superposition of the sinusoidal signals of 900Hz and 1300Hz. The result of the fast Fourier transform of this frame data is as follows: Figure 6 As shown;

[0082] (4) The first device seamlessly splices the three frames of data into an audio segment according to the message header frame, the message frame, and the message tail frame, and transmits the audio segment to the second device at one time;

[0083] (5) The second device analyzes the audio data received in real time by frame, analyzes the consistency of the frame length with the frame length of the message data generated by the first device, and performs a fast Fourier transform on each frame of data received to obtain the frequency domain representation of the frame of audio data;

[0084] (6) When the fast Fourier transform result of the current frame received by the second device shows that the amplitudes of 1000Hz, 3000Hz, 5000Hz, and 7000Hz are large, and the amplitudes of other frequencies are less 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, it indicates that the message header frame is received, and the next frame is marked as a message frame. The second device obtains the message frame, performs a fast Fourier transform on the current frame data, obtains the frequency domain information of the current frame, extracts the frequency of the point with a large amplitude, and finds its corresponding binary code according to the starting frequency and step value of the first device, such as Figure 6The result is that the corresponding binary array is 00000110;

[0085] ⑺The second device converts the binary array obtained in step ⑹ into a decimal real number, which is '6'. The second device performs a fast Fourier transform on the next frame of the message frame to obtain the frequency domain representation of the audio data of this frame. The fast Fourier transform result of the current frame received by the second device shows that the amplitudes of 2000Hz, 4000Hz, 6000Hz, and 8000Hz are large, and the amplitudes of other frequencies are less than the T value. The range of the T value is calculated based on the fast Fourier transform result. When one-fifth of the highest amplitude point H is taken as the T value, it indicates that the message tail frame has been received, marking the end of this transmission.

[0086] ⑻According to the audio characteristics of the first device and the second device, the width range of the transmitted audio in the frequency domain is 125Hz to 20000Hz, and the encoding form in the frequency domain is confirmed to be 300Hz with a starting frequency and a step frequency of 200Hz. The second device inputs a set of data to be transmitted, and converts the data into binary numbers through software. The data to be transmitted is 3, 4, 5, and 6, which are converted into binary numbers as 00000011, 00000100, 00000101, and 00000110;

[0087] ⑼The second device generates a frame of audio data signal frame according to the value of the binary number. The performance of this frame of audio data in the frequency domain is that there are signals in the frequency bands of 500Hz, 700Hz, 1900Hz, 2300Hz, 3900Hz, 5100Hz, and 5300Hz. The result of the fast Fourier transform of this frame of data is as follows: Figure 8 As shown, there is no signal in other frequency bands, and the signal frame can be extended into continuous frames, each frame representing four decimal numbers;

[0088] ⑽The second device generates a signal header frame, and the frequency domain performance of the audio data in this frame is that there are signals in the 1000Hz, 5000Hz, and 7000Hz frequency bands, and no signals in other frequency bands;

[0089] ⑾The second device generates a signal tail frame. The frequency domain performance of the audio data in this frame is that there are signals in the 3000Hz, 6000Hz, and 9000Hz frequency bands, and no signals in other frequency bands;

[0090] ⑿ The second device splices the signal header frame, signal frame, and signal tail frame into three consecutive frames of data, converts the data into analog audio through the D\A conversion of the second device, and sends it to the first device;

[0091] ⒀After receiving the analog data through the 3.5mm interface, the first device converts it into a digital signal through A\D, reads the data of each frame in real time, performs fast Fourier transform on the data of each frame, and when it is identified that the frame characteristics are that there are signals in the 3000Hz, 6000Hz, and 9000Hz frequency bands, and there are no signals in other frequency bands, it confirms that the frame is a signal header frame and marks the next frame as a signal frame;

[0092] ⒁ The first device performs fast Fourier transform on the data of the signal frame, reads the signals of each frequency with a starting frequency of 300 Hz and a step of 200 Hz, marks the bits with signals as 1, and the bits without signals as 0, and reads a 32-bit binary number;

[0093] ⒂The first device converts the read 32-bit binary number into a decimal number in eight-bit increments to obtain four numbers: 3, 4, 5, and 6;

[0094] ⒃The first device reads the next frame of the signal frame and performs fast Fourier transform. If the frame characteristic shows that there are signals in the 3000Hz, 6000Hz, and 9000Hz frequency bands and no signals in other frequency bands, the current frame is marked as the signal tail frame, and the signal frame is not received any more, but the detection is continued to see if there is a signal header frame coming in.

[0095] ⒄If it does not meet the characteristics of the tail frame, it means that there is still data to be transmitted. This frame is still a signal frame, and the digital signal is obtained according to the signal frame reading method.

[0096] Wherein: the starting frequency, step value and end frequency described in step (3) can all be customized; select a suitable step value according to the length of the binary array and the audio sampling rate, and select the starting frequency and end frequency according to the audio sampling rate and bandwidth of the transceiver device.

[0097] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made within the scope of the claims of the present invention should fall within the scope of the claims of the present invention.

Claims

1. A digital audio signal encoding and decoding transmission method, It is characterized in that The following steps are involved: (1) The first device converts the data to be sent into a binary array, wherein the data to be sent is a floating point number or a real number, and an 8-bit binary representation, a 16-bit binary representation, or a 32-bit binary representation is selected according to the data range; after the first device confirms the binary representation mode, the binary array of the data to be sent is calculated, 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; (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 sine signals of 2000 Hz, 4000 Hz, 6000 Hz, 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 to use 500 Hz as the starting frequency and 400 Hz as the step value, that is, 500 Hz represents the lowest bit of the eight-bit binary, and 3300 Hz represents the highest bit. According to the binary array obtained in step (1), the sinusoidal signals of the corresponding frequencies of the bits corresponding to '1' are superimposed, that is, the audio of the message frame is the superposition of sinusoidal signals of 900 Hz and 1300 Hz; (4) The first device seamlessly splices the three frames of data into an audio segment according to the message header frame, the message frame, and the message tail frame, and transmits the audio segment to the second device at one time; (5) The second device analyzes the audio data received in real time by frame, and analyzes whether the frame length is consistent with the frame length of the message data generated by the first device. The second device performs a fast Fourier transform on each frame of data received to obtain the frequency domain representation of the frame of audio data; (6) When the fast Fourier transform result of the current frame received by the second device shows that the amplitudes of 1000Hz, 3000Hz, 5000Hz, and 7000Hz are large, and the amplitudes of other frequencies are less than the T value, the range of the T value is calculated according to the fast Fourier transform result, and one-fifth of the highest amplitude point H is taken as the T value, indicating that the message header frame is received, and the next frame is marked as a message frame. The second device obtains the message frame, performs a fast Fourier transform on the current frame data, obtains the frequency domain information of the current frame, extracts the frequency of the point with a large amplitude, and finds its corresponding binary code according to the starting frequency and step value of the first device; ⑺The second device converts the binary array obtained in step ⑹ into a decimal real number, namely '6', and performs a fast Fourier transform on the next frame of the message frame to obtain the frequency domain representation of the audio data of this frame; The fast Fourier transform result of the current frame received by the second device shows that the amplitudes of 2000Hz, 4000Hz, 6000Hz, and 8000Hz are large, and the amplitudes of other frequencies are smaller than the T value. The range of the T value is calculated based on the fast Fourier transform result. When one-fifth of the highest amplitude point H is taken as the T value, it indicates that the message tail frame is received, marking the end of this transmission; ⑻According to the audio characteristics of the first device and the second device, the width range of the transmitted audio in the frequency domain is 125Hz to 20000Hz, and the encoding form in the frequency domain is confirmed to be 300Hz with a starting frequency and a step frequency of 200Hz. The second device inputs a set of data to be transmitted, and converts the data into binary numbers through software; the data to be transmitted is 3, 4, 5, 6, which are converted into binary numbers as 00000011, 00000100, 00000101, 00000110; (9) The second device generates a frame of audio data signal frame according to the value of the binary number. The performance of this frame of audio data in the frequency domain is that there are signals in the frequency bands of 500 Hz, 700 Hz, 1900 Hz, 2300 Hz, 3900 Hz, 5100 Hz, and 5300 Hz, and there are no signals in other frequency bands. The signal frame can be expanded into continuous frames, and each frame represents four decimal numbers; ⑽The second device generates a signal header frame, and the frequency domain performance of the audio data in this frame is that there are signals in the 1000Hz, 5000Hz, and 7000Hz frequency bands, and no signals in other frequency bands; ⑾The second device generates a signal tail frame. The frequency domain performance of the audio data in this frame is that there are signals in the 3000Hz, 6000Hz, and 9000Hz frequency bands, and no signals in other frequency bands; ⑿ The second device splices the signal header frame, signal frame, and signal tail frame into three consecutive frames of data, converts the data into analog audio through the D\A conversion of the second device, and sends it to the first device; ⒀After receiving the analog data through the 3.5mm interface, the first device converts it into a digital signal through A\D, reads the data of each frame in real time, performs fast Fourier transform on the data of each frame, and when it is identified that the frame characteristics are that there are signals in the 1000Hz, 5000Hz, and 7000Hz frequency bands, and there are no signals in other frequency bands, it confirms that the frame is a signal header frame and marks the next frame as a signal frame; ⒁ The first device performs fast Fourier transform on the data of the signal frame, reads the signals of each frequency with a starting frequency of 300 Hz and a step of 200 Hz, marks the bits with signals as 1, and the bits without signals as 0, and reads a 32-bit binary number; ⒂The first device converts the read 32-bit binary number into a decimal number in eight-bit increments to obtain four numbers: 3, 4, 5, and 6; ⒃The first device reads the next frame of the signal frame and performs fast Fourier transform. If the frame characteristic shows that there are signals in the 3000Hz, 6000Hz, and 9000Hz frequency bands and no signals in other frequency bands, the current frame is marked as the signal tail frame, and the signal frame is not received any more, but the detection is continued to see if there is a signal header frame coming in. ⒄If it does not meet the characteristics of the tail frame, it means that there is still data to be transmitted. This frame is still a signal frame, and the digital signal is obtained according to the signal frame reading method.

2. The digital audio signal encoding and decoding transmission method according to claim 1, It is characterized in that The starting frequency, step value, and end frequency in step (3) can all be customized; select a suitable step value according to the length of the binary array and the audio sampling rate, and select the starting frequency and end frequency according to the audio sampling rate and bandwidth of the transceiver device.