CN109547946A - A kind of voice data communication method - Google Patents

A kind of voice data communication method Download PDF

Info

Publication number
CN109547946A
CN109547946A CN201811298376.XA CN201811298376A CN109547946A CN 109547946 A CN109547946 A CN 109547946A CN 201811298376 A CN201811298376 A CN 201811298376A CN 109547946 A CN109547946 A CN 109547946A
Authority
CN
China
Prior art keywords
data
broadcast
audio
audio data
time slot
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.)
Granted
Application number
CN201811298376.XA
Other languages
Chinese (zh)
Other versions
CN109547946B (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.)
Nanjing Sino Microelectronics Co Ltd
Original Assignee
Nanjing Sino Microelectronics 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 Nanjing Sino Microelectronics Co Ltd filed Critical Nanjing Sino Microelectronics Co Ltd
Priority to CN201811298376.XA priority Critical patent/CN109547946B/en
Publication of CN109547946A publication Critical patent/CN109547946A/en
Priority to US16/659,583 priority patent/US10945101B2/en
Application granted granted Critical
Publication of CN109547946B publication Critical patent/CN109547946B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • G10L19/167Audio streaming, i.e. formatting and decoding of an encoded audio signal representation into a data stream for transmission or storage purposes
    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • 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/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1829Arrangements specially adapted for the receiver end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A kind of voice data communication method is provided in the embodiment of the present application, this method comprises: after encoding at regular intervals to sent audio data, with scheduled broadcast interval broadcast transmission on the first slot;After the anchor point that broadcast transmission first broadcasts anchor point time slot plays delay scheduled duration, the audio data of broadcast decoder;Scheduled duration is used for audio data being played simultaneously in opposite end, and scheduled duration is X times of broadcast interval, and X is positive integer.Using the scheme provided in the embodiment of the present application, being played simultaneously for audio between point-to-multipoint can be realized.

Description

A kind of voice data communication method
Technical field
This application involves field of communication technology more particularly to a kind of voice data communication methods.
Background technique
The broad development of Bluetooth technology makes blue tooth products at a part for people's lives, is especially with smart phone The voice applications such as the bluetooth headset and Baffle Box of Bluetooth of the heart bring people's great convenience.
Bluetooth is mainly a kind of communication technology of point-to-point, and such network topology limits bluetooth and meets people more more Extensive demand.
For this purpose, bluetooth standard increase it is connectionless from device broadcasts technology (CSB:Connectionless Slave Broadcast), point-to-multipoint data transmission is realized.
Inventors have found that CSB agreement cannot achieve a little, audio is played simultaneously between multiple spot.
The technology of audio-visual synchronization in the prior art that is, will typically by the way of beating timestamp (Timestamp) A play time is all added on each frame audio, video data, is played simultaneously to realize.But if the method is directly used in Audio sync between point-to-multipoint under CSB agreement plays, it will bandwidth consumption is caused to increase.
It can be seen that there is presently no more perfect solution it is point-to-multipoint between audio sync play the technical issues of.
Summary of the invention
A kind of voice data communication method is provided in the embodiment of the present application, for realizing between point-to-multipoint audio it is same Step plays.
According to the first aspect of the embodiment of the present application, a kind of voice data communication method is provided, comprising: to be sent Audio data encode at regular intervals after, with scheduled broadcast interval broadcast transmission on the first slot;Wherein, a broadcast The broadcast anchor point time slot for being spaced in the first time slot sends the M frame audio data of coding;The M of fixed intervals is divided between scheduled broadcast Times, M is positive integer;After the anchor point delay scheduled duration for broadcasting anchor point time slot at broadcast transmission first, playing audio-fequency data; Scheduled duration is used for audio data being played simultaneously in opposite end, and scheduled duration is X times of broadcast interval, and X is positive integer.
According to the second aspect of the embodiment of the present application, a kind of voice data communication method is provided, comprising: with scheduled Broadcast interval receives on the first slot and demodulates audio data;Audio data is decoded;First broadcast is transferred to from solution The anchor point of anchor point time slot rises, and after postponing scheduled duration, since first is broadcasted the audio data that anchor point time slot receives, plays Decoded audio data;Scheduled duration is X times of broadcast interval, and X is positive integer;Scheduled duration is audio data prolonging in opposite end Slow play time.
Using the voice data communication method provided in the embodiment of the present application, at broadcast transmission end, by audio data by solid Fixed interval, such as encodes frame length, encodes and with scheduled broadcast interval broadcast transmission;And in first broadcast anchor point of broadcast transmission After the anchor point of gap plays delay scheduled duration, the audio data of broadcast decoder;Wherein, a length of fixed intervals when a broadcast interval M times, an interior M frame audio data for sending coding in broadcast interval, scheduled duration is X times of the broadcast interval, and M and X are positive Integer.At broadcast reception end, start in the anchor point that solution is transferred to first broadcast anchor point time slot, X times of same delayed broadcasting interval Start to play.To without realizing a little between multiple spot in the case that time synchronization data are loaded into each audio frame Audio is played simultaneously.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 shows the implement scene schematic diagram according to the embodiment of the present application;
Fig. 2 shows the streams of the voice data communication method executed according to the reception of the embodiment of the present application one and sending device Cheng Tu;
Fig. 3 shows the communication time slot distribution diagram according to the embodiment of the present application one;
Fig. 4 shows the timing diagram that synchronizing sequence is sent on three channels according to the embodiment of the present application one;
The process of the voice data communication method executed according to the receiving device of the embodiment of the present application two is shown in Fig. 5 Figure;
It is shown in Fig. 6 and the method flow diagram retransmitted is determined whether according to signal quality according in the embodiment of the present application two;
Fig. 7 shows the structural schematic diagram of the audio communication device according to the embodiment of the present application three;
Fig. 8 shows the structural schematic diagram of the audio communication device according to the embodiment of the present application four;
Fig. 9 shows the structural schematic diagram of the audio communication system according to the embodiment of the present application five;
Figure 10 shows the reception according to the embodiment of the present application six and the structural schematic diagram of sending device;
Figure 11 shows the structural schematic diagram of the receiving device according to the embodiment of the present application six.
Specific embodiment
In order to which technical solution in the embodiment of the present application and advantage is more clearly understood, below in conjunction with attached drawing to the application Exemplary embodiment be described in more detail, it is clear that described embodiment be only the application a part implement Example, rather than the exhaustion of all embodiments.It should be noted that in the absence of conflict, embodiment and reality in the application The feature applied in example can be combined with each other.
Fig. 1 shows the implement scene schematic diagram according to the embodiment of the present application.
As indicated with 1, according to the communication system of the embodiment of the present application 10, comprising: audiogenic device 100, reception and sending device 200, one or more receiving devices 300.
In the specific implementation, it can be carried out by various wireless communication protocols between audiogenic device and reception and sending device Communication, for example, bluetooth and WiFi.Specifically, it can be established according to Bluetooth protocol between audiogenic device and reception and sending device A2DP link, audiogenic device can by the audio data of SBC (sub band code, sub-band coding) be sent to reception with Sending device.It receives and sending device is while locally playing audio, one or more receptions are transmitted to by Radio Broadcasting Agreements Equipment.
In the specific implementation, between audiogenic device and reception and sending device can also by various wired communication modes into Row communication is to obtain audio data, such as internet, cable LAN, USB interface agreement;Alternatively, receiving and sending device 200 Also itself storage or the audio data recorded can be broadcasted to one or more receiving devices 300, to be played simultaneously.Therefore, it answers Work as understanding, receiving can make with the mode of the acquisition audio data of sending device 200 and concrete scheme according to specific implementation scene The adjustment of adaptability, can such as not have or without using the function of being communicated with audiogenic device 100, may not need demodulation or without solution Code audio data etc., and these specific implementation scenes are within the scope of protection of this application.
In the specific implementation, audiogenic device can be the audio source device of such as smart phone and smart television.Receive with Sending device can be plurality of devices with audio playing function, such as smart phone, earphone or speaker etc.;Receiving device It can be plurality of devices with audio playing function, such as smart phone, earphone or speaker etc..
In the specific implementation, receiving can be to sending device 200 and receiving device 300 only executes respectively corresponding function respectively The distinct device of energy.Specifically, reception and sending device, which can only have, receives and demodulates the audio data from audiogenic device; The audio data is decoded;After being recompiled at regular intervals to the decoded audio data, between scheduled broadcast Every broadcast transmission on the first slot;After the anchor point delay scheduled duration for broadcasting anchor point time slot at broadcast transmission first, broadcast Put the function of decoded audio data.And receiving device can only have from reception and sending device reception audio data, and solve The function that code is played simultaneously with reception with sending device end again.
In another embodiment specific implementation mode, it receives and is also possible to be to have simultaneously with sending device 200 and receiving device 300 The equipment of standby above two function.Specifically, it receives and all has from audiogenic device and connect with sending device 200 and receiving device 300 It receives and demodulates audio data;The audio data is decoded;The decoded audio data is recompiled at regular intervals Afterwards, with scheduled broadcast interval broadcast transmission on the first slot;The anchor point that anchor point time slot is broadcasted at broadcast transmission first rises After postponing scheduled duration, the audio data of broadcast decoder;And from receive with sending device receive audio data, and decode again with Receive the function being played simultaneously with transmitting terminal.It should be appreciated that " transmission " and " reception " at this time is relative concept, in different fields Under scape, receiving be can be interchanged with the position of sending device 200 and receiving device 300.For example, under some scene, A equipment can be with By as reception and sending device, B device is as receiving device;And under another scene, it is also possible to by B device as reception With sending device, and A equipment is as receiving device.It should be appreciated that when one in two earphones is by as " reception is set with transmission It is standby " when, another is just corresponding as " receiving device ".
It specifically, is the equipment for being provided simultaneously with above two function receiving with sending device 200 and receiving device 300 When, reception and sending device and receiving device can be determined according to various ways, for example, setting for audiogenic device will can first be accessed Standby to be used as reception and sending device, that accesses afterwards is used as receiving device;It can be using the equipment close apart from audiogenic device as reception With sending device, the equipment remote apart from audiogenic device is as receiving device;It can also be selected on audiogenic device by user Or be arranged to determine, the application to this with no restriction.
It can be to receive to set with sending device and receiving device according to different application scenarios in the embodiment of the present application Different application models, and different system parameters is configured for every kind of application model, and reception is broadcast to by synchronizing sequence and is set It is standby.Application model specifically includes that outdoor high performance mode, outdoor low latency mode, indoor high performance mode, indoor low latency mould Formula etc..The main distinction of indoor and outdoors is transmission range difference, and interference is different, and decline is different, and volume is different.Gao Xing The main distinction of energy mode and low latency mode is the difference of the requirement to audio performance with delay, and general audio performance requires high Scene can sacrifice the requirement to delay.
Embodiment one
Fig. 2 shows the streams of the voice data communication method executed according to the reception of the embodiment of the present application one and sending device Cheng Tu.
As shown in Fig. 2, the voice data communication method packet executed according to the reception of the embodiment of the present application one and sending device It includes:
S201 is received and is demodulated the audio data from audiogenic device.
In the specific implementation, S201 can be implemented using common method in the prior art, this will not be repeated here by the application.
S202 is decoded the audio data.
In the specific implementation, S202 can be implemented using common method in the prior art, this will not be repeated here by the application.
S203 after recompiling at regular intervals to the decoded audio data, is spaced in first with scheduled broadcast Broadcast transmission on time slot, wherein one is broadcasted the M frame audio number for being spaced in the broadcast anchor point time slot transmission coding of the first time slot According to;M times of fixed intervals is divided between scheduled broadcast, M is positive integer.
In the specific implementation, the mode at equal intervals that can use is recompiled, fixed intervals can be long for coded frame, and one The multiple that fixed intervals are divided between the quantity and broadcast of the coded frame sent in a broadcast interval is equal, so that wide at one The audio that the audio data transmitted in interval just corresponds to this gap length is broadcast, alternatively, transmitted in a broadcast interval The decoded play time of coded audio data is exactly a broadcast interval time length.For example, a coded frame is a length of 10ms, the i.e. fixed intervals are 10ms, enable M=2, i.e., send 2 frame audio datas in a broadcast interval;Therefore two are compiled Code frame forms the load data of a data packet;And 20ms is divided between broadcasting.At this point, the sound transmitted in the broadcast interval of 20ms Frequency is according to decoded play time i.e. 20ms.
In the specific implementation, receive with sending device in receive capabilities and sending function can pass through time division multiplexing (TDM, Time-Division Multiplexing) mode shares antenna, radio frequency transceiver and baseband processor.
Fig. 3 shows the communication time slot distribution diagram according to the embodiment of the present application one.As shown in figure 3, in the embodiment of the present application In, it is fixed for broadcasting the length at interval.In a broadcast interval, time interval resource is divided into two parts, and a part is broadcast The first time slot of the audio data recompiled is sent, alternatively referred to as " time slot ", when receiving data from audiogenic device, separately A part can be to receive data from audiogenic device and sending the second time slot of data, when audiogenic device and reception and sending device Between use bluetooth connection when, can also by the second time slot be known as " Bluetooth slots ".Second time slot can with according to whether from Audiogenic device receives data and is communicated by what communication mode with audiogenic device, and decides whether to retain.
In the specific implementation, first time slot may include continuous broadcast anchor point (Anchor Point) time slot Time slot is retransmitted with N number of broadcast, which retransmits time slot for sending the M frame audio data recompiled, the broadcast For retransmitting the M frame audio data;Wherein, which is nonnegative integer.In the specific implementation, N can be 2,3,4 etc.;M can be 4,6,8 etc..In the present invention, the start time point for broadcasting anchor point time slot is referred to as anchor point (Anchor Point) or broadcast anchor point.
In the specific implementation, which includes receiving time slot and sending time slots, is respectively used to receive from audiogenic device With transmission data.
In Fig. 3, F- > R of solid line is broadcast anchor point time slot, and F- > R of dotted line is that broadcast retransmits time slot.F- > T is to receive Sending time slots between sending device and audiogenic device, T- > F are to receive and when reception between sending device and audiogenic device Gap.That is, reception is communicated with audiogenic device by A2DP link with sending device in F- > T and T- > F time slot, audio is received Data.In F- > R time slot, receives and sending device is broadcast to the above-mentioned audio data received after the processing such as coding and connects Receiving unit.
It in the specific implementation, can also include synchronization time slot in the communication time slot according to shown in the embodiment of the present application one Sync, the synchronization time slot is for sending synchronizing sequence.
In the specific implementation, which can send behind time slot, the transmission of the synchronization time slot Period can be Y times of broadcast interval, which is positive integer.Specifically, which can be such as 6,9,12,15.
In the specific implementation, synchronizing sequence may include following information:
Broadcast interval, the interval duration being used to indicate between continuous two broadcast anchor point, for example, being 20ms;
Application model is used to indicate current transmission mode;Wherein, the application model and broadcast interval and volume With corresponding relationship.
Since the play time of the audio data transmitted in a broadcast interval is equal to the duration at the broadcast interval, receiving It is all and to postpone same scheduled duration to broadcast anchor point as synchronous base point with sending device 200 and accepting device 300 After play, and the scheduled duration is also the integral multiple at broadcast interval, therefore, without adding for each frame audio data in the present embodiment Timestamp is carried, can be realized and be played simultaneously.
Further, the present embodiment is by the way of independent broadcast transmission synchronizing sequence, and can pass through setting synchronizing sequence Sending cycle, to reduce the number of broadcast times of synchronizing sequence, to further save bandwidth consumption.
Further, mould is applied with corresponding relationship with volume by sending in synchronizing sequence in the present embodiment Formula information, can be without loading volume information for every frame audio data.
In the specific implementation, synchronizing sequence can also include broadcast number of retransmissions, be used to indicate in first time slot The number of broadcast re-transmission time slot, for example, 2,3,4 etc.: so that limited retransmissions mechanism can be realized, the prominent of data transmission can fought Caching is reduced while hair property, reduces the delay that audio plays.
In the specific implementation, synchronizing sequence can also include following information:
Bluetooth clock is used to indicate the bluetooth clock of reception and sending device, to realize the synchronization for receiving audio data;If Standby address, is used to indicate the address of reception and sending device, so that receiving side can distinguish different sending devices;AFH letter Road mapping, for negotiating useful channel that is anti-interference and using;Type of coding and rate, be used to indicate this recompile format and Rate size, for example, audio data uses opus coding, code rate 100kbps.
Application model can have corresponding with broadcast interval, broadcast number of retransmissions, type of coding and rate, volume etc. Relationship.
Specifically, application model may include outdoor high performance mode, outdoor low latency mode, indoor high performance mode, Indoor low latency mode etc..In the specific implementation, different broadcast intervals can be set according to application model, and broadcast retransmits secondary Number, type of coding and code rate and volume.For example, indoors low latency mode when, lesser broadcast can be set Interval and biggish code rate and lesser volume;In outdoor high performance mode, it is contemplated that interference free performance, it can be with Biggish broadcast number of retransmissions, lower code rate and biggish volume are set.Volume can be by different gears It indicates, for example, amount of bass, middle volume, louder volume etc..
In order to preferably utilize resource, and preferably anti-interference and decline performance is provided, can be sent on L channel The synchronizing sequence, at this point, the interval between adjacent sync sequence on each adjacent two channel can be on the same channel Two adjacent sync sequences between L/mono- that is spaced, wherein the L is positive integer.When L is 3, synchronizing sequence is sent Timing diagram is as shown in Figure 4.
As shown in figure 4, when being sent at equal intervals on three channels respectively according to synchronizing sequence in the embodiment of the present application, Interval between adjacent sync sequence on every two channel can be two adjacent sync sequences on the same channel it Between be spaced 1/3.
For example, when synchronizing sequence is sent on 0,37 and 78 channel using 2DH1 data packet respectively, synchronizing sequence interval 180ms, i.e. 288slots are 9 times of broadcast interval.Synchronizing sequence phase on three channels is 60ms, i.e. 96slots is 3 times of broadcast interval.
S204, in broadcast transmission initial time, i.e., it is predetermined that the anchor point of broadcast transmission first broadcast anchor point time slot plays delay After duration, the audio data of broadcast decoder;The scheduled duration is used for the audio data being played simultaneously in opposite end, the scheduled duration It is X times of the broadcast interval, which is positive integer.
In the specific implementation, it receives and plays the time reference that music is aligned with sending device and receiving device as broadcast anchor Point, the time to decode and audio post-processing is reserved are set as fixed delay time length, and the time span of delay is broadcast The fixation multiple X at interval.Specifically, X can be arranged according to different application models.For example, X can be 5,6,7,8 etc..
It in the specific implementation, can be with corresponding volume in the application model that is arranged in the synchronizing sequence in step S205 Audio data of the size in local broadcast decoder.So as to realize mostly with Multipoint synchronous play while, realize point with it is more Volume between point is synchronous.
Audio data is pressed between fixing using the voice data communication method in the embodiment of the present application at broadcast transmission end Every such as coding frame length encodes and with scheduled broadcast interval broadcast transmission;And anchor point time slot is broadcasted at broadcast transmission first After anchor point plays delay scheduled duration, the audio data of broadcast decoder;Wherein, M times of a length of fixed intervals when a broadcast is spaced, The M frame audio data of coding is sent in one broadcast interval, scheduled duration is X times of the broadcast interval, and M and X are positive integer. To without time synchronization data are loaded into each audio frame in the case where, may be implemented a little between multiple spot audio it is same Step plays.
Further, the embodiment of the present application does not need to encapsulate volume data in audio data and realize that volume is synchronous.Separately Outside, the present embodiment also provides preferably anti-interference and decline performance and performance with the compromise of delay, preferably in bluetooth A2DP chain Distributing radio resource between road and broadcast.
Embodiment two
The process of the voice data communication method executed according to the receiving device of the embodiment of the present application two is shown in Fig. 5 Figure.
It should be appreciated that the receiving device in the embodiment of the present application two is as the receiving end in communication.Therefore, it uses Communication time slot, broadcast interval, synchronizing sequence are and communication time slot used by the reception and sending device in embodiment one, broadcast Interval, synchronizing sequence are consistent, and the implementation of the communication time slot, broadcast interval, synchronizing sequence may refer to the embodiment of the present application one In associated description, overlaps will not be repeated.
As shown in figure 5, including: according to the voice data communication method that the receiving device of the embodiment of the present application two executes
S501 searches for and parses synchronizing sequence, to obtain: bluetooth clock;Device address;The mapping of AFH channel;Between broadcast Every;Broadcast number of retransmissions;Type of coding and rate;Application model.
In the specific implementation, in addition to the above- mentioned information carried in synchronizing sequence, receiving device can also be same according to receiving The time point that step sequence starts determines timing information, which is determined for the time point that time slot starts.
In the specific implementation, the bluetooth clock that receiving device can obtain parsing, device address, the mapping of AFH channel, extensively Interval is broadcast, broadcasts number of retransmissions, type of coding and rate, application model, timing information etc. are stored in data and protocol processor Memory in.
S502 is received on the first slot with scheduled broadcast interval and is demodulated audio data.
In the specific implementation, in receiving device side, due to the communication not being related between audiogenic device, only each Audio signal is received on the first time slot namely time slot in broadcast interval, and is demodulated into audio data.
When in the specific implementation, due to including a broadcast anchor point time slot and N number of broadcast re-transmission in each time slot Gap, it is identical that broadcast anchor point time slot and N number of broadcast in a broadcast interval, which retransmit the audio data of slot transmission,.Cause This, receiving device can receive and after solution is transferred to audio data from broadcast anchor point time slot, into the signal according to data after demodulating Quality, to determine whether to continue to retransmit time slot reception in broadcast.Specifically, when signal quality is preferable, the audio number being transferred to such as solution When correct according to CRC check, then it can stop receiving, when signal quality is not good enough, the audio data CRC check being transferred to such as solution is not Correctly, broadcast can be further received in the broadcast interval retransmit the audio data retransmitted in time slot.
It is shown in Fig. 6 and the method flow diagram retransmitted is determined whether according to signal quality according in the embodiment of the present application two.
As shown in fig. 6, determining whether that the method retransmitted includes: according to signal quality according to the embodiment of the present application two
S601, according to the broadcast number of retransmissions setting transmission thresholding in synchronizing sequence.
Specifically, which is limited to broadcast number of retransmissions+1.
Transmission time is arranged when the broadcast anchor point time slot in a broadcast interval starts to receive audio signal in S602 Number is 0.
S603 receives and demodulates the audio data in the time slot at the broadcast interval.
S604 carries out cyclic redundancy CRC check to the audio data after demodulation.
S605 judges whether the CRC check result of the audio data is correct;When correct, S606 is executed;When incorrect When, execute S607.
S606 terminates the reception to the audio data in the broadcast interval.
By S604-606, the correct load data of CRC can be transmitted to subsequent processing, such as decoded.
S607 saves the signal quality of each data segment in the load data and the load data of the audio data, will transmit Number adds 1.
S608, judges whether the number of transmissions of the audio data is equal to transmission thresholding;When the number of transmissions is not equal to transmission When thresholding, then S603 is continued to execute;When the number of transmissions is prescribed a time limit equal to transmission gate, S609 is executed.
S609, according to preservation, letter that CRC check result is each data segment in incorrect one or more load datas Number quality, handles the load data;Wherein, each data segment exists in each load data when which is according to demodulation What the signal angle difference of judgement front and back determined;And execute S606.
In the specific implementation, according to preservation, CRC check result be each number in incorrect one or more load datas According to the signal quality of section, carrying out processing to the load data may include: that the signal angle before solution adjusting data is subtracted data The difference of corresponding angle takes absolute value after judgement;The corresponding differential seat angle absolute value of all symbols of every segment signal is added up again, then It is averaging;And the conduct of angle difference corresponding to the signal-to-noise ratio of demodulated signal needs is set and judges thresholding;By actual angle error Herewith thresholding compares average value, is normal data lower than thresholding, is to be disturbed data higher than thresholding.
For example, when being modulated using DQPSK or D8PSK, it can be the signal angle before DQPSK or D8PSK solution adjusting data The difference for spending corresponding angle after subtracting data decision takes absolute value;It is again that all DQPSK or D8PSK symbols of every segment signal are corresponding Differential seat angle absolute value it is cumulative, then be averaging;Angle corresponding to the signal-to-noise ratio that demodulation DQPSK or D8PSK signal needs is set Difference, which is used as, judges thresholding.
Signal angle of each data segment in each load data before and after judgement when specifically, according to demodulation is poor, determines The signal quality of each data segment in the load data, can specifically include: according to the length of the load data, by the load data It is divided into A data segment of equal length, wherein include B symbol (symbol) in each data segment;B is the nature more than or equal to 1 Number;A is the natural number greater than 1;After the angle, θ and the judgement that calculate separately complex signal of each symbol in demodulation before judgement The angle of dataCalculate the angle, θ of the complex signal of each symbol and the angle of dataAbsolute value of the difference It calculates separately in A data segment, each data segmentWherein,For the corresponding B of B symbol in each section of load data The average value of a Δ θ;According to each data segmentDetermine the signal quality of each data segment.
For example, when being modulated using DQPSK or D8PSK,
Specifically, in one embodiment, the data that A can be comprehensively considered calculation amount by related personnel and be wanted Quality is preset, and typically, the A the big, and then calculation amount is bigger, but treated that the quality of data is also higher.If preset A, then can determine B, specifically, the length of B=load data is divided by A according to the length of load data and A.
In another embodiment, B can also be preset, and according to every data of the length of load data and setting The length B of section determines number of segment A, specifically, the length of A=load data is divided by B.For example, the length B of each data segment is set Being set to 10, i.e., each data segment includes 10 symbols, then when load data length is 100 symbols, A=100/10=10; When load data length is 80 symbols, A=80/10=8;The application to this with no restriction.
In the specific implementation, the angle of the angle, θ of complex signal of each symbol in demodulation before judgement and the data after judgement DegreeIt can be obtained using the common technology means of those skilled in the art, therefore not to repeat here by the application.
In the specific implementation, according to each data segmentThe signal quality for determining each data segment, can specifically include: when The signal quality of data segmentWhen less than or equal to pre-set threshold value, determine that the signal quality of the data segment is the first shape State;Otherwise, it determines the signal quality of the data segment is the second state.Specifically, which can be for example normal, available Deng second state can be improper, abnormal, unavailable etc..Specifically, the threshold value can be set to such as 5 degree, 8 degree, The numerical value such as 10 degree.
In the specific implementation, when the load data of preservation be one when, can using the load data of preservation as handle after Load data, and indication signal quality be the second state data segment.
Specifically, when in some cases, for example, when packet loss is serious;After a number of retransmissions, a packet CRC is received only not When correct data, it can judge whether that each data segment is normal according to signal quality.If each data segment is normal, that It is considered that the load data is not influenced by severe jamming, then send to decoding, otherwise using load data as treated Load data is sent to decoding, and indication signal quality is the data segment of the second state, for example, in subsequent execution PLC (Packet Loss Concealment, Discarded Packets compensation) processing.
It in the specific implementation, is not according to pre-save, CRC check result when the load data of preservation is multiple The signal quality of each data segment in correct multiple load datas, handles the load data, specifically includes: protecting from preparatory Deposit, CRC check result is respectively to pick out in A corresponding data section of incorrect multiple load datasThe smallest number According to section, and by the AThe smallest data segment group is combined into new load data;Using new load data as that treated is negative Data are carried, and indication signal quality is the data segment of the second state.
Specifically, when there is Liang Bao and two to wrap the above crc error data, it can select in more packets and correspond to matter in every data segment Measure best data, i.e., the average value of the corresponding differential seat angle absolute value of every data segmentThe smallest data form new data Packet.Judge that whether each new data packets data segment be normal again.If the letter of each data segment in the new data packets newly formed Number quality is not influenced by severe jamming, then is sent to decoding, conversely, load data is sent using new load data as treated To decoding, and indication signal quality is the data segment of the second state, and subsequent by data processing is lost, for example, in subsequent execution PLC processing.
In the specific implementation, it when mistake occurs for synchronization failure or reception packet header, can be handled by packet loss, rear It is continuous to execute PLC processing.
By CRC check result be it is incorrect, and load data one broadcast interval in the number of transmissions be finished when, It is the signal quality of each data segment in incorrect one or more load datas according to pre-save, CRC check result, it is right Load data is handled;With using CRC check mistake but the preferable data of signal quality come hidden loss of data to voice or The damage of audio, can effectively improve the data reliability of limited retransmissions, to improve the performance of broadcast communication.
S503 is decoded the audio data.
In the specific implementation, the decoding mutually coped with using the type of coding used when receiving and stressing newly encoded with sending device Algorithm is decoded.The type of coding that the reception uses when stressing newly encoded with sending device can be parsed from synchronizing sequence The type of coding arrived obtains.
S504, from solution is transferred to first broadcast anchor point time slot moment, after postponing scheduled duration, from first broadcast anchor The audio data that point time slot receives starts, the audio data of broadcast decoder;The scheduled duration is X times of the broadcast interval, the X For positive integer;The predetermined time length is delay play time of the audio data in opposite end.
In the specific implementation, it receives and plays the time reference that music is aligned with sending device and receiving device as broadcast anchor Point, the time to decode and audio post-processing is reserved are set as fixed delay time length, and the time span of delay is broadcast The fixation multiple X at interval.Specifically, X can be arranged according to different application models.For example, X can be 5,6,7,8 etc..
In the specific implementation, can be existed with the corresponding volume of application model in the synchronizing sequence that S501 is searched The audio data of local broadcast decoder.So as to realize between point and multiple spot while realizing mostly with Multipoint synchronous broadcasting Volume it is synchronous.
In the specific implementation, receiving device is with receiving and sending device will lead to audio sample deviation due to clock jitter, The accumulation of sampling deviation, will lead to synchronization loss.To overcome this problem, what the embodiment of the present application obtained when can be according to demodulation Synchronizing information determines the sending device for sending audio data and receives the frequency deviation of clock of the receiving device of audio data;According to Frequency deviation of clock, adjustment play clock.It is, if baseband processor provide synchronizing information show receiving device when Clock is faster with sending device than receiving, then slows down the clock of audio broadcasting.Conversely, then tuning up the clock of audio broadcasting.
Using the voice data communication method in the embodiment of the present application, connect on the first slot with scheduled broadcast interval After receiving and demodulating audio data, from solution is transferred to the anchor point of first broadcast anchor point time slot, after X times of delayed broadcasting interval, broadcast Put decoded audio data;To realize, a little audio is played simultaneously between multiple spot.
Using the voice data communication method in the embodiment of the present application, by being incorrect in CRC check result, and load It is incorrect one according to pre-save, CRC check result when the number of transmissions of the data in a broadcast interval is finished Or in multiple load datas each data segment signal quality, load data is handled;To utilize CRC check mistake but letter Number preferable data of quality carry out damage of the hidden loss of data to voice or audio, and the data that can effectively improve limited retransmissions can By property, to improve the performance of broadcast communication.
Based on the same inventive concept, a kind of audio communication device is additionally provided in the embodiment of the present application, since the audio is logical The principle that letter equipment solves the problems, such as is similar to method provided by the embodiment of the present application one, therefore the implementation of the audio communication device It may refer to the implementation of method, overlaps will not be repeated.
Embodiment three
Fig. 7 shows the structural schematic diagram of the audio communication device according to the embodiment of the present application three.
In the specific implementation, it can be according to the audio communication device of the embodiment of the present application three with audio playing function Plurality of devices, such as smart phone, earphone or speaker etc., the application to this with no restriction.
As shown in fig. 7, the audio communication device 700 according to the embodiment of the present application three includes at least: radio frequency transceiver 701, It is wide on the first slot with scheduled broadcast interval after being modulated for the audio data to data and protocol processor coding It broadcasts and send;Data and protocol processor 702, for being decoded to sent audio data;And to decoded audio number After encoding at regular intervals, it is sent to radio frequency transceiver;Wherein, wherein one is broadcasted the broadcast anchor for being spaced in the first time slot Point time slot sends the M frame audio data of coding;M times of fixed intervals is divided between scheduled broadcast, M is positive integer;Loudspeaker 703, after the anchor point for broadcasting anchor point time slot at broadcast transmission first plays delay scheduled duration, playing audio data; Scheduled duration is used for audio data being played simultaneously in opposite end, and scheduled duration is X times of broadcast interval, and X is positive integer.
In the specific implementation, a broadcast interval can specifically include: the first time slot, the audio for broadcast transmission coding Data, first time slot includes a continuous broadcast anchor point time slot and N number of broadcast retransmits time slot, and broadcast anchor point time slot is used for The M frame audio data of coding is sent, broadcast retransmits time slot for retransmitting M frame audio data;Wherein, N is nonnegative integer.
In the specific implementation, one broadcast interval can also include the second time slot, for connecing from external sound source equipment It receives data and sends data, second time slot includes receiving time slot and sending time slots;
The radio frequency transceiver 701 is also used to receive the audio data from audiogenic device in the second time slot, and demodulates;And It is wide on the first slot with scheduled broadcast interval after being modulated to the audio data that data and protocol processor recompile It broadcasts and send;
The data and protocol processor 702 are also used to be decoded the audio data after demodulation;And to decoded The audio data recompiles at regular intervals.
In the specific implementation, radio frequency transceiver can be also used for: be that periodic broadcasting sends synchronous sequence with Y times that broadcasts interval Column, synchronizing sequence carry following information:
Broadcast interval, the interval duration being used to indicate between continuous two broadcast anchor point, for example, being 20ms;
Application model is used to indicate current transmission mode;Wherein, the application model and broadcast interval and volume With corresponding relationship.
Since the play time of the audio data transmitted in a broadcast interval is equal to the duration at the broadcast interval, audio is wide The transmission broadcast and receive all be and played after postponing same scheduled duration to broadcast anchor point as synchronous base point, and this Scheduled duration is also the integral multiple at broadcast interval, therefore, without stabbing for each frame audio data load time in the present embodiment, i.e., It can be achieved to be played simultaneously.
Further, the present embodiment is by the way of independent broadcast transmission synchronizing sequence, and can pass through setting synchronizing sequence Sending cycle, to reduce the number of broadcast times of synchronizing sequence, to further save bandwidth consumption.
Further, mould is applied with corresponding relationship with volume by sending in synchronizing sequence in the present embodiment Formula information, can be without loading volume information for every frame audio data.
In the specific implementation, synchronizing sequence can also include broadcast number of retransmissions, be used to indicate in first time slot The number of broadcast re-transmission time slot, for example, 2,3,4 etc.: so that limited retransmissions mechanism can be realized, the prominent of data transmission can fought Caching is reduced while hair property, reduces the delay that audio plays.
In the specific implementation, synchronizing sequence can also include following information:
Bluetooth clock is used to indicate the bluetooth clock of reception and sending device, to realize the synchronization for receiving audio data;If Standby address, is used to indicate the address of reception and sending device, so that receiving side can distinguish different sending devices;AFH letter Road mapping, for negotiating useful channel that is anti-interference and using;Type of coding and rate, be used to indicate this recompile format and Rate size, for example, audio data uses opus coding, code rate 100kbps.
Application model can have corresponding with broadcast interval, broadcast number of retransmissions, type of coding and rate, volume etc. Relationship.In the specific implementation, radio frequency transceiver can be also used for: when sending synchronizing sequence on L channel, each adjacent two The interval between adjacent sync sequence on channel is L points be spaced between two adjacent sync sequences on the same channel One of, wherein L is positive integer.
In the specific implementation, loudspeaking implement body can be used for: according to the application model, with corresponding scheduled duration and sound It measures size and postpones playing audio-fequency data.
Using the audio communication device in the embodiment of the present application, fixed intervals coding simultaneously broadcasts hair with scheduled broadcast interval Send audio data to be sent;And after the anchor point for broadcasting anchor point time slot at broadcast transmission first plays X times of delayed broadcasting interval, The audio data of broadcast decoder;It can be realized a little that audio is played simultaneously between multiple spot.In addition, receive with sending device with connect Between receiving unit, volume is synchronized using synchronizing sequence, to realize the synchronously control of the volume mostly between multiple spot.
Therefore, the embodiment of the present application do not need to encapsulate volume and time synchronization data in music data and realize volume and Time synchronization.Also, preferably anti-interference and decline performance and performance are provided with the compromise of delay, preferably in bluetooth A2DP Distributing radio resource between link and broadcast.
Based on the same inventive concept, a kind of audio communication device is additionally provided in the embodiment of the present application, since the audio is logical The principle that letter equipment solves the problems, such as is similar to method provided by the embodiment of the present application two, therefore the implementation of the audio communication device It may refer to the implementation of method, overlaps will not be repeated.
Example IV
Fig. 8 shows the structural schematic diagram of the audio communication device according to the embodiment of the present application four.
In the specific implementation, it can be according to the audio communication device of the embodiment of the present application four with audio playing function Plurality of devices, such as smart phone, earphone or speaker etc., the application to this with no restriction.
As shown in figure 8, the audio communication device 800 according to the embodiment of the present application four includes at least: radio-frequency transmitter 801, For being received on the first slot with scheduled broadcast interval and demodulating audio data;Data and protocol processor 802, for pair Audio data is decoded;Loudspeaker 803, for postponing scheduled duration from solution is transferred to first broadcast anchor point time slot moment Afterwards, since first is broadcasted the audio data that anchor point time slot receives, the audio data of broadcast decoder;Scheduled duration is broadcast X times of interval, X are positive integer;Scheduled duration is delay play time of the audio data in opposite end.
In the specific implementation, radio-frequency transmitter can be also used for: synchronizing sequence is searched for and parses, to obtain following information: Broadcast interval, the interval duration being used to indicate between continuous two broadcast anchor point time slot initial time;Application model, for referring to Show current transmission mode;Wherein, the application model and broadcast interval, volume have corresponding relationship;The loudspeaking Device 803, according to the application model, is broadcast in the audio data of broadcast decoder with corresponding scheduled duration and volume delay It puts.
In the specific implementation, synchronizing sequence is searched for and parsed to the radio-frequency transmitter, can also obtain following information:
Number of retransmissions is broadcasted, the broadcast being used to indicate in first time slot retransmits the number of time slot;And/or
Bluetooth clock is used to indicate the bluetooth clock of sending device;And/or
Device address is used to indicate the address of sending device;And/or
The adaptive AFH channel mapping of frequency hopping, for negotiating useful channel;And/or
Type of coding and rate are used to indicate and described recompile format and rate size;
The application model and the broadcast number of retransmissions, type of coding and rate have corresponding relationship.
In the specific implementation, it can also include: baseband processor according to the audio communication device of the embodiment of the present application four, use In to the audio data progress cyclic redundancy CRC check after demodulation;When the CRC check result of audio data is correct, triggering is penetrated Frequency receiver terminates the reception to audio data in broadcast is spaced;Signal quality estimator, for being obtained from radio-frequency transmitter Take signal angle of each data segment before and after judgement in each load data poor;And when according to demodulation, each data segment is before judgement Signal angle difference afterwards determines the signal quality of each data segment in load data;Data and protocol processor are also used to from base band Manage the CRC check result that audio data is obtained at device and corresponding load data;When the CRC check result of audio data is incorrect When, the signal quality of each data segment in the load data and load data of audio data is saved, by the number of transmissions plus 1;And judge Whether the number of transmissions is equal to transmission thresholding;Wherein, transmission gate be limited to broadcast number of retransmissions add 1;When the number of transmissions is not equal to transmission When thresholding, audio data is continued in broadcast interval in triggering radio-frequency transmitter;When the number of transmissions is prescribed a time limit equal to transmission gate, According to preservation, signal quality that CRC check result is each data segment in incorrect one or more load datas, to load Data are handled;Wherein, signal angle of each data segment before and after judgement in each load data when signal quality is according to demodulation Degree difference determines.
In the specific implementation, signal quality estimator can specifically include: split cells, for the length according to load data Degree, is divided into A data segment for load data, wherein includes B symbol (symbol) in each data segment;B is more than or equal to 1 Natural number;A is the natural number greater than 1;First computing unit, for calculating separately complex signal of each symbol in demodulation before judgement Angle, θ and judgement after data angleSecond computing unit, for calculate each symbol complex signal angle, θ and The angle of dataAbsolute value of the differenceThird computing unit, for calculating separately in A data segment, each data SectionWherein,For the average value of the corresponding B Δ θ of B symbol in each section of load data;First determination unit is used According to each data segmentDetermine the signal quality of each data segment.
In the specific implementation, the first determination unit specifically can be used for: when the signal quality of data segmentIt is less than or equal to When pre-set threshold value, determine that the signal quality of data segment is first state;Otherwise, it determines the signal quality of data segment is Second state.
In the specific implementation, when the load data of preservation is one, data and protocol processes implement body can be used for: will Pre-save, CRC check result is an incorrect load data as treated load data, and indication signal matter Amount is the data segment of the second state.
In the specific implementation, when the load data of preservation is multiple, data and protocol processes implement body can be used for: from Pre-save, CRC check result is respectively to pick out in A corresponding data section of incorrect multiple load datasMost Small data segment, and by the AThe smallest data segment group is combined into new load data;Using new load data as processing Load data afterwards, and indication signal quality is the data segment of the second state.
In the specific implementation, data and protocol processor can be also used for: the synchronizing information provided according to baseband processor It determines the sending device for sending audio data and receives the frequency deviation of clock of the receiving device of audio data;According to clock frequency Deviation, adjustment play clock.
Using the audio communication device in the embodiment of the present application, received on the first slot simultaneously with scheduled broadcast interval After demodulating audio data, from solution is transferred to the anchor point of first broadcast anchor point time slot, after X times of delayed broadcasting interval, solution is played The audio data of code;To realize, a little audio is played simultaneously between multiple spot.In addition, receiving and sending device and receiving device Between, volume is synchronized using synchronizing sequence, to realize the synchronously control of the volume mostly between multiple spot.
Using the audio communication device in the embodiment of the present application, by being incorrect, and load data in CRC check result It is incorrect one or more according to pre-save, CRC check result when the number of transmissions in a broadcast interval is finished The signal quality of each data segment, handles load data in a load data;To utilize CRC check mistake but signal matter It measures preferable data and carrys out damage of the hidden loss of data to voice or audio, the data that can effectively improve limited retransmissions are reliable Property, to improve the performance of broadcast communication.
Based on the same inventive concept, a kind of audio communication system is additionally provided in the embodiment of the present application, due to the system solution Certainly the principle of problem is similar to method provided by the embodiment of the present application one and two, therefore the implementation of the system may refer to method Implementation, overlaps will not be repeated.
Embodiment five
Fig. 9 shows the structural schematic diagram of the audio communication system according to the embodiment of the present application five.
As shown in figure 9, including: reception and sending device 700 according to the audio communication system 900 of the embodiment of the present application five; One or more receiving devices 800.
In the specific implementation, receiving the implementation with sending device 700 may refer to receive and send out in the embodiment of the present application three The implementation of equipment 700 is sent, overlaps will not be repeated.
In the specific implementation, the implementation of receiving device 800 may refer to the reality of receiving device 800 in the embodiment of the present application four It applies, overlaps will not be repeated.
Using the audio communication system in the embodiment of the present application, after receiving the audio data from audiogenic device, by solid Determine space coding and with scheduled broadcast interval broadcast transmission;And the anchor point that anchor point time slot is broadcasted at broadcast transmission first rises and prolongs After slow scheduled duration, the audio data of broadcast decoder;The scheduled duration is X times of the broadcast interval, which is positive integer;It receives Equipment is transferred to first broadcast anchor point time slot in solution and is started, and also X times of delayed broadcasting interval starts to play, to realize a little and more Audio is played simultaneously between point.
In addition, receiving between sending device and receiving device, volume is synchronized using synchronizing sequence, to realize The synchronously control of volume mostly between multiple spot.
Using the audio communication system in the embodiment of the present application, receiving device by CRC check result be it is incorrect, and It is incorrect according to pre-save, CRC check result when the number of transmissions of the load data in a broadcast interval is finished The signal quality of each data segment, handles load data in one or more load datas;With using CRC check mistake, But the preferable data of signal quality carry out damage of the hidden loss of data to voice or audio, can effectively improve the number of limited retransmissions According to reliability, to improve the performance of broadcast communication.
It, below will be right by taking a specific implement scene as an example in order to make those skilled in the art better understand the application The embodiment of the present application is described in detail.
Embodiment six
Implement scene shown in FIG. 1, reception and sending device can be referred to according to the implement scene of the embodiment of the present application six It is wirelessly connected by Radio-Frequency Wireless Communication with audiogenic device, and receives audio signal of the audiogenic device by radio frequency wireless transmission. Between audiogenic device and reception and sending device A2DP link is established according to Bluetooth protocol, audiogenic device by SBC encoding Audio data is sent to reception and sending device.It receives and sending device is while locally playing audio, pass through Radio Broadcasting Agreements It is transmitted to multiple receiving devices.
In the embodiment of the present application, specific embodiment will be explained by taking indoor high performance mode as an example.
In the embodiment of the present application, it receives as shown in Figure 10 with the structure of sending device.Specifically, implemented according to the application The reception and sending device 1000 of example six, comprising: antenna 1001, radio frequency transceiver 1002, baseband processor 1003, data and association Discuss processor 1004, loudspeaker 1005.It receives and aerial wireless signal is dealt by antenna reception audiogenic device with sending device, Digital baseband signal is demodulated by radio frequency transceiver again, digital baseband signal parses data minus by digital baseband processor It carries, gives data and protocol processor is decoded as audio data.Data and protocol processor can specifically include microprocessor and The memory of data and code.Decoded audio data also passes through data and association other than giving local loudspeaker and playing View processor at regular intervals determine after coded format recompiles by peace treaty, gives baseband processor as digital baseband signal, Radiofrequency signal is modulated to by radio frequency transceiver again, finally, being sent to receiving device by antenna.
In the embodiment of the present application, the structure of receiving device is as shown in figure 11.Specifically, according to the embodiment of the present application six Receiving device 1100, comprising: antenna 1101, radio frequency transceiver 1102, baseband processor 1103, signal quality estimator 1104, Data and protocol processor 1105 and loudspeaker 1106.Antenna collects aerial signal, and radiofrequency signal is turned by radio-frequency transmitter It is changed to digital baseband signal, data and protocol processor is given to provide CRC check knot after baseband processor digital baseband data Fruit and data payload.Signal quality estimator is used for the signal quality for estimating to solve adjusting data, and the signal quality information of estimation Give the foundation of data and protocol processor as false data reconstruction.Data and protocol processor are responsible for handling CRC detection just True and crc error data, communication protocol processes and audio post-processing etc..Data and protocol processor may include micro process Device and memory, microprocessor are used to execute the program of data and protocol processes, and memory is for saving data and protocol code Deng.Signal quality estimator assesses the matter of base band data by the decision error of the baseband signal of calculating baseband demodulation data Amount, the severity being disturbed in other words.
In the present embodiment, it receives and the audio coding between sending device 1000 and receiving device 1100 selects Opus to compile Code, code rate about 100kbps;The a length of 10ms of coded frame, every frame about 125bytes, every two coded frame form a data packet Load, about 375bytes;Using the 2DH3 Packet type broadcast of the classical bluetooth of extension length, each 2DH3 packet occupies 4slots; It is receiving with sending device, receive capabilities and sending function pass through time division multiplexing (TDM) mode shared antenna, radio frequency transceiver And baseband processor.
In time-division multiplex slots, broadcast interval is fixed.In a broadcast interval, time interval resource is divided into two Point, a part is time slot, and a branch is Bluetooth slots.Specifically, broadcast interval is set as 20ms, totally 32 slots.Each In broadcast interval, broadcast packet 2DH3 is sent 3 times, i.e. anchor point is sent once, is retransmitted twice, is occupied 12slots altogether.Namely It says, in the 32slots in broadcast interval, 12slots is for broadcasting, and 20slots is for receiving and the same audiogenic device of sending device A2DP link connect.
Synchronizing sequence is sent on 0,37 and 78 channel using 2DH1 respectively.Synchronizing sequence interval 180ms, i.e., 288slots is 9 times of broadcast interval.Synchronizing sequence phase on three channels is 60ms, i.e. 96slots, is broadcast interval 3 times.The application model of synchronizing sequence is set as indoor high performance mode, and corresponding volume is medium volume.
The corresponding playout-delay of indoor high performance mode is set as 360ms.It receives and sending device is received from audiogenic device To A2DP data packet, the data for caching 240ms start to broadcast, and caching 360ms starts to play;That is, being delayed since broadcast 120ms starts to play.After receiving device receives broadcast data, the data for also caching 120ms start to play.
Specifically, it when agreement delay 120ms starts to play, receives with sending device and all receiving devices to broadcast anchor It is the synchronous base time at the time of point time slot starts, the broadcast data received in each broadcast interval, by decoding and audio Post-processing, the 6th anchor point behind 5 intervals start to play first sampled data.It is set in this way, guaranteeing to receive with transmission The audio sync that standby and all receiving devices play.
Simultaneously as the A2DP data buffer storage received from audiogenic device 240ms can be had time enough solution Due to the sudden bring audio packet loss problem of wireless channel.The audio data of broadcast transmission has been cached into 120ms, there can be foot Enough time decoders and audio post-processing, for example, packet loss and the PLC processing for losing data.
In the specific implementation, it can also be played using the synchronizing information that receiving device baseband processor provides to adjust audio Digital analog converter sample frequency.That is, if the synchronized result that baseband processor provides shows that the clock ratio of receiving device connects Receipts are fast with sending device, then slow down the clock of the digital analog converter of audio broadcasting.Conversely, then tuning up audio plays digital analog converter Clock.Since the clock jitter of bluetooth provides within the scope of +/- 40ppm, the clock adjustment of digital analog converter can use micro- Small adjusting step.
Receiving device is starting when time slot receives audio data, first according to the broadcast number of retransmissions in synchronizing sequence The thresholding that limited retransmissions are arranged is 3.Every time when new broadcast anchor point starts to receive new data packet, number of retransmissions is set as 0.In time slot, receiver receives broadcast data, is judged according to the CRC check result that baseband processor provides, if the school CRC Test correct, terminate the reception at current broadcast interval, and the correct data of CRC check give data and protocol processor decoding and Processing.If CRC check mistake, wrong data and its corresponding signal quality information are saved.Then, judge that number of retransmissions is It is no to be equal to preset limited retransmissions thresholding.If number of retransmissions, which is less than, retransmits pre-determined threshold, number of retransmissions is added 1, next Broadcast data is received in a re-transmission window.If number of retransmissions, which is equal to, retransmits pre-determined threshold 3, the wrong data of preservation is handled, and Terminate the reception at this broadcast interval.
Specifically, wrong data processing method is as follows: if the not data of crc error, all synchronization failures or reception are wrapped Head is hec error, is handled by packet loss;In the case where an only packet crc error data, then provided according to signal quality estimator The quality of data judges whether every segment data is normal;If every segment data is all normal, i.e., do not influenced by severe jamming, then gives sound The decoding of frequency decoder;Conversely, audio decoder is given to indicate abnormal data segment, by losing data processing;If there is Liang Bao and two The case where wrapping the above crc error data handles every segment data respectively, selects in more packets and corresponds to top-quality number in every segment data According to i.e. the smallest data of actual angle average error form new data packet;Whether just the every segment data of new data packets is judged again Often, if corresponding signal quality is not influenced by severe jamming, audio decoder decoding is given, conversely, giving audio decoder Device indicates abnormal data segment, by losing data processing.Packet loss or lose data pass through audio post-processing eliminate.
Using the audio communication system in the embodiment of the present application, after receiving the audio data from audiogenic device, by solid Determine space coding and with scheduled broadcast interval broadcast transmission;And the anchor point that anchor point time slot is broadcasted at broadcast transmission first rises and prolongs After slow scheduled duration, the audio data of broadcast decoder;The scheduled duration is X times of the broadcast interval, which is positive integer;It receives Equipment is transferred to first broadcast anchor point time slot in solution and is started, and also X times of delayed broadcasting interval starts to play, to realize a little and more Audio is played simultaneously between point.
In addition, receiving between sending device and receiving device, volume is synchronized using synchronizing sequence, to realize The synchronously control of volume mostly between multiple spot.
Using the audio communication system in the embodiment of the present application, receiving device by CRC check result be it is incorrect, and It is incorrect according to pre-save, CRC check result when the number of transmissions of the load data in a broadcast interval is finished The signal quality of each data segment, handles load data in one or more load datas;With using CRC check mistake, But the preferable data of signal quality carry out damage of the hidden loss of data to voice or audio, can effectively improve the number of limited retransmissions According to reliability, to improve the performance of broadcast communication.
Using the audio communication system in the embodiment of the present application, it is capable of providing preferably anti-interference and decline performance and property Can with delay compromise, and can preferably bluetooth A2DP link and broadcast between distributing radio resource.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of the application has been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the application range.
Obviously, those skilled in the art can carry out various modification and variations without departing from the essence of the application to the application Mind and range.In this way, if these modifications and variations of the application belong to the range of the claim of this application and its equivalent technologies Within, then the application is also intended to include these modifications and variations.

Claims (14)

1. a kind of voice data communication method characterized by comprising
After being encoded at regular intervals to sent audio data, with scheduled broadcast interval broadcast transmission on the first slot; Wherein, described broadcasts is spaced in the M frame audio data that the broadcast anchor point time slot transmission of the first time slot encodes;It is described scheduled M times of the fixed intervals is divided between broadcast, the M is positive integer;
After the anchor point delay scheduled duration for broadcasting anchor point time slot at broadcast transmission first, playing audio-fequency data;It is described predetermined Duration is used for the audio data being played simultaneously in opposite end, and the scheduled duration is X times of the broadcast interval, and the X is Positive integer.
2. the method according to claim 1, wherein a broadcast interval includes:
First time slot, for the audio data of broadcast transmission coding, when first time slot includes continuous broadcast anchor point Gap and N number of broadcast retransmit time slot, and the broadcast anchor point time slot is used to send the M frame audio data of coding, when the broadcast retransmits Gap is for retransmitting the M frame audio data;Wherein, the N is nonnegative integer.
3. according to the method described in claim 2, it is characterized by further comprising:
Y times with the broadcast interval is that periodic broadcasting sends synchronizing sequence, and the synchronizing sequence includes following information:
Broadcast interval, the interval duration being used to indicate between continuous two broadcast anchor point;
Application model is used to indicate current transmission mode;Wherein, the application model and broadcast interval and volume have There is corresponding relationship;
In playing audio-fequency data, according to the application model, played with corresponding scheduled duration and volume delay;
The Y is positive integer.
4. according to the method described in claim 3, it is characterized in that, the synchronizing sequence further include:
Number of retransmissions is broadcasted, the broadcast being used to indicate in first time slot retransmits the number of time slot;And/or
Bluetooth clock is used to indicate the bluetooth clock of sending device;And/or
Device address is used to indicate the address of sending device;And/or
The adaptive AFH channel mapping of frequency hopping, for negotiating useful channel;And/or
Type of coding and rate are used to indicate and described recompile format and rate size;
The application model and the broadcast number of retransmissions, type of coding and rate have corresponding relationship.
5. according to the method described in claim 3, it is characterized by further comprising:
The interval between adjacent sync sequence when sending the synchronizing sequence on L channel, on each adjacent two channel It is L/mono- being spaced between two adjacent sync sequences on the same channel, wherein the L is positive integer.
6. according to the method described in claim 2, it is characterized in that, one broadcast interval further include the second time slot, be used for Data are received from audiogenic device and send data, and second time slot includes receiving time slot and sending time slots;
The audio data from audiogenic device is received in second time slot, and is obtained after demodulated and decoding described to be sent Audio data.
7. a kind of voice data communication method characterized by comprising
It is received on the first slot with scheduled broadcast interval and demodulates audio data;
The audio data is decoded;
From solution is transferred to the anchor point of first broadcast anchor point time slot, after postponing scheduled duration, when from the first broadcast anchor point The audio data that gap receives starts, the audio data of broadcast decoder;
The scheduled duration is X times of the broadcast interval, and the X is positive integer;The scheduled duration is the audio data Delay play time in opposite end.
8. the method according to the description of claim 7 is characterized in that receiving and solving on the first slot with scheduled broadcast interval Before tune audio data, further includes:
Search for and parse synchronizing sequence, obtain following information: broadcast interval is used to indicate between continuous two broadcast anchor point It is spaced duration;Application model is used to indicate current transmission mode;Wherein, the application model and broadcast interval and volume Size has corresponding relationship;
In the audio data of broadcast decoder, according to the application model, broadcast with corresponding scheduled duration and volume delay It puts.
9. according to the method described in claim 8, also obtaining it is characterized in that, described search and parse synchronizing sequence:
Number of retransmissions is broadcasted, the broadcast being used to indicate in first time slot retransmits the number of time slot;And/or
Bluetooth clock is used to indicate the bluetooth clock of sending device;And/or
Device address is used to indicate the address of sending device;And/or
The adaptive AFH channel mapping of frequency hopping, for negotiating useful channel;And/or
Type of coding and rate are used to indicate and described recompile format and rate size;
The application model and the broadcast number of retransmissions, type of coding and rate have corresponding relationship.
10. according to the method described in claim 9, it is characterized in that, after receiving and demodulating audio data, to the audio Before data are decoded, further includes:
Cyclic redundancy CRC check is carried out to the audio data after demodulation;
When the CRC check result of the audio data is correct, terminate to connect the audio data in the broadcast is spaced It receives;
When the CRC check result of the audio data is incorrect, save the audio data load data and the load The signal quality of each data segment in data, the number of transmissions for the audio data that adds up;And judge the number of transmissions whether etc. In transmission thresholding;Wherein, the transmission gate is limited to the broadcast number of retransmissions and adds 1;
When the number of transmissions is prescribed a time limit not equal to transmission gate, the audio data is continued in broadcast interval;
When the number of transmissions is prescribed a time limit equal to transmission gate, according to preservation, CRC check result be incorrect one or more negative The signal quality for carrying each data segment in data, handles the load data;
Wherein, signal angle difference of each data segment before and after judgement is true in each load data when the signal quality is according to demodulation Fixed.
11. according to the method described in claim 10, it is characterized in that, according to each data segment in each load data when demodulating Signal angle before and after judgement is poor, determines the signal quality of each data segment in the load data, comprising:
According to the length of the load data, the load data is divided into A data segment, wherein include B in each data segment Symbol (symbol);B is the natural number more than or equal to 1;A is the natural number greater than 1;
Calculate separately the angle, θ of complex signal of each symbol in demodulation before judgement and the angle of the data after judgement
Calculate the angle, θ of the complex signal of each symbol and the angle of dataAbsolute value of the difference
It calculates separately in A data segment, each data segmentWherein,For B symbol pair in each section of load data The average value of the B Δ θ answered;
When the signal quality of data segmentWhen less than or equal to pre-set threshold value, the signal quality of the data segment is determined For first state;
Otherwise, it determines the signal quality of the data segment is the second state.
12. according to the method for claim 11, which is characterized in that when the load data of preservation is one, according to preparatory Save, CRC check result be an incorrect load data in each data segment signal quality, to the load data into Row processing, comprising:
It is incorrect one load data as treated load data using pre-save, CRC check result, and Indication signal quality is the data segment of the second state.
13. according to the method for claim 12, which is characterized in that when the load data of preservation is multiple, according to preparatory Save, CRC check result be incorrect multiple load datas in each data segment signal quality, to the load data into Row processing, comprising:
From the A corresponding data section that pre-save, CRC check result is incorrect multiple load datas, respectively select OutThe smallest data segment, and by the AThe smallest data segment group is combined into new load data;
Using the new load data as treated load data, and indication signal quality is the data segment of the second state.
14. the method according to the description of claim 7 is characterized in that further include:
The synchronizing information obtained when according to demodulation, which determines, sends the sending device of the audio data and connecing for reception audio data The frequency deviation of clock of receiving unit;
According to the frequency deviation of clock, adjustment plays clock.
CN201811298376.XA 2018-11-02 2018-11-02 Audio data communication method Active CN109547946B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811298376.XA CN109547946B (en) 2018-11-02 2018-11-02 Audio data communication method
US16/659,583 US10945101B2 (en) 2018-11-02 2019-10-22 Method, device and system for audio data communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811298376.XA CN109547946B (en) 2018-11-02 2018-11-02 Audio data communication method

Publications (2)

Publication Number Publication Date
CN109547946A true CN109547946A (en) 2019-03-29
CN109547946B CN109547946B (en) 2021-07-02

Family

ID=65845825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811298376.XA Active CN109547946B (en) 2018-11-02 2018-11-02 Audio data communication method

Country Status (1)

Country Link
CN (1) CN109547946B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351669A (en) * 2019-06-28 2019-10-18 南京中感微电子有限公司 Wireless broadcast transmission, receiving device and communication system
CN110931026A (en) * 2019-11-27 2020-03-27 南京中感微电子有限公司 Audio data communication method, equipment and system
CN111132111A (en) * 2019-12-26 2020-05-08 歌尔股份有限公司 BLE-based audio sharing method and system and computer-readable storage medium
CN112055314A (en) * 2019-06-28 2020-12-08 合肥炬芯智能科技有限公司 Bluetooth broadcast communication method, system and master device and slave device thereof
CN112330943A (en) * 2020-10-27 2021-02-05 深圳市元素创达科技有限公司 Method and device for controlling rotation of mobile phone clamping part by self-photographing remote controller
CN113114852A (en) * 2021-03-11 2021-07-13 厦门亿联网络技术股份有限公司 Audio transmission method, earphone and base station
CN115103317A (en) * 2022-05-19 2022-09-23 恒玄科技(上海)股份有限公司 Wireless communication method and assembly for audio sharing to a destination device
CN117978784A (en) * 2024-04-01 2024-05-03 深圳市龙芯威半导体科技有限公司 Low-delay connection method applied to audio communication and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996829A (en) * 2006-12-07 2007-07-11 中兴通讯股份有限公司 A method for clock synchronization via the mobile network
CN104599691A (en) * 2014-12-31 2015-05-06 小米科技有限责任公司 Audio file playing method and device
CN105530698A (en) * 2015-12-17 2016-04-27 Tcl通力电子(惠州)有限公司 Time synchronization method and system among wireless devices
US20160309258A1 (en) * 2015-04-15 2016-10-20 Qualcomm Technologies International, Ltd. Speaker location determining system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996829A (en) * 2006-12-07 2007-07-11 中兴通讯股份有限公司 A method for clock synchronization via the mobile network
CN104599691A (en) * 2014-12-31 2015-05-06 小米科技有限责任公司 Audio file playing method and device
US20160309258A1 (en) * 2015-04-15 2016-10-20 Qualcomm Technologies International, Ltd. Speaker location determining system
CN105530698A (en) * 2015-12-17 2016-04-27 Tcl通力电子(惠州)有限公司 Time synchronization method and system among wireless devices

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351669A (en) * 2019-06-28 2019-10-18 南京中感微电子有限公司 Wireless broadcast transmission, receiving device and communication system
CN112055314A (en) * 2019-06-28 2020-12-08 合肥炬芯智能科技有限公司 Bluetooth broadcast communication method, system and master device and slave device thereof
CN110351669B (en) * 2019-06-28 2022-05-31 南京中感微电子有限公司 Bluetooth wireless broadcast transmitting and receiving method, equipment and communication system
CN110931026A (en) * 2019-11-27 2020-03-27 南京中感微电子有限公司 Audio data communication method, equipment and system
CN111132111A (en) * 2019-12-26 2020-05-08 歌尔股份有限公司 BLE-based audio sharing method and system and computer-readable storage medium
CN111132111B (en) * 2019-12-26 2023-12-22 歌尔股份有限公司 BLE-based audio sharing method, system and computer readable storage medium
CN112330943A (en) * 2020-10-27 2021-02-05 深圳市元素创达科技有限公司 Method and device for controlling rotation of mobile phone clamping part by self-photographing remote controller
CN113114852A (en) * 2021-03-11 2021-07-13 厦门亿联网络技术股份有限公司 Audio transmission method, earphone and base station
CN115103317A (en) * 2022-05-19 2022-09-23 恒玄科技(上海)股份有限公司 Wireless communication method and assembly for audio sharing to a destination device
CN115103317B (en) * 2022-05-19 2024-06-11 恒玄科技(上海)股份有限公司 Wireless communication method and assembly for audio sharing to destination device
CN117978784A (en) * 2024-04-01 2024-05-03 深圳市龙芯威半导体科技有限公司 Low-delay connection method applied to audio communication and related equipment
CN117978784B (en) * 2024-04-01 2024-06-25 深圳市龙芯威半导体科技有限公司 Low-delay connection method applied to audio communication and related equipment

Also Published As

Publication number Publication date
CN109547946B (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN109450490B (en) A kind of voice data communication equipment and system
CN109547946A (en) A kind of voice data communication method
CN110913375B (en) Wireless communication system and equipment
US10271152B1 (en) Synchronization of wireless headphones
US10945101B2 (en) Method, device and system for audio data communication
US11259192B2 (en) Ultra-low latency audio over bluetooth
CN110931026B (en) Audio data communication method, equipment and system
US10454811B2 (en) Apparatus and method for de-jitter buffer delay adjustment
CN103888818B (en) A kind of television program playing method, equipment and system
CN111031437B (en) Wireless earphone assembly and communication method thereof
US9525569B2 (en) Enhanced circuit-switched calls
US20230199382A1 (en) Method and device for transmitting audio data based on Bluetooth Low Energy
JP6485816B2 (en) User equipment and method for communicating data
CN112312369A (en) Low-delay wireless audio transmitting and receiving method and equipment
JP6485815B2 (en) Communication system, infrastructure device and method
US11102565B1 (en) Low latency Bluetooth earbuds
CN113242546A (en) Audio forwarding method, device and storage medium
US7924765B2 (en) Method and system for improved wireless communications payload
CN111385045B (en) Audio data communication system
CN109412624A (en) A kind of voice data communication system and helmet
US10778479B1 (en) Systems and methods for wireless transmission of audio information
CN104025491B (en) Method and apparatus for using group identification to carry out acknowledgement
CN111383644B (en) Audio communication method, equipment and system
CN112291719B (en) Method for transmitting and receiving data in flexible time slot, and transmitting device and system
US11190862B1 (en) Enhanced high frequency avalanche relay protocol

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