CN105992093B - A kind of adjustment method and device of Baffle Box of Bluetooth call tone quality - Google Patents

A kind of adjustment method and device of Baffle Box of Bluetooth call tone quality Download PDF

Info

Publication number
CN105992093B
CN105992093B CN201510099083.9A CN201510099083A CN105992093B CN 105992093 B CN105992093 B CN 105992093B CN 201510099083 A CN201510099083 A CN 201510099083A CN 105992093 B CN105992093 B CN 105992093B
Authority
CN
China
Prior art keywords
data
data packet
packet
vop
voice data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510099083.9A
Other languages
Chinese (zh)
Other versions
CN105992093A (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.)
Ju Li (Zhuhai) Microelectronics Co., Ltd
Original Assignee
Torch (zhuhai) 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 Torch (zhuhai) Microelectronics Co Ltd filed Critical Torch (zhuhai) Microelectronics Co Ltd
Priority to CN201510099083.9A priority Critical patent/CN105992093B/en
Publication of CN105992093A publication Critical patent/CN105992093A/en
Application granted granted Critical
Publication of CN105992093B publication Critical patent/CN105992093B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses the adjustment methods and device of a kind of Baffle Box of Bluetooth call tone quality, to solve the problems, such as that Bluetooth audio frequency data analysis capabilities and analysis efficiency are low.The device includes: receiving module, data resolution module and voice data preserving module, wherein receiving module is used to obtain the data packet of bluetooth mould group control terminal, and data packet includes the data of data packet and status indicator two parts of data packet;Data resolution module, the data packet for being analyzed and acquired by obtain the parsing result of data packet, and according to parsing result, filter out VoP and be saved in voice data preserving module;Voice data preserving module, for the VoP filtered out to be split as voice data and status indicator two parts, voice data part is saved in L channel and the status indicator part after amplifying x times is saved in right channel, and carry out the synchronism output of left and right acoustic channels data, thus, it is possible to promote the analysis ability and analysis efficiency of Bluetooth audio frequency data.

Description

A kind of adjustment method and device of Baffle Box of Bluetooth call tone quality
Technical field
The present invention relates to Bluetooth technology field more particularly to a kind of adjustment methods and device of Baffle Box of Bluetooth call tone quality.
Background technique
As shown in fig.1, by encoded speech data and encrypting when mobile phone communication, then pass through radio frequency signal (RF) It is sent to speaker.Controller (Controller) end of speaker receives aerial voice data and parsing, then passes through UART (string Mouthful) it is sent to the end Host (master control) of speaker.Host (master control) carries out some post-processings after receiving data and then just loses to DAC (digital analog converter) holds output sound from the Speaker (loudspeaker) of speaker, and wherein Controller (controller) is external indigo plant Tooth mould group, Host (master control) are the main control chips of Baffle Box of Bluetooth.When we think to analyze Controller (controller) hair in real time It when giving the voice data of Host (master control), generally requires by third party's tool, because of the hardware resource at the end Host (master control) (dominant frequency, memory, storage) is limited.Third party's tool, that is, UART sniffer (serial ports monitor), usually used has Ellisys Or Frontline two Bluetooth protocol analyzers.
These Bluetooth protocol analyzers can grab aerial or UART (serial ports) all blue-teeth datas, and exist in real time The end PC software kit parses data, and the research and debugging to usually bluetooth protocol repertory all have very great help.
But these analysis tools all only support all voice data for exporting as wav format that will be grabbed.Work as use It derived from audio analysis tool analysis when wav file, may find that certain section of sound is abnormal, at this moment need to confirm this part sound Frequency is needed back in the matched PC tool of sniffer, according to whether there is packet loss or wrong packet from the blue-teeth data grabbed Corresponding data frame is found out in the inside, is confirmed whether packet loss or wrong packet according to the status information of frame head, this is one quite cumbersome With the process of inefficiency.
Obviously there is staccato in white positions as shown in Figure 2, when we want to confirm whether the audio data of white portion occurs When packet loss, it would be desirable to the timestamp of audio data initial position is first found from PC tool, if Fig. 3 is 148.316s, then plus The time migration 6.588s for wanting to check position in figure 2 above, obtains 154.904s.Position shown in Fig. 4 is found, as the audio data Corresponding initial data, the state (status) for analyzing its data frame is that data portion loses (data partially loss), I.e. corresponding audio data has packet loss.
And mistake is wrapped, then it can not be found from audio analysis tool.
In addition, can not simulate main control end (Host) on PC using audio file derived from UART sniffer carries out packet loss Compensation deals, can not easily count the error rate and Fault Distribution situation of audio data, and then strongly limit to sound The analysis ability of frequency evidence.
Summary of the invention
The object of the present invention is to provide the adjustment methods and device of a kind of Baffle Box of Bluetooth call tone quality, to solve the prior art Bluetooth audio frequency data analysis capabilities and the low problem of analysis efficiency.
The purpose of the present invention is what is be achieved through the following technical solutions:
A kind of debugging apparatus of Baffle Box of Bluetooth call tone quality, comprising:
Receiving module, for obtaining the data packet of bluetooth mould group control terminal, the data packet include data packet data and Status indicator two parts of data packet;
Data resolution module, the data packet for being analyzed and acquired by obtain the parsing result of data packet, and tie according to parsing Fruit filters out VoP and is saved in voice data preserving module;
The voice data preserving module, for the VoP filtered out to be split as voice data and status indicator Voice data part is saved in L channel and the status indicator part after amplifying x times is saved in right channel by two parts In, and the synchronism output of left and right acoustic channels data is carried out, wherein x is the positive number of setting.
Voice data is analyzed by homemade bluetooth debugging apparatus in this way, purchase UARTsniffer is can be avoided and generates Relatively large overhead, and the implementation method for making debugging tool by oneself is simple, and hardware requirement is low, only need to have and can receive controller end The development board of UART interface data function, it is often more important that the audio data after being grabbed by homemade bluetooth debugging apparatus It is simple and clear, it is easy to analyze, can be used for emulating the end Host to the treatment process of audio data, to is carried out to the processing of the end Host excellent Change, moreover it is possible to further the voice data of real time phone call be assessed.
Optionally, the type of data packet that the receiving module is obtained from bluetooth mould group control terminal is host controller interface Any number of combination of HCI command packet, HCI asynchronous data packets, HCI synchronization packets and HCI event package, wherein HCI is synchronous Data packet is VoP.
Optionally, the data packet being analyzed and acquired by, when obtaining the parsing result of data packet, the data resolution module is specific For:
After receiving module gets the data packet, for the data portion of data packet, the data of 1 byte are obtained, really Determine the type of data packet and the packet header length of data packet;
Packet header length based on data packet, obtains the header data of data packet, determines the data length of data packet, is solved Analyse result.
Optionally, according to parsing result, when filtering out VoP and being saved in voice data preserving module, the data Parsing module is specifically used for:
According to the parsing result of data packet, judge whether the type of the data packet is HCI synchronization packets, if so, It is VoP by the packet marking;Otherwise, the data length according to the data packet loses the data packet;
The data packet that all labels are is filtered out, the parsing result based on the VoP will be described VoP is saved in the voice data preserving module.
Optionally, the VoP filtered out is split as voice data and status indicator two parts, by voice data Part is saved in L channel and the status indicator part after amplifying x times is saved in right channel, and carries out left and right acoustic channels When the synchronism output of data, the voice data preserving module is specifically used for:
The VoP filtered out is split as voice data and status indicator two parts, voice data part is saved It is saved in right channel into L channel and by the status indicator part after amplifying x times, and by the voice number in L channel Registration process is carried out according to status indicator part in part and corresponding right channel, and carries out synchronism output.
A kind of analytical equipment of Baffle Box of Bluetooth call tone quality, comprising:
Speech data extraction module, the voice number exported in the debugging apparatus for receiving above-mentioned Baffle Box of Bluetooth call tone quality According to packet, voice data is extracted from the VoP, by the voice data part and status indicator part of VoP It is separated, obtains the voice data and status indicator of the VoP;
Voice data weight alignment module, for voice data and status indicator based on the VoP, by voice The size of data packet is adjusted to the size of the VoP of air transmission, and carries out for the status indicator of VoP Correcting process obtains revised VoP, and is output to voice data preserving module;
Voice data PLC processing module, for obtaining revised VoP, and according to the status indicator of data packet Judge whether the data of corresponding data packet carry out Discarded Packets compensation processing, if so, carrying out Discarded Packets compensation processing;Otherwise, it carries out Simple smooth processing, the VoP that obtains that treated, and it is output to the voice data preserving module;
Voice data statistical module is used for from voice data weight alignment module and voice data PLC processing module acquisition place Data packet in reason is for statistical analysis, obtains statistical result, and is output to the voice data preserving module;
Voice data preserving module is used for voice data weight alignment module, voice data PLC processing module and voice number The output file of module is saved according to statistics.
In such manner, it is possible to carry out detailed analysis further directed to the voice data of bluetooth debugging apparatus output, analytic process is straight It sees, analysis efficiency is high, improves the analysis ability for audio data, and analyze visual result.
A kind of adjustment method of Baffle Box of Bluetooth call tone quality, comprising:
The data packet of bluetooth mould group control terminal is obtained, the data packet includes the data of data packet and the state mark of data packet Know two parts;
The data packet being analyzed and acquired by obtains the parsing result of data packet, and according to parsing result, filters out voice data It wraps and is saved;
The VoP filtered out is split as voice data and status indicator two parts, voice data part is saved It is saved in right channel into L channel and by the status indicator part after amplifying x times, and carries out the same of left and right acoustic channels data Step output, wherein x is the positive number of setting.
Audio data after grabbing in this way is simple and clear, is easy to analyze, can be used for emulating the end Host to the place of audio data Reason process, to be optimized to the processing of the end Host, moreover it is possible to further assess the voice data of real time phone call.
Optionally, from bluetooth mould group control terminal obtain type of data packet be host controller interface HCI command packet, Any number of combination of HCI asynchronous data packets, HCI synchronization packets and HCI event package, wherein HCI synchronization packets are voice number According to packet.
Optionally, the data packet being analyzed and acquired by obtains the parsing result of data packet, specifically includes:
After getting the data packet, for the data portion of data packet, the data of 1 byte is obtained, determine data packet Type and data packet packet header length;
Packet header length based on data packet, obtains the header data of data packet, determines the data length of data packet, is solved Analyse result.
Optionally, it according to parsing result, filters out VoP and is saved in voice data preserving module, specifically include:
According to the parsing result of data packet, judge whether the type of the data packet is HCI synchronization packets, if so, It is VoP by the packet marking;Otherwise, the data length according to the data packet loses the data packet;
The data packet that all labels are is filtered out, the parsing result based on the VoP will be described VoP is saved.
Optionally, the VoP filtered out is split as voice data and status indicator two parts, by voice data Part is saved in L channel and the status indicator part after amplifying x times is saved in right channel, and carries out left and right acoustic channels The synchronism output of data, specifically includes:
The VoP filtered out is split as voice data and status indicator two parts, voice data part is saved It is saved in right channel into L channel and by the status indicator part after amplifying x times, and by the voice number in L channel Registration process is carried out according to status indicator part in part and corresponding right channel, and carries out synchronism output.
A kind of analysis method of Baffle Box of Bluetooth call tone quality, comprising:
The VoP exported in the adjustment method according to Baffle Box of Bluetooth call tone quality is received, from the VoP The voice data part of VoP and status indicator part are separated, obtain the voice by middle extraction voice data The voice data and status indicator of data packet;
The size of VoP is adjusted to pass in the air by voice data and status indicator based on the VoP The size of defeated VoP, and it is modified processing for the status indicator of VoP, obtain revised language Sound data packet, and exported;
It obtains revised VoP, and judges that the data of corresponding data packet are according to the status indicator of data packet No progress Discarded Packets compensation processing, if so, carrying out Discarded Packets compensation processing;Otherwise, simple smooth processing is carried out, obtains that treated VoP, and exported;
Statistical is carried out from the data packet in voice data weight alignment module and voice data PLC processing module acquisition processing Analysis, obtains statistical result, and exported;
The file for obtaining output is saved.
In such manner, it is possible to carry out detailed analysis further directed to the voice data of bluetooth debugging apparatus output, analytic process is straight It sees, analysis efficiency is high, improves the analysis ability for audio data, and analyze visual result.
Detailed description of the invention
Fig. 1 is the debugging apparatus schematic diagram of call voice data in the prior art;
Fig. 2 is that audio data the schematic diagram of packet loss occurs;
Fig. 3 and Fig. 4 passes through audio analysis job analysis result schematic diagram to be existing;
Fig. 5 is the debugging apparatus schematic diagram of the call voice data during the present invention is implemented;
Fig. 6 is the structural schematic diagram of UART tool during the present invention is implemented;
Fig. 7 is the structure connection diagram of UART tool in the embodiment of the present invention;
Fig. 8 is the operation principle schematic diagram of UART tool in the embodiment of the present invention;
Fig. 9 is UART data process of analysis schematic diagram in the embodiment of the present invention;
Figure 10 is the voice data schematic diagram that UART tool is saved in the embodiment of the present invention;
Figure 11 is the amplified schematic diagram of the voice data of UART tool preservation in the embodiment of the present invention;
Figure 12 is the operation principle schematic diagram of Baffle Box of Bluetooth call tone quality analytical equipment in the embodiment of the present invention;
Figure 13 is the structural framing schematic diagram of analytical equipment in the embodiment of the present invention;
Figure 14 is the status diagram of hollow middle data packet and the end UART VoP of the embodiment of the present invention;
Figure 15 is the output result schematic diagram of analytical equipment in the embodiment of the present invention;
Figure 16 is voice data schematic diagram of the voice data after overweight registration process in the embodiment of the present invention in Figure 11;
Figure 17 is that the voice data in the embodiment of the present invention in Figure 11 shows by the voice data of PLC before and after treatment It is intended to;
Figure 18 is the amplified schematic diagram of the part of speech data of Figure 17 in the embodiment of the present invention;
Figure 19 is the output result schematic diagram of the speech data analysis statistical module of analytical equipment during the present invention is implemented;
Figure 20 is the part of speech schematic diagram data for influencing PLC processing that analytical equipment is input in the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, is not whole embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In order to solve the disadvantage that serial ports monitor (UART sniffer) is unable to satisfy to audio data efficient analysis, in conjunction with Self-demand, using homemade UART tool, specific framework is as shown in fig.5, self-control serial ports monitors tool (UART tool) It is mainly made of UART receiving module, UART data resolution module and UART voice data preserving module three parts, specific module It constitutes refering to shown in Fig. 6.UART receiving module is responsible for the initialization of UART associated hardware interfaces and reception and the hair of UART data It send and (only needs receive capabilities here);UART data resolution module be mainly responsible for from UART receiving module obtain UART data and by Data parsing is carried out according to the format of Bluetooth Host Controller interface (HCI) data, is given to obtain desired SCO data packet UART voice data preserving module;UART voice data preserving module, which is mainly responsible for, saves voice data according to specific format It into storage medium, can both be saved in storage card, and can also be transferred on PC and be saved by universal serial bus (USB).
Requirement due to UART tool to hardware is relatively low, so can be readily convenient in development resources usually The development board for finding the condition of satisfaction made.The plate for having selected old UTS2825 scheme to carry in present invention implementation Son is used as UART tool, has the UART interface and card slot for meeting RS232 standard.By Baffle Box of Bluetooth development board bluetooth mould group TX mouthfuls of leads of UART, be connected on RX mouthfuls of leads of UART of UART tool, be inserted into the safe digital card of an enough capacity (SD card) powers on voice data when can grab call in real time to plank and is analyzed.It needs to guarantee in addition there are a bit Be two boards altogether, otherwise UART can not normal sending and receiving data, specific schematic diagram is refering to shown in Fig. 7
Below by taking UART receiving module, UART data resolution module and UART voice data preserving module as an example, introduce UART tool working principle is as follows, specifically sees shown in Fig. 8:
Step 800:UART tool receiving module obtains the data packet of bluetooth mould group control terminal, and data packet includes data packet Data and data packet status indicator two parts.
Further, the type of data packet that UART tool receiving module is obtained from bluetooth mould group control terminal is HCI command number According to packet, any number of combination of HCI asynchronous data packets, HCI synchronization packets and HCI event package, wherein HCI synchronization packets are language Sound data packet.
It is defined according to bluetooth core specification, the interaction at the end Controller and the end Host is completed by HCI, HCI It is divided into following 4 seed type packet, is specifically shown in Table 1
Table 1
Specifically, the format of the data packet of HCI specified in agreement is seen shown in Fig. 9, here by 4 kinds of HCI data packets Format is summarized as following 4 expression formulas.
HCI Command Packet:1byte type+3bytes header+N bytes data (N=header [2])
HCI ACL Data Packet:1byte type+4bytes header+N bytes data (N=header [2]|(header[3]<<8))
HCI Synchronous Data Packet:1byte type+3bytes header+N bytes data (N= header[2])
HCI Event Packet:1byte type+2bytes header+N bytes data (N=header [1])
Specifically, VoP includes the data of data packet and status indicator two parts of data packet.Refering to 2 institute of table Showing, the status indicator of VoP is indicated with binary representation, there are 00,01,10,11 4 seed types, and data are then For the voice data really needed when analysis.The correspondence meaning of four type offset of status indicator can probably understand preferably packet, mistake Packet, packet loss, part packet loss, wherein the status indicator of data packet, is sent by bluetooth module controller and is included in data packet.
Table 2
The data packet that the data resolution module of step 801:UART tool is analyzed and acquired by obtains the parsing knot of data packet Fruit, and according to parsing result, filter out the voice data preserving module that VoP is saved in UART tool.
Specifically, the data packet that the data resolution module of UART tool is analyzed and acquired by, obtains the parsing knot of data packet Fruit, detailed process are as follows: after UART tool receiving module gets data packet, for the data portion of data packet, obtain 1 word The data of section determine the type of data packet and the packet header length of data packet;It is based further on the packet header length of data packet, obtains number According to the header data of packet, the data length of data packet is determined, obtain parsing result.
Specifically, the data resolution module of UART tool filters out VoP and is saved according to according to parsing result The voice data preserving module of UART tool, detailed process are as follows: according to the parsing result of data packet, judge the type of data packet It whether is HCI synchronization packets, if so, being voice data school bag by the packet marking;Otherwise, according to the number of the data packet According to length, which is lost;Filter out the data packet that all labels are, the solution based on the VoP The VoP is saved in the voice data preserving module of UART tool by analysis result.
For example, as shown in fig.9, the data parsing of UART tool is mainly the cyclic process of state conversion, first The type state of 1 byte data parsing data packet, i.e. execution step 901 are obtained when initial, are then converted to parsing packet header state, Step 902 is executed, the header data for obtaining data packet is parsed, and determines the length of data, is finally parsing data packet The voice data that the data packet is sent to UART tool is then saved mould if VoP by data, i.e. execution step 903 Block, if not VoP, then carry out discard processing for the VoP according to the length of the data packet.In these three mistakes Cheng Zhong, there is the abnormal original state i.e. step 901 that can all return to parsing Packet type in any one state, same when being resolved to HCI When step data packet (Synchronous Data Packet), the VoP as needed gives the VoP The voice data preserving module of UART tool is handled, and for the data packet of other three types, then it directly skips over, continues to solve Analyse remaining data packet.
The VoP filtered out is split as voice data by the voice data preserving module of step 802:UART tool With status indicator two parts, voice data part is saved in L channel and protects the status indicator part after amplifying x times It is stored in right channel, and carries out the synchronism output of left and right acoustic channels data, wherein x is the positive number of setting.
For example, the language that the voice data preserving module of UART tool will be received from the data resolution module of UART tool Sound data packet (Synchronous Data Packet) is split as voice data (Data) and status indicator two parts.
Specifically, the VoP filtered out is split as voice data by the voice data preserving module of UART tool With status indicator two parts, voice data part is saved in L channel and protects the status indicator part after amplifying x times Be stored in right channel, and by L channel voice data part and corresponding right channel in status indicator part be aligned Processing, and carry out synchronism output.
In order to keep the voice data result preserved more intuitive, preferably, voice data preserving module is by voice number According to being partially saved in L channel, and the value of status indicator carries out 1000 times and amplifies and be saved in the corresponding right channel of voice data In.As shown in fig.10, the top of the segmentation of white line shown in white ovals 1 is left channel data, it is below right data, i.e., Primary voice data when top is call, is the corresponding status of voice data below.By white bottom shown in white ovals 2 Image as shown in figure 11 is obtained after corresponding left and right acoustic channels amplification, can intuitively find out that data shown in white ovals 1 are One numerical value is all 0 flat line, packet loss occurs, while its corresponding right channel numerical value such as white ovals 2 show a number The flat line that value is 2000, also implies that packet loss occurs in corresponding voice data.And what can just be omited from Figure 10 finds out this The voice data of call is more satisfactory, and the place for packet loss and wrong packet occur is less, it can be seen that UART Tool is directed to voice Data are analyzed more quick and precisely.
The file of one entitled sco.pcm of voice data preserving module final output of UART Tool, from Figure 10 See the result schematic diagram of audio analysis tool UART Tool output.
A kind of analytical equipment of Baffle Box of Bluetooth call tone quality is also provided in the embodiment of the present invention, is applied in client, it can By running the function that program realizes the analytical equipment at the end PC, it is aligned again with speech data extraction module, voice data below For module, voice data PLC processing module, voice data statistical module and voice data preserving module, analysis dress is introduced The working principle set is as follows, specifically sees shown in Figure 12, wherein the framework of analytical equipment is seen shown in Figure 13:
Step 120: the speech data extraction module of analytical equipment receives the VoP exported in UART Tool, from Voice data is extracted in the VoP, the voice data part of VoP and status indicator part are separated, Obtain the voice data and status indicator of the VoP;
Step 121: voice data weight voice data and state of the alignment module based on the VoP of analytical equipment The size of VoP, is adjusted to the size of the VoP of air transmission, and for VoP by mark Status indicator is modified processing, obtains revised VoP, and is output to voice data preserving module;
Step 122: the voice data PLC processing module of analytical equipment obtains revised VoP, and according to number Judge whether to need to carry out Discarded Packets compensation processing according to the status indicator of packet, if so, carrying out Discarded Packets compensation processing;Otherwise, it carries out Simple smoothing processing, the VoP that obtains that treated, and it is output to voice data preserving module.
Step 123: the voice data statistical module of analytical equipment is from voice data weight alignment module and voice data PLC The data packet managed in module acquisition processing is for statistical analysis, obtains statistical result, and be output to voice data preserving module.
Step 124: the voice data preserving module of analytical equipment will be at voice data weight alignment module, voice data PLC Reason module and the output result of voice data statistical module are saved.
For example, the analytical equipment can be developed quickly using sco.pcm file as input using resource powerful on PC One console application program, the processing at emulation master control (Host) end, is analyzed so as to the Processing Algorithm to the end Host And optimization.
Refering to fig. 1 shown in 3, the end PC console application program (analytical equipment) is mainly by 5 module compositions.Wherein, voice Data extraction module 130 is responsible for extracting voice data from the sco.pcm file of input, and voice data and status indicator are separated Come and gives voice data weight alignment module 131.The purpose of voice data weight alignment module 131 is an attempt to restore aerial really number According to packet and its state.Refering to fig. 1 shown in 4, since the recombination at the end controller (Controller) leads to the master control (Host) given Data packet (Packet) size at end becomes 48bytes, not with the Packet size 60bytes that uses when aerial actual transmissions Deng, and then cause to waste the partial data for being practically without packet loss in the air for packet loss due to status indication.For these waves Take, voice data weight alignment module 131 size of Packet can be reverted to 60bytes from 48bytes and to correct its corresponding State;Voice data weight alignment module 131 can data give the progress of voice data PLC processing module 132 end PC by treated Simulation process gives voice data statistical module 133 assistant analysis, gives each phase data preserving module 134 and carries out output knot Fruit saves;Voice data PLC processing module 132 is mainly will be on the PLC processing code migrating to PC at the end Host on Baffle Box of Bluetooth Synchronize simulation process.The module includes that Discarded Packets compensation processing is judged whether to according to state;Voice data counts mould Language near when 133 principal statistical of block leads to not obtain optimal PLC treatment effect due to no enough forward direction valid data Error rate in the sound data section time;Voice data preserving module 134 is mainly by voice data weight alignment module 131, voice Data PLC processing module 132 and the output result of voice data statistical module 133 are saved in file.
Refering to fig. 1 shown in 5, using sco.pcm file as input, the end PC console application program (analytical equipment) is final defeated Tri- files of realign_sco.pcm, plc_sco.pcm and info_sco.txt respectively correspond voice data weight alignment module out 131, voice data PLC processing module 132 and the processing result of voice data statistical module 133.Front is shown refering to 16 Figure 11 is by treated the result of voice data weight alignment module 131, it can be seen that shown in Figure 11 white ovals 3 originally label for The corresponding position label of packet loss does not preferably wrap (00) to the data of part packet loss as shown in Figure 16 white ovals after amendment.
It is solid that a sample rate is 8KHz that user can see with audio analysis tool open plc_sco.pcm file Sound frequency file, as shown in figure 17.Wherein, white horizontal line top be divided into left channel data represent carry out PLC compensation before language Sound data, white horizontal line lower part are divided into right data and represent the progress compensated voice data of PLC.By white bottom in Figure 17 Shown in data amplify, obtain result shown in Figure 18.In the frame of Figure 18, top voice data has disconnected part following Voice data is continuous, that is, the compensated result of PLC.Sub comparison in this way, user can be to processing result not Voice data at satisfied is analyzed, and the place dealt with improperly is seen if there is.
Figure 19 is speech data analysis statistical module as a result, the first row means the forward direction at 11.100s first Valid data are inadequate, may cause that PLC treatment effect is undesirable, have 25% data invalid in forward direction 60ms, and practical After carrying out PLC processing, it is invalid for having 50% data in forward direction 60ms.It is exactly the position of 11.100s at vertical dotted line in Figure 20 It sets, it can be seen that be implicitly present in the packet loss of one section of long period before vertical dotted line, will affect PLC treatment effect.But due to this It is precisely quiet data in period, so influence only very slight when final sound output.
The hardware interface that bluetooth module controller (Controller) end is communicated with the end master control (Host) is in addition to using UART (H4), it is also possible to use USB, SD, UART (H5), the other interfaces of PCM.Which kind of hardware communication interface no matter is used, can be used The same adjustment method, only the acquisition methods of data are different.
In conclusion the data packet of bluetooth mould group control terminal is obtained in the embodiment of the present invention by homemade UART tool, Data packet includes the data of data packet and status indicator two parts of data packet;And the data packet being analyzed and acquired by, obtain data The parsing result of packet, and according to parsing result, it filters out VoP and is saved in voice data preserving module;And it will screening VoP out is split as voice data and status indicator two parts, voice data part is saved in L channel and Status indicator part after amplifying x times is saved in right channel, and carries out the synchronism output of left and right acoustic channels data, is passed through in this way Homemade bluetooth debugging apparatus can be avoided to analyze voice data and buy the relatively large overhead that UART sniffer is generated, and Self-control UART tool implementation method is simple, and hardware requirement is low, and need to only have can receive controller end UART interface data function Development board, it is often more important that by UART tool grab after audio data it is simple and clear, be easy to analyze, can be used for The end Host is emulated to the treatment process of audio data, to optimize to the processing of the end Host, moreover it is possible to further to real time phone call Voice data assessed.
It should be understood by those skilled in the art that, the embodiment of the present invention 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 present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, 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 present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product 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 preferred embodiments of the present invention have 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 scope of the invention.
Obviously, those skilled in the art can carry out various modification and variations without departing from this hair to the embodiment of the present invention The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of debugging apparatus of Baffle Box of Bluetooth call tone quality characterized by comprising
Receiving module, for obtaining the data packet of bluetooth mould group control terminal, the data packet includes the data and data of data packet Status indicator two parts of packet;
Data resolution module, the data packet for being analyzed and acquired by obtain the parsing result of data packet, and according to parsing result, It filters out VoP and is saved in voice data preserving module;
The voice data preserving module, for the VoP filtered out to be split as voice data and status indicator two Point, voice data part is saved in L channel and the status indicator part after amplifying x times is saved in right channel, with And by L channel voice data part and corresponding right channel in status indicator part carry out registration process, and synchronize Output, wherein x is the positive number of setting.
2. device as described in claim 1, which is characterized in that the data that the receiving module is obtained from bluetooth mould group control terminal Packet type is host controller interface HCI command packet, HCI asynchronous data packets, HCI synchronization packets and HCI event package Any number of combination, wherein HCI synchronization packets are VoP.
3. device as described in claim 1, which is characterized in that the data packet being analyzed and acquired by obtains the parsing knot of data packet When fruit, the data resolution module is specifically used for:
After receiving module gets the data packet, for the data portion of data packet, the data of 1 byte is obtained, determine number According to the type of packet and the packet header length of data packet;
Packet header length based on data packet, obtains the header data of data packet, determines the data length of data packet, obtains parsing knot Fruit.
4. device as claimed in claim 1,2 or 3, which is characterized in that according to parsing result, filter out VoP preservation When to voice data preserving module, the data resolution module is specifically used for:
According to the parsing result of data packet, judge whether the type of the data packet is HCI synchronization packets, if so, by institute Stating packet marking is VoP;Otherwise, the data length according to the data packet loses the data packet;
Filter out it is all mark the data packet for being, the parsing result based on the VoP is by the voice Data packet is saved in the voice data preserving module.
5. a kind of analytical equipment of Baffle Box of Bluetooth call tone quality characterized by comprising
Speech data extraction module, for receiving the VoP exported in the described device in claim 1, from institute's predicate Voice data is extracted in sound data packet, the voice data part of VoP and status indicator part are separated, is obtained The voice data and status indicator of the VoP;
Voice data weight alignment module, for voice data and status indicator based on the VoP, by voice data The size of packet is adjusted to the size of the VoP of air transmission, and is modified for the status indicator of VoP Processing, obtains revised VoP, and be output to voice data preserving module;
Voice data PLC processing module judges for obtaining revised VoP, and according to the status indicator of data packet Whether the data of corresponding data packet carry out Discarded Packets compensation processing, if so, carrying out Discarded Packets compensation processing;Otherwise, it carries out simple Smoothing processing, the VoP that obtains that treated, and it is output to the voice data preserving module;
Voice data statistical module, for from voice data weight alignment module and voice data PLC processing module acquisition processing Data packet it is for statistical analysis, obtain statistical result, and be output to the voice data preserving module;
Voice data preserving module, for by voice data weight alignment module, voice data PLC processing module and voice data to be united The output file of meter module is saved.
6. a kind of adjustment method of Baffle Box of Bluetooth call tone quality characterized by comprising
The data packet of bluetooth mould group control terminal is obtained, the data packet includes the data of data packet and the status indicator two of data packet Part;
The data packet being analyzed and acquired by obtains the parsing result of data packet, and according to parsing result, filters out VoP simultaneously It is saved;
The VoP filtered out is split as voice data and status indicator two parts, voice data part is saved in a left side It is saved in right channel in sound channel and by the status indicator part after amplifying x times, and by the voice data portion in L channel Divide and carry out registration process with status indicator part in corresponding right channel, and carry out synchronism output, wherein x is the positive number of setting.
7. method as claimed in claim 6, which is characterized in that the type of data packet obtained from bluetooth mould group control terminal is host Any number of combination of control unit interface HCI command packet, HCI asynchronous data packets, HCI synchronization packets and HCI event package, Middle HCI synchronization packets are VoP.
8. method as claimed in claim 6, which is characterized in that the data packet being analyzed and acquired by obtains the parsing knot of data packet Fruit specifically includes:
After getting the data packet, for the data portion of data packet, the data of 1 byte is obtained, determine the class of data packet The packet header length of type and data packet;
Packet header length based on data packet, obtains the header data of data packet, determines the data length of data packet, obtains parsing knot Fruit.
9. the method as described in claim 6,7 or 8, which is characterized in that according to parsing result, filter out VoP preservation To voice data preserving module, specifically include:
According to the parsing result of data packet, judge whether the type of the data packet is HCI synchronization packets, if so, by institute Stating packet marking is VoP;Otherwise, the data length according to the data packet loses the data packet;
Filter out it is all mark the data packet for being, the parsing result based on the VoP is by the voice Data packet is saved.
10. a kind of analysis method of Baffle Box of Bluetooth call tone quality characterized by comprising
The VoP according to the method output in claim 6 is received, extracts voice data from the VoP, The voice data part of VoP and status indicator part are separated, the voice data of the VoP is obtained And status indicator;
The size of VoP is adjusted to air transmission by voice data and status indicator based on the VoP The size of VoP, and it is modified processing for the status indicator of VoP, obtain revised voice number According to packet, and exported;
Obtain revised VoP, and according to the status indicator of data packet judge corresponding data packet data whether into Row Discarded Packets compensation processing, if so, carrying out Discarded Packets compensation processing;Otherwise, simple smooth processing is carried out, the voice that obtains that treated Data packet, and exported;
It is for statistical analysis from the data packet in voice data weight alignment module and voice data PLC processing module acquisition processing, Statistical result is obtained, and is exported;
The file for obtaining output is saved.
CN201510099083.9A 2015-03-05 2015-03-05 A kind of adjustment method and device of Baffle Box of Bluetooth call tone quality Active CN105992093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510099083.9A CN105992093B (en) 2015-03-05 2015-03-05 A kind of adjustment method and device of Baffle Box of Bluetooth call tone quality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510099083.9A CN105992093B (en) 2015-03-05 2015-03-05 A kind of adjustment method and device of Baffle Box of Bluetooth call tone quality

Publications (2)

Publication Number Publication Date
CN105992093A CN105992093A (en) 2016-10-05
CN105992093B true CN105992093B (en) 2019-04-02

Family

ID=57039763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510099083.9A Active CN105992093B (en) 2015-03-05 2015-03-05 A kind of adjustment method and device of Baffle Box of Bluetooth call tone quality

Country Status (1)

Country Link
CN (1) CN105992093B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882846A (en) * 2012-08-17 2013-01-16 广东世纪网通信设备有限公司 IP voice restoration method and device
CN103955205A (en) * 2014-04-16 2014-07-30 苏州汇川技术有限公司 Remote debugging system and method of elevator controller
CN104283699A (en) * 2013-07-01 2015-01-14 中兴通讯股份有限公司 Method and device for determining service types

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020016937A1 (en) * 2000-08-02 2002-02-07 Henry Houh Method and apparatus for utilizing a network processor as part of a test system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882846A (en) * 2012-08-17 2013-01-16 广东世纪网通信设备有限公司 IP voice restoration method and device
CN104283699A (en) * 2013-07-01 2015-01-14 中兴通讯股份有限公司 Method and device for determining service types
CN103955205A (en) * 2014-04-16 2014-07-30 苏州汇川技术有限公司 Remote debugging system and method of elevator controller

Also Published As

Publication number Publication date
CN105992093A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
UA101358C2 (en) Method and apparatus for formatting headers in communication frame
CN1972247A (en) Interworking, circuit emulation service over packet and ip/mpls packet processing
CN103995567B (en) A kind of dual system intelligent interaction all-in-one and its dual system switching method
CN110505161A (en) A kind of message processing method and equipment
CN112291724A (en) 5G signaling visualization method and device
CN106998347A (en) The apparatus and method of server virtualization network share
CN102802170B (en) Obtain method, device and the base station of ethernet data frame
NZ509607A (en) Dynamically monitoring a data communication network
CN101136812B (en) Independent WIMAX base station network performance testing method and system
CN105992093B (en) A kind of adjustment method and device of Baffle Box of Bluetooth call tone quality
CN101521663B (en) Method and system for transmission of audio data
US11620250B2 (en) Systems and methods for data transfer over a shared interface
CN105263165B (en) A kind of network data based on FPGA connects packet method for splitting
CN109842856A (en) A kind of method and apparatus shielding uplink packet loss
CN104410664A (en) Full-duplex audio transmission system and method based on virtualized desktop environment
CN101697546A (en) Method for implementing protocol data unit (PDU) used for packing and unpacking network bytes
CN104202771B (en) The load-balancing method of LTE core network network interface massive dataflow
US9001670B2 (en) Monitoring apparatus, monitoring method, and computer product
CN106230660B (en) The method and device of sFlow sampling
CN105611394B (en) Video reorientation method under VDI environment and system
CN105471726A (en) Forwarding parameter passing method and equipment
CN105337897B (en) A kind of audio PTT synchronous transmission system based on RTP message
CN207926825U (en) A kind of multichannel signal collecting resolver
CN107371069B (en) A kind of audio-video fault-tolerance approach and its system
CN105207967A (en) Separating method and system of hybrid communication data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 105-1023, No.6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province

Patentee after: Ju Li (Zhuhai) Microelectronics Co., Ltd

Address before: 519085 Guangdong city of Zhuhai province Hengqin Baohua Road No. 6, room 105 -1023

Patentee before: JUXIN (ZHUHAI) MICROELECTRONICS Co.,Ltd.