CN110933617B - WIFI audio data sending method and device and computer-readable storage medium - Google Patents

WIFI audio data sending method and device and computer-readable storage medium Download PDF

Info

Publication number
CN110933617B
CN110933617B CN201911182743.4A CN201911182743A CN110933617B CN 110933617 B CN110933617 B CN 110933617B CN 201911182743 A CN201911182743 A CN 201911182743A CN 110933617 B CN110933617 B CN 110933617B
Authority
CN
China
Prior art keywords
audio data
receiving devices
sending
receiving
aggregation packet
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
CN201911182743.4A
Other languages
Chinese (zh)
Other versions
CN110933617A (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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201911182743.4A priority Critical patent/CN110933617B/en
Publication of CN110933617A publication Critical patent/CN110933617A/en
Application granted granted Critical
Publication of CN110933617B publication Critical patent/CN110933617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/0413MIMO systems
    • H04B7/0452Multi-user MIMO systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • H04W56/0015Synchronization between nodes one node acting as a reference for the others

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A WIFI audio data sending method and device and a computer-readable storage medium are provided, and the WIFI audio data sending method comprises the following steps: sending the same aggregation packet to N receiving devices to enable the N receiving devices to have reorder holes, wherein the aggregation packet comprises at least one audio data frame, and N is more than or equal to 2; judging whether the N receiving devices successfully receive the aggregation packet; after determining that the N receiving devices all successfully receive the aggregation packet, sending a synchronization signal identifier to the N receiving devices; and enabling the N receiving devices to skip the reorder cavity after receiving the synchronous signal identifier, and sending the received aggregation packets to an upper protocol stack for decoding and playing. The scheme can reduce or avoid relative delay among different receiving devices.

Description

WIFI audio data sending method and device and computer-readable storage medium
Technical Field
The invention relates to the technical field of WIFI audio, in particular to a WIFI audio data sending method and device and a computer readable storage medium.
Background
Currently, the wireless music playing devices commonly available on the market transmit audio files based on bluetooth communication protocols, such as bluetooth headsets, bluetooth wireless speakers, etc. However, due to the characteristics of bluetooth technology, there are problems of short transmission distance, low transmission speed, etc. Meanwhile, some high-quality lossless music cannot be transmitted.
In order to improve the transmission distance and the playing quality of the audio file, a wireless sound box or other WIFI audio receiving devices (hereinafter, a WIFI wireless sound box is taken as an example) for transmitting audio data based on a WIFI protocol are produced. The existing transmission modes of audio data corresponding to the WIFI wireless sound box are roughly divided into the following three types: 1. the sending equipment sends the same audio data to the WIFI wireless sound boxes in turn; 2. the sending equipment broadcasts or multicasts audio data to the WIFI wireless sound boxes; 3. and the sending equipment simultaneously sends the audio data to the WIFI wireless sound box by using a standard Downlink multi-user (Downlink MU) technology.
However, when one sending device sends audio data to a plurality of WIFI wireless speakers, different WIFI wireless speakers have a large relative delay, and the plurality of WIFI wireless speakers cannot play music synchronously.
Disclosure of Invention
The embodiment of the invention solves the problem that when one sending device sends audio data to a plurality of WIFI wireless sound boxes, different WIFI wireless sound boxes have larger relative delay, and the plurality of WIFI wireless sound boxes cannot synchronously play music.
In order to solve the technical problem, an embodiment of the present invention provides a method for sending WIFI audio data, including: sending the same aggregation packet to N receiving devices to enable the N receiving devices to have reorder holes, wherein the aggregation packet comprises at least one audio data frame, and N is more than or equal to 2; judging whether the N receiving devices successfully receive the aggregation packet; after determining that the N receiving devices all successfully receive the aggregation packet, sending a synchronization signal identifier to the N receiving devices; and enabling the N receiving devices to skip the reorder cavity after receiving the synchronous signal identifier, and sending the received aggregation packets to an upper protocol stack for decoding and playing.
Optionally, the determining whether the N receiving devices all successfully receive the aggregation packet includes: respectively receiving a block acknowledgement message sent by each receiving device; and judging whether the N receiving devices successfully receive the aggregation packet or not according to the block acknowledgement message corresponding to each receiving device.
Optionally, after determining that the ith receiving device fails to receive the aggregation packet successfully, the method further includes: acquiring identification information of the audio data frame which is not successfully received by the ith receiving device, wherein i is more than or equal to 1 and less than or equal to N; and according to the identification information, retransmitting the audio data frames which are not successfully received to the ith receiving equipment.
Optionally, the sending the synchronization signal identifier to the N receiving devices includes: and sequentially sending the synchronous signal identification to the N receiving devices.
Optionally, the sending the synchronization signal identifier to the N receiving devices includes: and simultaneously transmitting the synchronous signal identification to the N receiving devices by using MU-MIMO technology.
Optionally, the synchronization signal identifier includes any one of: a block acknowledgement request; a quality of service null frame; a frame of audio data.
The embodiment of the invention also provides a WIFI audio data sending device, which comprises: the device comprises a first sending unit, a second sending unit and a third sending unit, wherein the first sending unit is used for sending the same aggregation packet to N receiving devices, so that reorder cavities exist in the N receiving devices, the aggregation packet comprises at least one audio data frame, and N is more than or equal to 2; a determining unit, configured to determine whether the N receiving devices all successfully receive the aggregation packet; a second sending unit, configured to send synchronization signal identifiers to the N receiving devices after it is determined that the N receiving devices all successfully receive the aggregation packet; and enabling the N receiving devices to skip the reorder cavity after receiving the synchronous signal identifier, and sending the received aggregation packets to an upper protocol stack for decoding and playing.
Optionally, the determining unit is configured to receive a block acknowledgment message sent by each receiving device; and judging whether the N receiving devices successfully receive the aggregation packet or not according to the block acknowledgement message corresponding to each receiving device.
Optionally, the WIFI audio data sending apparatus further includes: a third sending unit, configured to obtain, after the determining unit determines that the ith receiving device fails to successfully receive the aggregation packet, identification information of an audio data frame that is not successfully received by the ith receiving device, where i is greater than or equal to 1 and is less than or equal to N; and according to the identification information, retransmitting the audio data frames which are not successfully received to the ith receiving equipment.
Optionally, the second sending unit is configured to send the synchronization signal identifier to the N receiving devices in sequence.
Optionally, the second sending unit is configured to send the synchronization signal identifier to the N receiving devices simultaneously by using an MU-MIMO technique.
Optionally, the synchronization signal identifier includes any one of: a block acknowledgement request; a quality of service null frame; a frame of audio data.
The embodiment of the invention also provides a computer-readable storage medium, which is a non-volatile storage medium or a non-transitory storage medium, and on which computer instructions are stored, and when the computer instructions are executed, the steps of any one of the above-mentioned WIFI audio data transmission methods are executed.
The embodiment of the invention also provides another WIFI audio data sending device which comprises a memory and a processor, wherein the memory stores computer instructions capable of running on the processor, and the processor executes any one of the steps of the WIFI audio data sending method when running the computer instructions.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
and sending the same aggregation packet to the N receiving devices, wherein the N receiving devices form a reorder cavity after receiving the aggregation packet. After the N receiving devices are confirmed to successfully receive the aggregation packet, the synchronization signal identification is sent to the N receiving devices, and the N receiving devices jump out of the reorder cavity after receiving the synchronization signal identification. Because before sending the synchronizing signal sign, N receiving equipment all has successfully received the aggregation package, consequently, N receiving equipment can decode the broadcast after receiving the synchronizing signal sign to can reduce the relative delay between the different receiving equipment, improve the synchronism of a plurality of WIFI wireless sound box broadcast music.
Further, the block acknowledgement request or the quality of service null frame is used as the synchronization signal identifier, and the transmission time is shorter because the length of the data packet corresponding to the block acknowledgement request or the quality of service null frame is shorter, so that the relative delay between different receiving devices can be further reduced.
Drawings
Fig. 1 is a flowchart of a WIFI audio data transmission method in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a WIFI audio data transmitting device in an embodiment of the present invention.
Detailed Description
As described above, the transmission modes of audio data corresponding to the existing WIFI wireless speakers are roughly classified into the following three types: 1. the sending equipment sends the same audio data to the WIFI wireless sound boxes in turn; 2. the sending equipment broadcasts or multicasts audio data to the WIFI wireless sound boxes; 3. the sending equipment simultaneously sends audio data to the WIFI wireless sound box by using a standard Downlink multi-user (Downlink MU) technology; audio data is typically presented in the form of aggregate packets (AMPDUs).
For the transmission mode 1, the sending equipment sends the same audio data to the WIFI wireless sound boxes in sequence. After one WIFI wireless sound box successfully receives the audio data, the sending equipment continues to send the audio data to the next WIFI wireless sound box. When the data packet corresponding to the audio data is long, or the number of the WIFI wireless sound boxes is large, large delay exists among different WIFI wireless sound boxes. Meanwhile, due to uncertain interference of WIFI wireless connection, empty port retransmission of a WIFI layer can be brought, and relative delay is further increased due to retransmission.
For example, the transmitting device transmits the target audio data to the WIFI wireless sound box 1 at time t0, and the WIFI wireless sound box 1 feeds back after successfully receiving the target audio data, and plays the corresponding music at time t 1. The sending device sends the target audio data to the WIFI wireless sound box 2 at the time t2, and the WIFI wireless sound box 2 feeds back after successfully receiving the target audio data and plays the corresponding music at the time t 3. It can be seen that the delay of playing music between WIFI wireless sound box 1 and WIFI wireless sound box 2 is t3-t 1. If the number of the WIFI wireless sound boxes is large, the time for the WIFI wireless sound box which receives the audio data to play the music first and the time for the WIFI wireless sound box which receives the audio data to play the music last have large delay.
And aiming at the transmission mode 2, the sending equipment broadcasts or multicasts audio data to the WIFI wireless sound boxes. Due to the fact that an ACK confirmation mechanism is not available, the sending device cannot know whether one or more WIFI wireless sound boxes successfully receive the audio data packets, transmission reliability cannot be guaranteed, a packet loss phenomenon exists, finally, music fragments are lost, and audio output is blocked.
Aiming at the transmission mode 3, the sending equipment sends the aggregation packet to a plurality of WIFI wireless sound boxes simultaneously by using the standard Downlink MU technology. When one of the WIFI wireless sound boxes fails to receive the audio data frame, the WIFI wireless sound box informs the sending equipment through Block Acknowledgement (BA). The sending equipment resends the audio data frames failed to be received to the WIFI wireless sound box, the retransmission can cause the relative delay of different WIFI wireless sound boxes, and the retransmission times are more, and the corresponding relative delay is larger.
In summary, in the prior art, when one sending device sends audio data to a plurality of WIFI wireless speakers, different WIFI wireless speakers have a large relative delay, and the plurality of WIFI wireless speakers cannot play music synchronously.
In the embodiment of the invention, after the N receiving devices are confirmed to successfully receive the aggregation packet, the synchronization signal identifier is sent to the N receiving devices, so that the N receiving devices jump out of the reorder cavity after receiving the synchronization signal identifier. Because before sending the synchronizing signal sign, N receiving equipment all has successfully received the aggregation package, consequently, N receiving equipment can decode the broadcast after receiving the synchronizing signal sign to can reduce the broadcast delay, improve the synchronism of a plurality of WIFI wireless sound box broadcast music.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
An embodiment of the present invention provides a method for transmitting WIFI audio data, which is described in detail below with reference to fig. 1 through specific steps.
Step S101, the same aggregation packet is sent to N receiving devices.
In the embodiment of the invention, the targeted application scenario is audio data transmission based on a WIFI protocol. The device that transmits audio data is referred to as a transmitting device, and the device that receives audio data is referred to as a receiving device. The number of the sending devices may be 1, and the number of the receiving devices may be N, that is: and 1 sending device sends the same aggregation packet to N receiving devices, wherein N is a positive integer and is more than or equal to 2.
In a specific implementation, the sending device may copy N copies of audio data to be sent, generate an aggregate packet in an AMPDU aggregation manner, and send the aggregate packet to the N receiving devices. The receiving device can be a music playing device based on a WIFI protocol, such as a WIFI wireless sound box.
In a particular implementation, the aggregate packet may be composed of audio data frames, and the aggregate packet includes at least one audio data frame (audio frame). In the embodiment of the present invention, the specific processes and principles of generating the aggregation packet and sending the aggregation packet to the N receiving devices by the sending device may refer to the prior art, which is not described herein again.
Unlike the prior art, in the embodiment of the present invention, the aggregation packet that is first transmitted by the transmitting device includes the audio data frame and does not include information related to the synchronization function. That is, the receiving apparatus does not immediately perform an operation of sending the aggregation packet to the upper layer protocol stack and performing decoding playback after receiving the aggregation packet.
In this embodiment of the present invention, the sending device sends the same aggregation packet to the N receiving devices, which means that the aggregation packets sent to the N receiving devices are the same, that is, the data in the aggregation packets received by the N receiving devices are the same.
In a specific implementation, after the N receiving devices receive the aggregation packet, there is a reorder hole. In practical application, it can be known that the WIFI reorder is a standard technology that a receiving party uploads received data packets to an upper protocol stack in sequence after establishing an AMPDU.
In practical applications, after the sending device sends the aggregation packet to the receiving device, the receiving device feeds back a block acknowledgement indicating whether each audio data frame in the aggregation packet is successfully received. And the assumed aggregation packet comprises audio data frames of WIFI sequence number n-WIFI sequence number n + 3.
If the audio data frame with the WIFI sequence number n is not successfully received, the receiving device may inform the sending device through block acknowledgement that the audio data frame with the WIFI sequence number n is not successfully received. Meanwhile, the receiving equipment caches the audio data frames with the WIFI sequence number of n + 1-n +3 in a WIFI link layer, and at the moment, the receiving equipment has a reorder cavity.
Step S102, judging whether the N receiving devices successfully receive the aggregation packet.
In the existing protocol related to WIFI wireless audio transmission, after receiving an aggregation packet sent by a sending device, a receiving device feeds back a Block Acknowledgement (BA) message to the sending device. In the block acknowledgement message, information is carried about whether the receiving device successfully received the aggregation packet. If the receiving device fails to receive the aggregation packet successfully, the block acknowledgement message may also carry identification information of the audio data frame that was not successfully received.
Therefore, in the embodiment of the present invention, after receiving the aggregation packet sent by the sending device, the receiving device may feed back a block acknowledgement message to the sending device. The sending device may receive the block acknowledgement messages sent by the N sending devices, and may further know whether the N receiving devices all successfully receive the aggregation packet.
In this embodiment of the present invention, the sending device may send the same aggregation packet to the N receiving devices in sequence. For example, N is 3, and the 3 receiving devices are a WIFI wireless sound box 1, a WIFI wireless sound box 2, and a WIFI wireless sound box 3 in sequence. The transmitting device transmits the aggregation packet to the WIFI wireless sound box 1. After receiving the aggregation packet, the WIFI wireless sound box 1 sends a Block Acknowledgement (BA) message to the sending device, where in the block acknowledgement message, whether the aggregation packet is successfully received by the WIFI wireless sound box 1 is carried. If the sending device knows that the WIFI wireless sound box 1 successfully receives the aggregation packet, the sending device sends the aggregation packet to the WIFI wireless sound box 2. And so on until the sending equipment finishes sending the aggregation packet to the WIFI wireless sound box 3.
If the transmitting device and the receiving device both support the standard Downlink MU, the transmitting device may transmit the aggregation packet to the N devices simultaneously.
In this embodiment of the present invention, after the sending device determines that the N receiving devices all successfully receive the aggregation packet, the sending device may execute step S103; when the sending device confirms that one or more receiving devices do not successfully receive the aggregation packet, the identification information of the audio data frames which are not successfully received can be obtained, and then the audio data frames which are not successfully received are sent to the corresponding receiving devices again according to the identification information.
For example, the sending device learns that the ith receiving device has not successfully received the audio data frame with sequence number (sequence number) of n +1 in the aggregate packet, and the sending device may resend the audio data frame with sequence number of n +1 to the ith receiving device. If the ith receiving device does not receive the audio data frame with the sequence number of n +1, the sending device may continue to resend the audio data frame until the ith receiving device successfully receives the audio data frame with the sequence number of n +1, or the number of times of resending the audio data frame with the sequence number of n +1 to the ith receiving device reaches the retransmission number limit.
The process of retransmitting the audio data frame in the sending process is a retransmission process of the WIFI audio data transmission. The retransmission process may also refer to an existing protocol, and details are not described in the embodiment of the present invention.
Step S103, after determining that the N receiving devices successfully receive the aggregation packet, sending a synchronization signal identifier to the N receiving devices.
In a specific implementation, after determining that the N receiving devices all successfully receive the aggregation packet, the sending device may send synchronization signal identifiers to the N receiving devices. In the embodiment of the present invention, the synchronization signal identifier may be used to identify the synchronization information, and the synchronization signal identifier functions as: and after receiving the synchronous signal identifier, the N receiving devices skip the reorder cavity and send the received aggregation packets to an upper protocol stack for decoding and playing. That is to say, after receiving the synchronization signal identifier, the N receiving devices upload the received data packets to their corresponding upper protocol stacks for decoding and playing.
That is to say, in the embodiment of the present invention, the same aggregation packet is sent to N receiving devices, and a reorder cavity is "manufactured" on the N receiving devices. After confirming that the N receiving devices all successfully receive the aggregation packet, sending synchronous signal identifications to the N receiving devices, and filling the reorder cavity in the N receiving devices. After the reorder cavity of the receiving device is filled, the received aggregation packet can be sent to an upper layer protocol stack for decoding and playing.
In a specific implementation, the sending device may sequentially send the synchronization signal identifier to the N receiving devices. If the sending device and the receiving device both support the standard Downlink MU, the sending device may send the synchronization signal identifier to the N devices simultaneously.
In a specific implementation, the synchronization signal identifier may be carried by a separate audio data frame, that is, the synchronization signal identifier may occupy a separate audio data frame. The synchronization signal identification may also be a Block Acknowledgement Request (BAR), or a quality of service null frame (QoS null), which does not contain any payload. When a block acknowledgement request or a quality of service null frame is used to represent the synchronization signal identifier, the corresponding packet length is shorter, so that the transmission time is shorter, and the relative delay between different receiving devices can be further shortened.
That is to say, in the embodiment of the present invention, when the sending device sends the aggregation packet to the N receiving devices, the sent aggregation packet does not substantially carry the synchronization signal identifier, and the N receiving devices do not perform the operation of decoding and playing after receiving the aggregation packet. After the transmitting device knows that the N receiving devices all successfully receive the aggregation packets, the transmitting device transmits the synchronization signal identifiers to the N receiving devices, so that the N receiving devices decode and play the received aggregation packets.
If the sending device sends the synchronization signal identifier to the N receiving devices in sequence, the relative delay of playing music between two adjacent receiving devices is approximately: and the interval between the time points at which the two adjacent receiving devices successfully receive the identification of the synchronization signal. In the prior art, a sending device sends aggregation packets to N receiving devices in sequence, and if two adjacent receiving devices both successfully receive the aggregation packets, the relative delay for playing music between the two adjacent receiving devices is approximately: the interval between the time points at which the two adjacent receiving devices successfully receive the aggregate packet.
For example, wireless audio data is transmitted between the sending device and 2 receiving devices, and the 2 receiving devices are sequentially a WIFI wireless sound box 1 and a WIFI wireless sound box 2. By adopting the WIFI audio data transmission method provided by the embodiment of the invention, the WIFI wireless sound box 1 and the WIFI wireless sound box 2 respectively receive the aggregation packets. After the sending device detects that the WIFI wireless sound box 1 and the WIFI wireless sound box 2 both successfully receive the aggregation packet, the sending device sends the synchronous signal identification to the WIFI wireless sound box 1 and the WIFI wireless sound box 2 in sequence.
After receiving the synchronous signal identifier, the WIFI wireless sound box 1 sends the received aggregate packet to its own upper protocol stack for decoding and playing; after receiving the synchronization signal identifier, the WIFI wireless sound box 2 sends the received aggregate packet to its upper protocol stack for decoding and playing. It can be seen that the relative delay of the WIFI wireless sound box 1 with respect to the WIFI wireless sound box 2 is approximately: the interval between the time point when the WIFI wireless sound box 1 successfully receives the synchronous signal identification and the time point when the WIFI wireless sound box 2 successfully receives the synchronous signal identification is smaller than the interval between the time point when the WIFI wireless sound box 1 successfully receives the synchronous signal identification and the time point when the WIFI wireless sound box 2 successfully receives the synchronous signal identification. On the premise that the WIFI wireless sound box 2 successfully receives the synchronization signal identifier once, the relative delay of the WIFI wireless sound box 1 with respect to the WIFI wireless sound box 2 is approximately: the duration of the WIFI wireless sound box 1 successfully receiving the synchronization signal identifier is substantially approximate.
In the prior art, the sending device sequentially transmits the aggregation packets to the WIFI wireless sound boxes 1 and 2. The transmitting device transmits the aggregation packet to the WIFI wireless sound box 1. And setting that the WIFI wireless sound box 1 successfully receives the aggregation packet, feeding back a block confirmation message to the sending equipment by the WIFI wireless sound box 1, and sending the aggregation packet to an upper protocol stack for decoding and playing. After receiving the block acknowledgement message sent by the WIFI wireless sound box 1, the sending device sends the aggregation packet to the WIFI wireless sound box 2. And setting that the WIFI wireless sound box 2 successfully receives the aggregation packet, feeding back a block confirmation message to the sending equipment by the WIFI wireless sound box 2, and sending the aggregation packet to the upper protocol stack for decoding and playing. It can be seen that, in the prior art, the relative delay of the WIFI wireless sound box 1 with respect to the WIFI wireless sound box 2 is approximately: the interval between the time point at which the WIFI wireless sound box 1 successfully receives the aggregation packet and the time point at which the WIFI wireless sound box 2 successfully receives the aggregation packet is substantially similar to the duration of the time period at which the WIFI wireless sound box 1 successfully receives the aggregation packet.
In contrast, the duration of receiving and processing the aggregation packet is greater than the duration of receiving and processing the synchronization signal identifier, and therefore, the WIFI audio data transmission method provided by the embodiment of the invention can effectively reduce the relative delay of playing music between different receiving devices.
In practical applications, when a sending device sequentially sends an aggregation packet to N receiving devices, there may be a case where a certain receiving device fails to successfully receive the aggregation packet at one time. At this time, the transmitting apparatus needs to perform retransmission, and retransmit the audio data frame that was not successfully received to the receiving apparatus.
Continuing with the above example, it is set that when the WIFI wireless sound box 1 receives the aggregation packet for the first time, the audio data frame with sequence number n +1 is successfully received. When the WIFI wireless sound box 2 receives the aggregation packet for the first time, it fails to successfully receive the audio data frame with sequence number n + 1. When the WIFI wireless sound box 2 receives the aggregation packet for the second time, it successfully receives the audio data frame with the sequence number of n + 1.
For the scenario of the retransmission, in the prior art, the relative delay of the WIFI wireless sound box 1 with respect to the WIFI wireless sound box 2 is approximately: the interval between the duration that the WIFI wireless sound box 1 successfully receives the aggregation packet and the duration that the WIFI wireless sound box 2 successfully receives the aggregation packet is also the sum of the retransmission duration corresponding to the WIFI wireless sound box 2 and the duration that the WIFI wireless sound box 1 successfully receives the aggregation packet.
However, with the WIFI audio data sending method provided in the embodiment of the present invention, since the WIFI wireless sound box 1 and the WIFI wireless sound box 2 perform decoding and playing of the aggregation packet after receiving the synchronization signal identifier, the relative delay of the WIFI wireless sound box 1 with respect to the WIFI wireless sound box 2 is still approximately: the interval between the time point when the WIFI wireless sound box 1 successfully receives the synchronous signal identification and the time point when the WIFI wireless sound box 2 successfully receives the synchronous signal identification is smaller than the interval between the time point when the WIFI wireless sound box 1 successfully receives the synchronous signal identification and the time point when the WIFI wireless sound box 2 successfully receives the synchronous signal identification.
As can be seen, in the WIFI audio data method provided in the embodiment of the present invention, although the WIFI wireless sound box 2 has the condition of audio data frame retransmission, the relative delay of the WIFI wireless sound box 1 with respect to the WIFI wireless sound box 2 is not affected, that is, no additional delay is brought to data retransmission.
It should be noted that, two adjacent receiving devices described in the embodiment of the present invention may refer to: the aggregate packets are received at adjacent times. The two adjacent receiving devices described in the embodiments of the present invention do not refer to spatial adjacency.
For example, the order in which the transmitting device transmits audio packets to three receiving devices is: firstly, sending an audio data packet to the WIFI wireless sound box 1, then sending the audio data packet to the WIFI wireless sound box 2, and finally sending the audio data packet to the WIFI wireless sound box 3. Then, the WIFI wireless sound box 1 and the WIFI wireless sound box 2 are two adjacent receiving devices, and the WIFI wireless sound box 2 and the WIFI wireless sound box 3 are two adjacent receiving devices.
If the sending device and the receiving device both support the standard Downlink MU, in the prior art, the sending device sends the aggregation packet to a plurality of WIFI wireless speakers simultaneously by using the standard Downlink MU technology. When one of the WIFI wireless sound boxes fails to receive the audio data frame, the WIFI wireless sound box informs the sending equipment through Block Acknowledgement (BA). The sending equipment resends the audio data frames failed to be received to the WIFI wireless sound box, the retransmission can cause the relative delay of different WIFI wireless sound boxes, and the retransmission times are more, and the corresponding relative delay is larger.
For example, the transmitting device transmits the aggregate packet to WIFI radio enclosure 1 and WIFI radio enclosure 2 simultaneously using standard Downlink MU technology. If the WIFI wireless sound box 1 successfully receives the aggregation packet once, the WIFI wireless sound box 2 successfully receives the aggregation packet after retransmitting for 5 times, and then the relative delay between the WIFI wireless sound box 1 and the WIFI wireless sound box 2 is: the audio data frame that failed to be received is retransmitted for a time of 5 times.
In the embodiment of the present invention, the relative delay between the WIFI wireless sound box 1 and the WIFI wireless sound box 2 is: the interval between the time point when the WIFI wireless sound box 1 successfully receives the synchronous signal identification and the time point when the WIFI wireless sound box 2 successfully receives the synchronous signal identification is smaller than the interval between the time point when the WIFI wireless sound box 1 successfully receives the synchronous signal identification and the time point when the WIFI wireless sound box 2 successfully receives the synchronous signal identification. Therefore, by adopting the WIFI audio data method provided in the embodiment of the present invention, since the WIFI wireless sound boxes 1 and 2 decode and play the aggregation packet after receiving the synchronization signal identifier, no additional delay is caused by the retransmission times of the WIFI wireless sound box 2.
Moreover, because the time length required for retransmitting the synchronization signal identifier is far shorter than the time length required for retransmitting the audio data frame, in a scenario where both the transmitting device and the receiving device support the standard Downlink MU technology, the WIFI audio data transmission method provided in the embodiment of the present invention can still reduce the relative delay between the receiving devices.
In the prior art, after receiving an aggregation packet, a receiving device directly sends the aggregation packet to an upper layer protocol stack and performs decoding and playing. In the embodiment of the present invention, the sending device sends the aggregation packet to the N receiving devices first, and the N receiving devices do not directly perform decoding and playing after receiving the aggregation packet, but wait for the synchronization signal identifier sent by the sending device. After receiving the synchronization signal identifier, the N receiving devices send the aggregation packet to the upper protocol stack and perform decoding and playing. Therefore, the technical scheme provided by the embodiment of the invention can effectively reduce the relative delay between the receiving devices.
In a specific implementation, after the receiving device receives the aggregation packet, the time length for storing the aggregation packet is limited by the WIFI reorder protocol timeout mechanism, and the limited time length is usually several hundred milliseconds or even 1 s. Therefore, the sending device needs to complete sending the aggregation packet and the synchronization signal identifier to all the receiving devices within the limited duration. In the embodiment of the present invention, the aggregation degree and the retransmission times of the control aggregation packet can be adjusted according to the length and the transmission rate of each audio data frame, so as to ensure that the transmitting device completes transmission of the aggregation packet and the synchronization signal identifier to all receiving devices within the limited duration.
In practical applications, the aggregation level of the aggregation packet refers to the number of audio data frames in the aggregation packet. For example, if the aggregation level of the aggregation packet is 5, the number of audio data frames of the aggregation packet is 5.
When the length of the audio data frame is longer or the sending rate is slower, the polymerization degree of the aggregation packet can be reduced, and/or the retransmission times can be reduced; on the contrary, when the length of the audio data frame is shorter or the sending rate is faster, the aggregation degree of the aggregation packet can be increased and/or the retransmission times can be increased, so that the transmission rate and the robustness of the audio data can be improved.
Referring to fig. 2, a WIFI audio data transmitting apparatus 20 in the embodiment of the present invention is provided, including: a first sending unit 201, a judging unit 202 and a second sending unit 203, wherein:
a first sending unit 201, configured to send the same aggregation packet to N receiving devices, where the aggregation packet includes at least one audio data frame, and N is greater than or equal to 2;
a determining unit 202, configured to determine whether the N receiving devices all successfully receive the aggregation packet;
a second sending unit 203, configured to send synchronization signal identifiers to the N receiving devices after determining that the N receiving devices all successfully receive the aggregation packet; and after receiving the synchronization signal identifier, the N receiving devices decode and play the received aggregation packet.
In a specific implementation, the determining unit 202 may be configured to receive a block acknowledgement message sent by each receiving device; and judging whether the N receiving devices successfully receive the aggregation packet or not according to the block acknowledgement message corresponding to each receiving device.
In a specific implementation, the WIFI audio data transmitting apparatus 20 may further include: a third sending unit (not shown in fig. 2), configured to, after the determining unit 202 determines that the ith receiving device fails to successfully receive the aggregation packet, obtain identification information of an audio data frame that the ith receiving device did not successfully receive, where i is greater than or equal to 1 and is less than or equal to N; and according to the identification information, retransmitting the audio data frames which are not successfully received to the ith receiving equipment.
In a specific implementation, the second sending unit 203 may be configured to sequentially send the synchronization signal identifiers to the N receiving devices.
In a specific implementation, the second sending unit 203 may be configured to send the synchronization signal identifier to the N receiving devices simultaneously.
In a specific implementation, the synchronization signal identification may include any one of: a block acknowledgement request; a quality of service null frame; a frame of audio data.
The embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium is a non-volatile storage medium or a non-transitory storage medium, and computer instructions are stored on the computer-readable storage medium, and when the computer instructions are executed, the steps of the method for transmitting WIFI audio data provided in any of the above embodiments of the present invention are executed.
The embodiment of the present invention further provides another WIFI audio data transmitting apparatus, which includes a memory and a processor, where the memory stores a computer instruction that can be executed on the processor, and the processor executes the steps of the WIFI audio data transmitting method provided in any of the above embodiments of the present invention when executing the computer instruction.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by instructing the relevant hardware through a program, which may be stored in a computer-readable storage medium, and the storage medium may include: ROM, RAM, magnetic or optical disks, and the like.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (14)

1. A WIFI audio data sending method is characterized by comprising the following steps:
sending the same aggregation packet to N receiving devices to enable the N receiving devices to have reorder holes, wherein the aggregation packet comprises at least one audio data frame, and N is more than or equal to 2;
judging whether the N receiving devices successfully receive the aggregation packet;
after determining that the N receiving devices all successfully receive the aggregation packet, sending a synchronization signal identifier to the N receiving devices; and enabling the N receiving devices to skip the reorder cavity after receiving the synchronous signal identifier, and sending the received aggregation packets to an upper protocol stack for decoding and playing.
2. The method for sending WIFI audio data according to claim 1, wherein the determining whether the N receiving devices all successfully receive the aggregation packet includes:
respectively receiving a block acknowledgement message sent by each receiving device;
and judging whether the N receiving devices successfully receive the aggregation packet or not according to the block acknowledgement message corresponding to each receiving device.
3. The WIFI audio data transmission method of claim 2, after determining that the i-th receiving device fails to receive the aggregation packet, further comprising:
acquiring identification information of the audio data frame which is not successfully received by the ith receiving device, wherein i is more than or equal to 1 and less than or equal to N;
and according to the identification information, retransmitting the audio data frames which are not successfully received to the ith receiving equipment.
4. The method for transmitting WIFI audio data according to claim 1, wherein the sending synchronization signal identification to the N receiving devices includes:
and sequentially sending the synchronous signal identification to the N receiving devices.
5. The method for transmitting WIFI audio data according to claim 1, wherein the sending synchronization signal identification to the N receiving devices includes:
and simultaneously sending the synchronous signal identification to the N receiving devices.
6. The WIFI audio data transmission method according to any one of claims 1 to 5, wherein the synchronization signal identifier includes any one of: a block acknowledgement request; a quality of service null frame; a frame of audio data.
7. A WIFI audio data transmission device, comprising:
the device comprises a first sending unit, a second sending unit and a third sending unit, wherein the first sending unit is used for sending the same aggregation packet to N receiving devices, so that reorder cavities exist in the N receiving devices, the aggregation packet comprises at least one audio data frame, and N is more than or equal to 2;
a determining unit, configured to determine whether the N receiving devices all successfully receive the aggregation packet;
a second sending unit, configured to send synchronization signal identifiers to the N receiving devices after it is determined that the N receiving devices all successfully receive the aggregation packet; and enabling the N receiving devices to skip the reorder cavity after receiving the synchronous signal identifier, and sending the received aggregation packets to an upper protocol stack for decoding and playing.
8. The WIFI audio data transmission apparatus according to claim 7, wherein the determining unit is configured to receive the block acknowledgement message sent by each receiving device respectively; and judging whether the N receiving devices successfully receive the aggregation packet or not according to the block acknowledgement message corresponding to each receiving device.
9. The WIFI audio data transmission apparatus of claim 8, further comprising: a third sending unit, configured to obtain, after the determining unit determines that the ith receiving device fails to successfully receive the aggregation packet, identification information of an audio data frame that is not successfully received by the ith receiving device, where i is greater than or equal to 1 and is less than or equal to N; and according to the identification information, retransmitting the audio data frames which are not successfully received to the ith receiving equipment.
10. The WIFI audio data transmission apparatus of claim 7, wherein the second transmission unit is configured to sequentially transmit the synchronization signal identifier to the N receiving devices.
11. The WIFI audio data transmission apparatus of claim 7, wherein the second transmission unit is configured to transmit the synchronization signal identifier to the N receiving devices simultaneously.
12. A WIFI audio data transmission apparatus according to any of claims 7 to 11 characterised in that the synchronisation signal identification includes any of: a block acknowledgement request; a quality of service null frame; a frame of audio data.
13. A computer-readable storage medium, which is a non-volatile storage medium or a non-transitory storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the steps of the WIFI audio data transmission method according to any one of claims 1 to 6.
14. A WIFI audio data transmission apparatus comprising a memory and a processor, wherein the memory stores a computer program operable on the processor, and wherein the processor executes the computer program to perform the steps of the WIFI audio data transmission method according to any one of claims 1 to 6.
CN201911182743.4A 2019-11-27 2019-11-27 WIFI audio data sending method and device and computer-readable storage medium Active CN110933617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911182743.4A CN110933617B (en) 2019-11-27 2019-11-27 WIFI audio data sending method and device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911182743.4A CN110933617B (en) 2019-11-27 2019-11-27 WIFI audio data sending method and device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN110933617A CN110933617A (en) 2020-03-27
CN110933617B true CN110933617B (en) 2021-09-03

Family

ID=69846697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911182743.4A Active CN110933617B (en) 2019-11-27 2019-11-27 WIFI audio data sending method and device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN110933617B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132352A (en) * 2006-08-21 2008-02-27 中兴通讯股份有限公司 Method and system for implementing high-speed ascending grouping access characteristic
CN102104408A (en) * 2009-12-20 2011-06-22 英特尔公司 Device, system and method of simultaneously communicating with a group of wireless communication devices
CN103986564A (en) * 2014-05-09 2014-08-13 北京奇天揽胜科技有限公司 Message transmitting method and device for wireless local area network
CN108183957A (en) * 2017-12-29 2018-06-19 北京奇虎科技有限公司 Master-slave synchronisation method and device
CN109040904A (en) * 2018-10-31 2018-12-18 北京羽扇智信息科技有限公司 The audio frequency playing method and device of intelligent sound box
CN110167073A (en) * 2018-02-13 2019-08-23 华为技术有限公司 Transmit method, equipment and the Radio Network System of data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7574539B2 (en) * 2007-08-30 2009-08-11 Intel Corporation Dynamic A-MSDU enabling

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132352A (en) * 2006-08-21 2008-02-27 中兴通讯股份有限公司 Method and system for implementing high-speed ascending grouping access characteristic
CN102104408A (en) * 2009-12-20 2011-06-22 英特尔公司 Device, system and method of simultaneously communicating with a group of wireless communication devices
CN103986564A (en) * 2014-05-09 2014-08-13 北京奇天揽胜科技有限公司 Message transmitting method and device for wireless local area network
CN108183957A (en) * 2017-12-29 2018-06-19 北京奇虎科技有限公司 Master-slave synchronisation method and device
CN110167073A (en) * 2018-02-13 2019-08-23 华为技术有限公司 Transmit method, equipment and the Radio Network System of data
CN109040904A (en) * 2018-10-31 2018-12-18 北京羽扇智信息科技有限公司 The audio frequency playing method and device of intelligent sound box

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Saimon.80211 BA/BAR .《https://blog.csdn.net/h784707460/article/details/80731772》.2018,全文. *

Also Published As

Publication number Publication date
CN110933617A (en) 2020-03-27

Similar Documents

Publication Publication Date Title
US11533130B2 (en) Method and arrangement for retransmission using HARQ
KR101188648B1 (en) Method and device for realizing synchronous uplink harq processing in coordinated multiple base station receiving network
JP2010045790A (en) Method and communication apparatus for handling tti bundling retransmission
US7865549B2 (en) Method and apparatus for transmitting data frame efficiently in communication network
US10284340B2 (en) Multicast sending apparatus, multicast receiving apparatus, and multicast transmission determining method
US8483195B2 (en) Wireless communication apparatus and wireless communication method
US20160366008A1 (en) Data retransmission method and apparatus
US9467892B2 (en) Method and apparatus for transmitting data packet
JP2011509041A (en) Status report for retransmission protocol
CN107959555B (en) Data transmission method, device and storage medium based on LWAAP
WO2014056198A1 (en) Method and apparatus for transmitting harq feedback
US11026214B2 (en) Method of error recovery in transmitting and receiving voice service in packet based mobile communication systems
CN110933617B (en) WIFI audio data sending method and device and computer-readable storage medium
US11316620B2 (en) Enhanced HARQ algorithm for large round trip delay links
TW202031086A (en) Selective relay of data packets
CN110690949B (en) Information configuration method and equipment
CN111294864A (en) Wireless communication method and related wireless device
JP2023534212A (en) Terminal device, communication device, terminal device method, communication device method, and program
CN117202029A (en) Audio sharing method, main audio playing device and audio sharing system
JP2004072435A (en) Management method and management system for data transmission

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