Method for synchronizing states between audio ends and sending audio data packets and audio equipment

文档序号:1784625 发布日期:2019-12-06 浏览:24次 中文

阅读说明:本技术 音频端之间状态同步、发送音频数据包的方法及音频设备 (Method for synchronizing states between audio ends and sending audio data packets and audio equipment ) 是由 王岩炯 于 2018-05-28 设计创作,主要内容包括:本公开涉及一种音频端之间状态同步的方法、发送音频数据包的方法、音频端系统、音频源及计算机可读存储介质。该方法包括:在第N时隙,第一音频端和第二音频端分别接收音频数据包;在第N+1时隙,所述第二音频端确认所述第一音频端在所述第N时隙是否接收到所述音频数据包,以得到第一确认结果;在第N+2时隙,所述第一音频端确认所述第二音频端在所述第N时隙是否接收到所述音频数据包,以得到第二确认结果;根据所述第一确认结果和所述第二确认结果,所述第一音频端或所述第二音频端确定所述第一音频端与所述第二音频端之间是否状态同步。(the present disclosure relates to a method of state synchronization between audio terminals, a method of transmitting audio data packets, an audio end system, an audio source, and a computer-readable storage medium. The method comprises the following steps: in the Nth time slot, the first audio end and the second audio end respectively receive audio data packets; in the N +1 th time slot, the second audio end determines whether the first audio end receives the audio data packet in the nth time slot, so as to obtain a first determination result; in the N +2 th time slot, the first audio end determines whether the second audio end receives the audio data packet in the nth time slot, so as to obtain a second determination result; and according to the first confirmation result and the second confirmation result, the first audio end or the second audio end determines whether the state between the first audio end and the second audio end is synchronous or not.)

1. A method for state synchronization between audio ends, the method comprising:

In the Nth time slot, the first audio end and the second audio end respectively receive audio data packets, wherein N is any integer greater than or equal to zero;

In the N +1 th time slot, the second audio end determines whether the first audio end receives the audio data packet in the nth time slot, so as to obtain a first determination result;

in the N +2 th time slot, the first audio end determines whether the second audio end receives the audio data packet in the nth time slot, so as to obtain a second determination result;

And according to the first confirmation result and the second confirmation result, the first audio end or the second audio end determines whether the state between the first audio end and the second audio end is synchronous or not.

2. The method according to claim 1, wherein in the N +1 th time slot, the second audio end determining whether the first audio end receives the audio data packet in the nth time slot to obtain a first determination result, including:

In the N +1 th time slot, if the second audio end monitors an ACK packet sent by the first audio end, the first acknowledgement result is that the first audio end receives the audio data packet in the nth time slot;

In the N +1 th time slot, if the second audio end monitors a NAK packet sent by the first audio end, or the second audio end does not monitor an ACK packet sent by the first audio end in the N +1 th time slot, the first acknowledgement result is that the first audio end does not receive the audio data packet in the N th time slot.

3. The method according to claim 1, wherein in the N +2 th time slot, the first audio peer determining whether the second audio peer receives the audio data packet in the nth time slot to obtain a second determination result, comprising:

In the N +2 th time slot, if the first audio end receives a received status packet sent by the second audio end, or the first audio end does not receive a data packet transmission request sent by the second audio end in the N +2 th time slot, the second acknowledgement result is that the second audio end receives the audio data packet in the nth time slot;

in the N +2 th time slot, if the first audio end receives a data packet transmission request sent by the second audio end or does not receive a receiving status packet, the second acknowledgement result is that the second audio end does not receive the audio data packet in the nth time slot.

4. The method of claim 1, wherein the determining, by the first audio end, whether the first audio end and the second audio end are state-synchronized according to the first confirmation result and the second confirmation result comprises:

if the first audio end and the second audio end both receive the audio data packet in the Nth time slot, the first audio end or the second audio end determines that the states of the first audio end and the second audio end are synchronous;

if at least one of the first audio end and the second audio end does not receive the audio data packet in the Nth time slot, the first audio end or the second audio end determines that the state of the first audio end is not synchronous with the state of the second audio end.

5. the method according to claim 1, wherein after the second audio end acknowledges that the first audio end receives the audio data packet at the nth time slot at the N +1 th time slot, the method further comprises:

if the second audio end does not receive the audio data packet in the nth time slot, the second audio end sends the data packet transmission request or the unreceived receiving state packet to the first audio end in the N +2 th time slot;

and in the N +3 time slot, the first audio end sends a requested audio data packet to the second audio end, wherein the requested audio data packet is the audio data packet or a part of audio data packets of a specific sound channel in the audio data packet.

6. the method of claim 5, further comprising:

if the second audio end does not receive the requested audio data packet in the N +3 time slot, the second audio end sends the data packet transmission request or the non-received receiving status packet to the first audio end in the N +4 time slot until the second audio end receives the requested audio data packet sent by the first audio end.

7. The method according to claim 1, wherein after the second audio end confirms that the first audio end does not receive the audio data packet in the nth time slot at the N +1 th time slot, the method further comprises:

In the (N + M) th time slot, the first audio end and the second audio end respectively receive the audio data packet, and M is an integer greater than 1;

at the N + M +1 time slot, the second audio end determines whether the first audio end receives the audio data packet at the N + M time slot, so as to obtain a third determination result;

In the N + M +2 th time slot, the first audio end determines whether the second audio end receives the audio data packet in the N + M time slot, so as to obtain a fourth determination result;

and according to the third confirmation result and the fourth confirmation result, or according to the third confirmation result and the second confirmation result, the first audio end or the second audio end determines whether the state between the first audio end and the second audio end is synchronous or not.

8. The method of claim 7, wherein determining, by the first audio end or the second audio end according to the third confirmation result and the fourth confirmation result or according to the third confirmation result and the second confirmation result, whether the state of the first audio end and the second audio end is synchronized comprises:

if the first audio end receives the audio data packet at the N + M time slot and the second audio end receives the audio data packet at the N time slot, or if the first audio end and the second audio end both receive the audio data packet at the N + M time slot, the first audio end or the second audio end determines that the states of the first audio end and the second audio end are synchronous;

If the first audio end does not receive the audio data packet in the N + M time slot, or the second audio end does not receive the audio data packet in both the N time slot and the N + M time slot, the first audio end or the second audio end determines that the first audio end and the second audio end are not in state synchronization.

9. A method of transmitting audio data packets, for application to an audio source, the method comprising:

In the Nth time slot, sending audio data packets to the first audio end and the second audio end, wherein N is any integer greater than or equal to zero;

At the N +1 th time slot, confirming whether the first audio end receives the audio data packet at the Nth time slot;

and when the first audio end is determined not to receive the audio data packet in the Nth time slot, sending the audio data packet to the first audio end and the second audio end again in the (N + M) th time slot so as to enable the state between the first audio end and the second audio end to be synchronous, wherein M is an integer greater than 1.

10. the method of claim 9, wherein the step of confirming whether the audio packet is received by the first audio end in the nth time slot in the N +1 th time slot comprises:

In the N +1 th time slot, if the audio source receives an ACK packet sent by the first audio end, determining that the first audio end receives the audio data packet in the Nth time slot;

In the N +1 th time slot, if the audio source receives an NCK packet sent by the first audio end, or if the audio source does not receive an ACK packet sent by the first audio end in the N +1 th time slot, it is determined that the first audio end does not receive the audio data packet in the N th time slot.

11. An audio-end system, comprising a first audio end and a second audio end, wherein the first audio end and the second audio end respectively comprise a radio frequency transceiver unit for performing the method according to any one of claims 1 to 8.

12. an audio source, comprising:

Radio frequency transceiver unit for performing the method of claim 9 or 10.

13. A computer-readable storage medium, on which computer program instructions are stored, which program instructions, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 10.

22页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种以太网中具有实时传输功能的上位机及以太网系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!