Relayable wireless full-duplex multi-channel audio transmission method

By introducing a time allocation mechanism in wireless audio transmission, full-duplex multi-audio transmission is realized, solving the problem that the existing technology is difficult to meet the requirements of multi-duplex audio transmission and transmission distance, and real-time communication and long-distance audio transmission are realized.

CN119815464APending Publication Date: 2025-04-11SHENZHEN SIWEI WIRELESS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510037071.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-09
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

It is difficult for existing wireless audio transmission technology to achieve full duplex multi-channel audio transmission, especially in application scenarios where there are many people, the transmission distance and sound quality requirements are difficult to meet.

Method used

By introducing a time allocation mechanism in wireless communication, the time unit for transmitting a data packet wirelessly is allocated to each channel, achieving a single transmission time of 5 unit time, and obtaining the routing path, transmitting data packets and forwarding data packets within each unit time, forming a cycle to realize full duplex multi-channel audio transmission.

Benefits of technology

It realizes the transmission of multi-channel full-duplex audio, makes full use of frequency band and time, meets the needs of real-time communication, supports 3-level relay routing, extends the audio transmission communication distance, and the interface is the same as that of the walkie-talkie, which is convenient for connecting and communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119815464A_ABST
    Figure CN119815464A_ABST
Patent Text Reader

Abstract

The invention discloses a wireless full duplex multi-channel audio transmission method capable of being relayed. The method provided by the invention is based on analog audio input, and the analog audio input is restored into analog audio output after wireless transmission. Due to the fact that mutual conversion of analog audio and digital audio is achieved in the implementation process of the method, analog audio output can be converted into I2S interface output through subsequent simple changes, and even the analog audio output can be output to a serial port to generate audio files and other applications. According to the method provided by the invention, the application of multi-channel full-duplex audio can be met, the frequency band and time are fully utilized, and the real-time communication requirement is met. Meanwhile, the method provided by the invention supports three-level relay routing, the audio transmission communication distance is effectively prolonged, an external interface is the same as an interphone, and connection communication can be realized without other complex operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technology, and in particular to a method for wireless full-duplex multi-channel audio transmission capable of being relayed. Background Art

[0002] Audio transmission has a wide range of usage scenarios and strong scalability. It can be used in voice intercom, emergency communication, wireless speakers and other fields. In applications, users are no longer satisfied with the most basic function of audio transmission, and have higher requirements for the sound quality and distance of transmission. The most urgent requirement is that traditional audio transmission is mostly half-duplex transmission, while in application scenarios with a large number of people, full-duplex or even multi-way two-way calls need to be achieved.

[0003] The current wireless audio transmission solution mainly uses Bluetooth. Bluetooth technology is a short-range wireless connection technology that can realize data communication and voice communication between devices. During the Bluetooth audio transmission process, the audio data is encoded and decoded, and then transmitted and played by Bluetooth. Bluetooth technology is widely used and can quickly establish a communication link between two devices.

[0004] However, due to the limitations of the radio frequency technology used, the transmission distance of Bluetooth technology is short, and the communication distance is within 200 meters, which cannot be used for long-distance applications. In addition, during the Bluetooth audio transmission process, it is necessary to follow the Bluetooth device, and the expansion function needs to be based on the Bluetooth protocol. It requires familiarity with the Bluetooth protocol and cannot be expanded quickly.

[0005] Therefore, the prior art has defects and needs to be improved. Summary of the invention

[0006] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a method for wireless full-duplex multi-channel audio transmission capable of being relayed.

[0007] The technical solution of the present invention is as follows: a method for wireless full-duplex multi-channel audio transmission capable of being relayed is provided, comprising the following steps: Step 1: Take the time of wireless transmission of a data packet as a unit, and allocate 5 unit times to each channel as the single-channel transmission time. The first unit time is used to obtain the routing path, the second unit time is used to transmit the data packet, and the third to fifth unit times are used for routing forwarding. The sum of all single-channel transmission times is one cycle. Step 2: When it is the turn of the current single-channel transmission time, the current channel transmits the data packet, and other channels act as routers to forward the data packets of the current channel in the third to fifth unit time; Step 3: compress data once per unit time on a single channel, and combine all compressed data per unit time in one cycle into one data packet; Step 4: After a cycle is completed, a single channel will receive the compressed data of all other channels in the previous cycle, decompress the data of each channel separately and merge them for playback in the next cycle.

[0008] Furthermore, the calculation method of the cycle is: A total of N channels participate in the communication, and a serial number idx is assigned to each channel participating in the communication, where 1≤idx≤N; The time allocation is measured in units of the time t for wireless transmission of a data packet; Allocate 5 unit times t to each channel as the transmission time Tsn, n is the single channel number, the xth unit time of the nth channel is represented by tnx, then Tsn=tn1+tn2+tn3+tn4+tn5; The routing path is acquired in the first unit time tn1, the data packet is transmitted in the second unit time tn2, and the routing is forwarded from the third unit time tn3 to the fifth unit time tn5; Compress the received audio data in each unit time tnx, and decompress the audio data in the unit time tnx of all other single channels in the previous cycle Tr-1; The sum of the transmission time of each channel is one cycle, that is, the time of one cycle is Tr = Ts1+Ts2+Ts3+Ts4+Ts5=N*5*t, Tr refers to a single cycle, and r is the cycle number.

[0009] Furthermore, the specific implementation steps of the time allocation are: Step a: Unit time count x=x+1, start a new unit time; Step b: Process the corresponding wireless operation according to x; Step c: compress the audio in PCM_IN[]; Step d: Decompress the audio of all single-channel tnx segments in RF_IN[][]; Step e: If x=5, jump to step 6; otherwise jump to step 1; Step f: single-channel counting n=n+1, x=1; Step g: If n>N, n cycle count r=r+1, n=1, return to single channel 1, start the next cycle; jump to step 2.

[0010] Furthermore, the specific steps of step b are: Step b.1: If the local path idx = n, it is the turn of the local path to send, jump to step 2.2; otherwise, it is necessary to receive and forward data from other single paths, jump to step 2.4; Step b.2: If x=1, send a path acquisition command and wait for path responses from other branches; Step b.3: If x=2, add the obtained path to RF_OUT[] and send RF_OUT[] wirelessly; Step b.4: If x=1, a path acquisition command is received and forwarded or a path response is sent; Step b.5: If x=2, receive the RF_OUT[] data sent by n channels and store it in RF_IN[n][]; Step b.6: If x=3,4,5, if idx is in the path of RF_OUT[], forward RF_OUT[].

[0011] Furthermore, the specific steps of step b.2 are: Step b.2.1: Send the path acquisition command on the nth path, where hop=0; Step b.2.2: The ath route receives a path acquisition command. If the hop in the command is less than 3, jump to step b.2.3, otherwise jump to step b.2.4; Step b.2.3: hop=hop+1, update the hop of the path acquisition command, add a to the command path, and issue a new path acquisition command; Step b.2.4: extract the hop and path in the path acquisition command, and form a path reply command to be sent; Step b.2.5: If other paths receive the path reply command, they are forwarded; Step b.2.6: The nth path receives the path response command and uses the path in the path response command as the path for transmitting RF_OUT[].

[0012] Furthermore, the specific steps of step c are: Step c.1: compress x's PCM_IN[] and store it in RF_OUT[]; Step c.2: Get the data corresponding to x in RF_IN[1][] - RF_IN[N][] received in the Tr-1 cycle, decompress them and store them in PCMs_OUT [1][] - PCMs_OUT [N][]; Step c.3: If x=5, merge PCMs_OUT[1][]-PCMs_OUT[N][] and save to PCM_OUT[].

[0013] Using the above scheme, the method provided by the present invention is based on analog audio input, which is restored to analog audio output after wireless transmission. Since the mutual conversion between analog audio and digital audio has been realized in the process of implementing the method, it can be switched from analog audio output to I2S interface output through simple modification, or even output to the serial port to generate audio files and other applications. The method provided by the present invention can meet the application of multi-channel full-duplex audio, make full use of frequency band and time, and meet the needs of real-time communication. At the same time, the method provided by the present invention supports 3-level relay routing, effectively extends the audio transmission communication distance, and the external interface is the same as that of the walkie-talkie, and connection communication can be achieved without other complicated operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a schematic diagram of module connection of the present invention.

[0015] Figure 2 Schematic diagram of the time allocation process.

[0016] Figure 3 The figure is a flowchart for processing corresponding wireless operations.

[0017] Figure 4 The figure is a flowchart of routing query.

[0018] Figure 5 Schematic diagram of the process of audio compression and audio decompression.

[0019] Figure 6 It is a schematic diagram of the system block diagram. DETAILED DESCRIPTION

[0020] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0021] See also Figure 1 The present invention provides a method for wireless full-duplex multi-channel audio transmission capable of being relayed, comprising the following steps: Step 1: Take the time of wireless transmission of a data packet as a unit, and allocate 5 unit times to each channel as the single-channel transmission time. The first unit time is used to obtain the routing path, the second unit time is used to transmit the data packet, and the third to fifth unit times are used for routing forwarding. The sum of all single-channel transmission times is one cycle. Step 2: When it is the turn of the current single-channel transmission time, the current channel transmits the data packet, and other channels act as routers to forward the data packets of the current channel in the third to fifth unit time; Step 3: compress data once per unit time on a single channel, and combine all compressed data per unit time in one cycle into one data packet; Step 4: After a cycle is completed, a single channel will receive the compressed data of all other channels in the previous cycle, decompress the data of each channel separately and merge them for playback in the next cycle.

[0022] This method divides the wireless transmission and reception time of each channel through time division multiplexing, and simultaneously transmits and receives audio, and compresses and decompresses audio in parallel, so as to realize full-duplex multi-channel audio transmission. In one cycle, a single channel simultaneously processes, decompresses and plays the second-last cycle audio of other channels, samples and compresses the audio data of this channel in this cycle, and transmits and receives the compressed data of the first-last cycle of other channels. According to the function, it can be divided into three tasks: audio data compression and decompression, audio data sampling and playback, and wireless data transmission and reception. The coherent execution of the three tasks realizes the function of full-duplex multi-channel audio transmission.

[0023] See also Figure 2 , the calculation method of the period is: A total of N channels participate in the communication, and a serial number idx is assigned to each channel participating in the communication, where 1≤idx≤N; The time allocation is measured in units of the time t for wireless transmission of a data packet; Allocate 5 unit times t to each channel as the transmission time Tsn, where n is the channel number, 1≤n≤N. The x-th unit time of the n-th channel is represented by tnx (1≤x≤5), then Tsn=tn1+tn2+tn3+tn4+tn5; The routing path is acquired in the first unit time tn1, the data packet is transmitted in the second unit time tn2, and the routing is forwarded from the third unit time tn3 to the fifth unit time tn5; Compress the received audio data in each unit time tnx, and decompress the audio data in the unit time tnx of all other single channels in the previous cycle Tr-1; The sum of the transmission time of each channel is one cycle, that is, the time of one cycle is Tr = Ts1+Ts2+Ts3+Ts4+Ts5=N*5*t, Tr refers to a single cycle, and r is the cycle number.

[0024] The specific implementation steps of the time allocation are: Step a: Unit time count x=x+1, start a new unit time; Step b: Please refer to Figure 3 , process the corresponding wireless operation according to x; the specific steps are: Step b.1: If the local path idx = n, it is the turn of the local path to send, jump to step 2.2; otherwise, it is necessary to receive and forward data from other single paths, jump to step 2.4; Step b.2: If x=1, send a path acquisition command and wait for the path response from other branches; see Figure 4 , the specific steps are: Step b.2.1: Send the path acquisition command on the nth path, where hop=0; Step b.2.2: The ath route receives a path acquisition command. If the hop in the command is less than 3, jump to step b.2.3, otherwise jump to step b.2.4; Step b.2.3: hop=hop+1, update the hop of the path acquisition command, add a to the command path, and issue a new path acquisition command; Step b.2.4: extract the hop and path in the path acquisition command to form a path response command for transmission; Step b.2.5: If other paths receive the path reply command, they are forwarded; Step b.2.6: The nth path receives the path response command and uses the path in the path response command as the path for transmitting RF_OUT[].

[0025] Step b.3: If x=2, add the obtained path to RF_OUT[] and send RF_OUT[] wirelessly; Step b.4: If x=1, a path acquisition command is received and forwarded or a path response is sent; Step b.5: If x=2, receive the RF_OUT[] data sent by n channels and store it in RF_IN[n][]; Step b.6: If x=3,4,5, if idx is in the path of RF_OUT[], forward RF_OUT[].

[0026] Step b.2 Step c: Please refer to Figure 5 , compress the audio in PCM_IN[]; the specific steps are: Step c.1: compress x's PCM_IN[] and store it in RF_OUT[]; Step c.2: Get the data corresponding to x in RF_IN[1][] - RF_IN[N][] received in the Tr-1 cycle, decompress them and store them in PCMs_OUT [1][] - PCMs_OUT [N][]; Step c.3: If x=5, merge PCMs_OUT[1][]-PCMs_OUT[N][] and save to PCM_OUT[].

[0027] Step d: decompress the audio of all single-channel tnx segments in RF_IN[][]; Step e: If x=5, jump to step 6; otherwise jump to step 1; Step f: single-channel counting n=n+1, x=1; Step g: If n>N, n cycle count r=r+1, n=1, return to single channel 1, start the next cycle; jump to step 2.

[0028] See also Figure 6 ,This method is based on a wireless digital audio transmission module composed of a single-chip microcomputer, a wireless chip, and an audio codec. In multi-channel audio transmission, a total of N channels of concurrent transmission and reception are supported, and each wireless digital audio transmission module corresponds to one of the n channels.

[0029] The single chip microcomputer has a built-in ucosII real-time operating system, which can parallelly process the three tasks of wireless data transmission and reception, audio data compression and decompression, audio data sampling and playback, and realize full-duplex multi-channel audio transmission.

[0030] Wireless data transmission and reception task: According to the allocated time, transmit RF_OUT[], receive and forward the data of other channels in turn. The received data of other channels n are saved to RF_IN[n][].

[0031] Audio data sampling and playback tasks: The MCU communicates with the audio codec through the I2S interface, stores the sampled audio data into the array PCM_IN[], and sends the audio data to be played PCM_OUT[] to the audio codec for playback.

[0032] Audio data compression and decompression task: Use the compression algorithm to compress the audio data PCM_IN[] into 1 / 10, and save the compressed data into the array RF_OUT[]. Decompress RF_IN[n][] into PCM_OUT[n][]. Merge each channel's PCM_OUT[n][] into the array PCM_OUT[].

[0033] The arrays involved in the three parallel tasks are composed as follows: 1.RF_OUT[]: The data packet to be sent by the wireless, including the data header, routing path, and compressed data of tn1-tn5.

[0034] 2.RF_IN[n][]: RF_OUT[] of the nth transmission received wirelessly.

[0035] 3. PCMs_OUT [n][]: The nth decompressed audio data, that is, the decompressed audio data of RF_IN [n][].

[0036] 4.PCM_OUT[]: The audio data to be played, obtained by merging PCMs_OUT[n][] of channels 1-N.

[0037] 5.PCM_IN[]: Audio data sampled by the audio encoder, read and compressed once every tnx, and stored in RF_OUT[] after tn5.

[0038] In summary, the method provided by the present invention is based on analog audio input, which is restored to analog audio output after wireless transmission. Since the mutual conversion between analog audio and digital audio has been realized in the process of implementing the method, it can be switched from analog audio output to I2S interface output through simple modification, or even output to the serial port to generate audio files and other applications. The method provided by the present invention can meet the application of multi-channel full-duplex audio, make full use of frequency band and time, and meet the needs of real-time communication. At the same time, the method provided by the present invention supports 3-level relay routing, effectively extends the audio transmission communication distance, and the external interface is the same as that of the walkie-talkie, and connection communication can be achieved without other complicated operations.

[0039] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for wireless full-duplex multi-channel audio transmission capable of being relayed, characterized in that: The steps include: Step 1: Take the time of wireless transmission of a data packet as a unit, and allocate 5 unit times to each channel as the single-channel transmission time. The first unit time is used to obtain the routing path, the second unit time is used to transmit the data packet, and the third to fifth unit times are used for routing forwarding. The sum of all single-channel transmission times is one cycle. Step 2: When it is the turn of the current single-channel transmission time, the current channel transmits the data packet, and other channels act as routers to forward the data packets of the current channel in the third to fifth unit time; Step 3: compress data once per unit time on a single channel, and combine all compressed data per unit time in one cycle into one data packet; Step 4: After a cycle is completed, a single channel will receive the compressed data of all other channels in the previous cycle, decompress the data of each channel separately and merge them for playback in the next cycle.

2. The method for relayable wireless full-duplex multi-channel audio transmission according to claim 1, characterized in that: The cycle is calculated as follows: A total of N channels participate in the communication, and a serial number idx is assigned to each channel participating in the communication, where 1≤idx≤N; The time allocation is measured in units of the time t for wireless transmission of a data packet; Allocate 5 unit times t to each channel as the transmission time Tsn, n is the single channel number, the xth unit time of the nth channel is represented by tnx, then Tsn=tn1+tn2+tn3+tn4+tn5; The routing path is acquired in the first unit time tn1, the data packet is transmitted in the second unit time tn2, and the routing is forwarded from the third unit time tn3 to the fifth unit time tn5; Compress the received audio data in each unit time tnx, and decompress the audio data in the unit time tnx of all other single channels in the previous cycle Tr-1; The sum of the transmission time of each channel is one cycle, that is, one cycle time is Tr = Ts1+Ts2+Ts3+Ts4+Ts5=N*5*t, Tr refers to a single cycle, and r is the cycle number.

3. The method for wireless full-duplex multi-channel audio transmission capable of being relayed according to claim 1, characterized in that: The specific implementation steps of the time allocation are: Step a: Unit time count x=x+1, start a new unit time; Step b: Process the corresponding wireless operation according to x; Step c: compress the audio in PCM_IN[]; Step d: Decompress the audio of all single-channel tnx segments in RF_IN[][]; Step e: If x=5, jump to step 6; otherwise jump to step 1; Step f: single-channel counting n=n+1, x=1; Step g: If n>N, n cycle count r=r+1, n=1, return to single channel 1, start the next cycle; jump to step 2.

4. The method for relayable wireless full-duplex multi-channel audio transmission according to claim 3, characterized in that: The specific steps of step b are: Step b.1: If the local path idx = n, it is the local path's turn to send, and jump to step 2.2; otherwise, it is necessary to receive and forward data from other single paths, and jump to step 2.4; Step b.2: If x=1, send a path acquisition command and wait for path responses from other branches; Step b.3: If x=2, add the obtained path to RF_OUT[] and send RF_OUT[] wirelessly; Step b.4: If x=1, a path acquisition command is received and forwarded or a path response is sent; Step b.5: If x=2, receive the RF_OUT[] data sent by n channels and store it in RF_IN[n][]; Step b.6: If x=3,4,5, if idx is in the path of RF_OUT[], forward RF_OUT[].

5. The method for wireless full-duplex multi-channel audio transmission capable of being relayed according to claim 4, characterized in that: The specific steps of step b.2 are: Step b.2.1: Send the path acquisition command on the nth path, where hop=0; Step b.2.2: The ath route receives a path acquisition command. If the hop in the command is less than 3, jump to step b.2.3, otherwise jump to step b.2.4; Step b.2.3: hop=hop+1, update the hop of the path acquisition command, add a to the command path, and issue a new path acquisition command; Step b.2.4: extract the hop and path in the path acquisition command, and form a path reply command to be sent; Step b.2.5: If other paths receive the path reply command, they are forwarded; Step b.2.6: The nth path receives the path response command and uses the path in the path response command as the path for transmitting RF_OUT[].

6. The method for wireless full-duplex multi-channel audio transmission capable of being relayed according to claim 3, characterized in that: The specific steps of step c are: Step c.1: compress x's PCM_IN[] and store it in RF_OUT[]; Step c.2: Get the data corresponding to x in RF_IN[1][] - RF_IN[N][] received in the Tr-1 cycle, decompress them and store them in PCMs_OUT [1][] - PCMs_OUT [N][]; Step c.3: If x=5, merge PCMs_OUT[1][]-PCMs_OUT[N][] and save to PCM_OUT[].