CN105992093A - Method and device for debugging Bluetooth sound box conversation sound quality - Google Patents

Method and device for debugging Bluetooth sound box conversation sound quality Download PDF

Info

Publication number
CN105992093A
CN105992093A CN201510099083.9A CN201510099083A CN105992093A CN 105992093 A CN105992093 A CN 105992093A CN 201510099083 A CN201510099083 A CN 201510099083A CN 105992093 A CN105992093 A CN 105992093A
Authority
CN
China
Prior art keywords
packet
data
speech data
vop
module
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
CN201510099083.9A
Other languages
Chinese (zh)
Other versions
CN105992093B (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 a method and device for debugging Bluetooth sound box conversation sound quality so as to solve the problems of low Bluetooth audio data analysis ability and analysis efficiency. The device comprises a receiving module, a data analyzing module, and a voice data storing module, wherein the receiving module is used for acquiring the data packet of a Bluetooth module control terminal, the data packet comprises the data of the data packet and the state identification of the data packet, the data analyzing module is used for analyzing the obtained data packet, obtaining the analysis result of the data packet, screening a voice data packet according to an analysis result, and storing the voice data packet into the voice data storing module, the voice data storing module is used for dividing the voice data packet into a voice data part and a state identification part, storing the voice data part into a left sound channel and storing the state identification part which is amplified by x times into the right sound channel, and carries out the synchronous output of left and right sound channel data, and thus the analysis ability and analysis efficiency of the Bluetooth audio data can be improved.

Description

The adjustment method of a kind of Baffle Box of Bluetooth call tone quality and device
Technical field
The present invention relates to Bluetooth technology field, particularly relate to a kind of Baffle Box of Bluetooth call tone quality adjustment method and Device.
Background technology
Refering to shown in Fig. 1, during mobile phone communication, by encoded speech data and encrypt, then pass through less radio-frequency Signal (RF) is sent to audio amplifier.Controller (Controller) end of audio amplifier receives aerial speech data And resolve, Host (master control) end of audio amplifier then it is sent to by UART (serial ports).Host (master control) Carry out some later stage process after receiving data the most just to lose to DAC (digital to analog converter) from the Speaker of audio amplifier (loudspeaker) end output sound, wherein Controller (controller) is external bluetooth module, and Host is (main Control) it is the main control chip of Baffle Box of Bluetooth.When we think that real-time analysis Controller (controller) sends During to the speech data of Host (master control), generally require by third party's instrument, because Host (master control) The hardware resource (dominant frequency, internal memory, storage) of end is limited.Third party's instrument i.e. UART sniffer (serial ports Audiomonitor), the normally used Bluetooth protocol analyser having Ellisys or Frontline two.
These Bluetooth protocol analysers can capture aerial or all blue-teeth datas of UART (serial ports), And real-time data parsing, research and debugging to bluetooth protocol repertory at ordinary times being had at PC end software kit The biggest help.
But these analytical tools the most only support all speech datas exporting as wav form that will grab. When the wav file using audio analysis tool analysis to derive, may find that certain section of sound is abnormal, this Time need to confirm whether this portion of audio data packet loss or wrong bag occurs, need to return to sniffer supporting In PC instrument, inside the blue-teeth data grabbed, find out the Frame of correspondence, believe according to the state of frame head Breath is confirmed whether packet loss or wrong bag, and this is an and process for inefficiency the most loaded down with trivial details.
Substantially there is staccato in white positions as shown in Figure 2, when we want that the voice data confirming white portion is No time packet loss occurs, it would be desirable to from PC instrument, first to find the timestamp of voice data original position, as Fig. 3 is 148.316s, adds the time migration 6.588s wanting to check position in Fig. 2, obtains 154.904s. Find position shown in Fig. 4, be the initial data that this voice data is corresponding, analyze the state of its Frame (status) being that data division loses (data partially loss), i.e. corresponding voice data has packet loss.
And for mistake bag, then cannot find from audio analysis instrument.
It addition, the audio file utilizing UART sniffer to derive cannot simulate main control end (Host) on PC Carry out Discarded Packets compensation process, it is impossible to count error rate and the Fault Distribution situation of voice data easily, enter And strongly limit the analysis ability to voice data.
Summary of the invention
It is an object of the invention to provide adjustment method and the device of a kind of Baffle Box of Bluetooth call tone quality, existing to solve There are technology Bluetooth audio frequency data analysis capabilities and the low problem of analysis efficiency.
It is an object of the invention to be achieved through the following technical solutions:
A kind of debugging apparatus of Baffle Box of Bluetooth call tone quality, including:
Receiver module, controls the packet of end for obtaining bluetooth module, and described packet includes packet Status indicator two parts of data and packet;
Data resolution module, for the packet being analyzed and acquired by, it is thus achieved that the analysis result of packet, and depends on According to analysis result, filter out VoP and be saved in speech data preservation module;
Described speech data preserves module, for the VoP filtered out is split as speech data and shape State identifies two parts, the status indicator after speech data part being saved in L channel and amplifying x times Part is saved in R channel, and carries out the synchronism output of left and right acoustic channels data, and wherein x is the positive number set.
So analyze speech data by homemade bluetooth debugging apparatus, it is possible to avoid buying UART The relatively large overhead that sniffer produces, and the implementation method making debugging acid by oneself is simple, and hardware requirement is low, only Need to have the development board being able to receive that controller end UART interface data function, it is often more important that pass through Voice data after homemade bluetooth debugging apparatus captures is simple and clear, it is easy to analyze, and can be used for emulating Host The end processing procedure to voice data, thus Host end is processed and is optimized, moreover it is possible to further in real time The speech data of call is estimated.
Optionally, the type of data packet that described receiver module controls end acquisition from bluetooth module is console controller Appointing of interface HCI command packet, HCI asynchronous data packets, HCI synchronization packets and HCI event bag Meaning kind combination, wherein HCI synchronization packets is VoP.
Optionally, the packet being analyzed and acquired by, it is thus achieved that during the analysis result of packet, described data parsing Module specifically for:
After receiver module gets described packet, for the data division of packet, obtain 1 byte Data, determine the type of packet and the packet header length of packet;
Packet header based on packet length, obtains the header data of packet, determines the data length of packet, Obtain analysis result.
Optionally, according to analysis result, filter out VoP and be saved in speech data when preserving module, Described data resolution module specifically for:
Analysis result according to packet, it is judged that whether the type of described packet is HCI synchronization packets, It is the most then VoP by described packet marking;Otherwise, according to the data length of described packet, Described packet is lost;
Filter out all packets being labeled as VoP, analysis result based on described VoP Described VoP is saved in described speech data and preserves module.
Optionally, the VoP filtered out is split as speech data and status indicator two parts, by language Status indicator part after sound data division is saved in L channel and will amplify x times is saved in R channel In, and when carrying out the synchronism output of left and right acoustic channels data, described speech data preserve module specifically for:
The VoP filtered out is split as speech data and status indicator two parts, by speech data portion Status indicator part after code insurance is stored in L channel and will amplify x times is saved in R channel, and will In speech data part in L channel and corresponding R channel, status indicator part carries out registration process, goes forward side by side Row synchronism output.
A kind of analytical equipment of Baffle Box of Bluetooth call tone quality, including:
Speech data extraction module, output in the debugging apparatus receiving above-mentioned Baffle Box of Bluetooth call tone quality VoP, extracts speech data, by the speech data portion of VoP from described VoP Divide and status indicator part separates, obtain speech data and the status indicator of described VoP;
Speech data weight alignment module, for speech data based on described VoP and status indicator, The size of VoP is adjusted to the size of the VoP of air transmission, and for speech data The status indicator of bag is modified processing, and obtains revised VoP, and exports speech data guarantor Storing module;
Speech data PLC processing module, is used for obtaining revised VoP, and according to packet Status indicator judge whether the data of packet of correspondence carry out Discarded Packets compensation process, the most then lose Bag compensation deals;Otherwise, carry out simple smooth process, the VoP after being processed, and export arrive Described speech data preserves module;
Speech data statistical module, for processing mould from speech data weight alignment module and speech data PLC Packet during block acquisition processes carries out statistical analysis, obtains statistical result, and exports described speech data Preserve module;
Speech data preserves module, and for by speech data weight alignment module, speech data PLC processes mould The output file of block and speech data statistical module preserves.
In such manner, it is possible to the speech data being further directed to the output of bluetooth debugging apparatus carries out labor, analyze Process is directly perceived, and analysis efficiency is high, improves the analysis ability for voice data, and analysis result is directly perceived.
A kind of adjustment method of Baffle Box of Bluetooth call tone quality, including:
Obtaining bluetooth module and control the packet of end, described packet includes the data of packet and packet Status indicator two parts;
The packet being analyzed and acquired by, it is thus achieved that the analysis result of packet, and according to analysis result, filter out VoP also preserves;
The VoP filtered out is split as speech data and status indicator two parts, by speech data portion Status indicator part after code insurance is stored in L channel and will amplify x times is saved in R channel, and carries out The synchronism output of left and right acoustic channels data, wherein x is the positive number set.
Voice data after so capturing is simple and clear, it is easy to analyze, and can be used for emulating Host end to audio frequency The processing procedure of data, thus Host end is processed and is optimized, moreover it is possible to the language to real time phone call further Sound data are estimated.
Optionally, the type of data packet obtained from bluetooth module control end is host controller interface HCI order Packet, HCI asynchronous data packets, HCI synchronization packets and any number of combination of HCI event bag, its Middle HCI synchronization packets is VoP.
Optionally, the packet being analyzed and acquired by, it is thus achieved that the analysis result of packet, specifically includes:
After getting described packet, for the data division of packet, obtain the data of 1 byte, really The type of given data bag and the packet header length of packet;
Packet header based on packet length, obtains the header data of packet, determines the data length of packet, Obtain analysis result.
Optionally, according to analysis result, filter out VoP and be saved in speech data preservation module, tool Body includes:
Analysis result according to packet, it is judged that whether the type of described packet is HCI synchronization packets, It is the most then VoP by described packet marking;Otherwise, according to the data length of described packet, Described packet is lost;
Filter out all packets being labeled as VoP, analysis result based on described VoP Described VoP is preserved.
Optionally, the VoP filtered out is split as speech data and status indicator two parts, by language Status indicator part after sound data division is saved in L channel and will amplify x times is saved in R channel In, and carry out the synchronism output of left and right acoustic channels data, specifically include:
The VoP filtered out is split as speech data and status indicator two parts, by speech data portion Status indicator part after code insurance is stored in L channel and will amplify x times is saved in R channel, and will In speech data part in L channel and corresponding R channel, status indicator part carries out registration process, goes forward side by side Row synchronism output.
A kind of analysis method of Baffle Box of Bluetooth call tone quality, including:
Receive according to the VoP of output in the adjustment method of Baffle Box of Bluetooth call tone quality, from described voice Packet extracts speech data, the speech data part of VoP and status indicator part is carried out point From, obtain speech data and the status indicator of described VoP;
Speech data based on described VoP and status indicator, be adjusted to the size of VoP The size of the VoP of air transmission, and it is modified place for the status indicator of VoP Reason, obtains revised VoP, and exports;
Obtain revised VoP, and judge corresponding packet according to the status indicator of packet Whether data carry out Discarded Packets compensation process, the most then carry out Discarded Packets compensation process;Otherwise, simply put down Sliding process, the VoP after being processed, and export;
Packet from speech data weight alignment module and speech data PLC processing module acquisition process enters Row statistical analysis, obtains statistical result, and exports;
The file obtaining output preserves.
In such manner, it is possible to the speech data being further directed to the output of bluetooth debugging apparatus carries out labor, analyze Process is directly perceived, and analysis efficiency is high, improves the analysis ability for voice data, and analysis result is directly perceived.
Accompanying drawing explanation
Fig. 1 is the debugging apparatus schematic diagram of call voice data in prior art;
Fig. 2 is the schematic diagram that packet loss occurs in voice data;
Fig. 3 and Fig. 4 is existing by audio analysis job analysis result schematic diagram;
Fig. 5 is the debugging apparatus schematic diagram of the call voice data during the present invention implements;
Fig. 6 is the structural representation of UART tool during the present invention implements;
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 parsing schematic flow sheet in the embodiment of the present invention;
Figure 10 is the speech data schematic diagram that in the embodiment of the present invention, UART tool preserves;
Figure 11 is the schematic diagram that in the embodiment of the present invention, the speech data of UART tool preservation is amplified;
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 aerial packet and the view of UART end VoP in 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 the speech data after overweight registration process of the speech data in Figure 11 in the embodiment of the present invention Schematic diagram;
Figure 17 be in the embodiment of the present invention speech data in Figure 11 through PLC language before and after treatment Sound schematic diagram data;
Figure 18 is the schematic diagram that the part of speech data of Figure 17 in the embodiment of the present invention are amplified;
Figure 19 is the output result signal of the speech data analysis statistical module of analytical equipment during the present invention implements Figure;
Figure 20 is the part of speech data affecting PLC process being input to analytical equipment in the embodiment of the present invention Schematic diagram.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, it is fully described by, it is clear that described embodiment is only a part of embodiment of the present invention, is not Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
Cannot meet to solve serial ports audiomonitor (UART sniffer) voice data efficient analysis is lacked Point, in conjunction with self-demand, uses homemade UART tool, and concrete framework is refering to shown in Fig. 5, and self-control is gone here and there Mouth monitoring instrument (UART tool) is main by UART receiver module, UART data resolution module and UART Speech data preserves module three part composition, and concrete module composition is refering to shown in Fig. 6.UART receiver module The initialization of responsible UART associated hardware interfaces and the reception of UART data and transmission (have only to here Receive capabilities);UART data resolution module is mainly responsible for obtaining UART data from UART receiver module And carry out data parsing according to the form of Bluetooth Host Controller interface (HCI) data, thus wanted SCO packet give UART speech data preserve module;It is main that UART speech data preserves module It is responsible for being saved in storage medium speech data according to specific form, both can be saved in storage card, USB (universal serial bus) (USB) can also be passed through be transferred on PC preserve.
Owing to UART tool is relatively low to the requirement ratio of hardware, it is possible to readily in development resources at ordinary times In find the development board meeting condition to make easily.The present invention have selected old UTS2825 in implementing The plank that scheme carries over as UART tool, its have meet RS232 standard UART interface and Draw-in groove.The UART TX mouth of Baffle Box of Bluetooth development board bluetooth module is gone between, is connected to UART tool's On UART RX mouth lead-in wire, insert the safe digital card (SD card) of an enough capacity, power on to plank Speech data when just can capture call in real time is analyzed.In addition with some needs guarantee is two pieces Plank altogether, otherwise UART cannot normal transceiving data, concrete schematic diagram is refering to shown in Fig. 7
Module is preserved below with UART receiver module, UART data resolution module and UART speech data As a example by, introduce UART tool operation principle as follows, specifically see shown in Fig. 8:
Step 800:UART tool receiver module obtains bluetooth module and controls the packet of end, packet bag Include the data of packet and status indicator two parts of packet.
Further, the type of data packet that UART tool receiver module controls end acquisition from bluetooth module is HCI command packet, HCI asynchronous data packets, HCI synchronization packets and any number of group of HCI event bag Closing, wherein HCI synchronization packets is VoP.
According to bluetooth core specification definition, Controller end and Host end is to be completed by HCI alternately , HCI is divided into following 4 type bags, is specifically shown in Table 1.
Table 1
Concrete, in agreement, the form of the packet of the HCI of regulation see shown in Fig. 9, here by 4 Plant HCI data packet format and be 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])
Concrete, VoP includes the data of packet and status indicator two parts of packet.Refer to Shown in table 2, the status indicator binary representation of VoP represents, have 00,01,10, 11 4 types, the speech data really needed when data are then for analyzing.Status indicator four kind offset Corresponding meaning can probably understand bag, wrong bag, packet loss, part packet loss, the wherein state mark of packet preferably Know, sent by bluetooth module controller and be included in packet.
Table 2
The packet that the data resolution module of step 801:UART tool is analyzed and acquired by, it is thus achieved that packet Analysis result, and according to analysis result, filter out VoP and be saved in the voice number of UART tool According to preserving module.
Concrete, that the data resolution module of UART tool is analyzed and acquired by packet, it is thus achieved that packet Analysis result, detailed process is: after UART tool receiver module gets packet, for packet Data division, obtain the data of 1 byte, determine the type of packet and the packet header length of packet;Enter One step packet header based on packet length, obtains the header data of packet, determines the data length of packet, Obtain analysis result.
Concrete, the data resolution module of UART tool, according to according to analysis result, filters out speech data Bag is saved in the speech data of UART tool and preserves module, and detailed process is: according to the parsing knot of packet Really, it is judged that whether the type of packet is HCI synchronization packets, the most then it is language by this packet marking Sound data school bag;Otherwise, according to the data length of this packet, this packet is lost;Filter out all Being labeled as the packet of VoP, this VoP is protected by analysis result based on this VoP The speech data being stored to UART tool preserves module.
Such as, refering to shown in Fig. 9, the data parsing of UART tool is mainly the circulation of a State Transferring Process, obtains 1 byte data and resolves the type state of packet, i.e. perform step 901 time first initial, Being then converted to resolve packet header state, i.e. perform step 902, the header data obtaining packet resolves, Determine the length of data, be finally the data resolving packet, i.e. perform step 903, if speech data Bag, then the speech data that this packet mails to UART tool preserves module, if not VoP, Then according to the length of this packet, this VoP is carried out discard processing.During these three, any There is the abnormal original state i.e. step 901 that all can return to resolve Packet type, when being resolved to HCI in one state During synchronization packets (Synchronous Data Packet), it is the VoP of needs, by this voice Packet is given the speech data of UART tool and is preserved resume module, and for the data of other three types Bag, the most directly skips over, and continues to resolve remaining packet.
The speech data of step 802:UART tool preserves module and is split as by the VoP filtered out Speech data and status indicator two parts, be saved in speech data part in L channel and will amplify x times After status indicator part be saved in R channel, and carry out the synchronism output of left and right acoustic channels data, wherein x For the positive number set.
Such as, the speech data preservation module of UART tool will connect from the data resolution module of UART tool The VoP (Synchronous Data Packet) received is split as speech data (Data) and state Mark two parts.
Concrete, the speech data of UART tool preserves module and the VoP filtered out is split as language Sound data and status indicator two parts, after being saved in speech data part in L channel and amplifying x times Status indicator part be saved in R channel, and by the speech data part in L channel and the corresponding right side In sound channel, status indicator part carries out registration process, and carries out synchronism output.
In order to make the speech data result preserved more directly perceived, it is also preferred that the left speech data preservation module will Speech data part is saved in L channel, and the value of status indicator carries out 1000 times and amplifies and be saved in language In the R channel that sound data are corresponding.Refering to shown in Figure 10, the top of the white line segmentation shown in white ovals 1 For left channel data, be below right data, i.e. top be primary voice data during call, be below The status that speech data is corresponding.After the left and right acoustic channels corresponding white end shown in white ovals 2 is amplified To image as shown in figure 11, can find out intuitively the data shown in white ovals 1 be a numerical value all Being the flat line of 0, packet loss occur, the R channel numerical value of its correspondence such as white ovals 2 show one simultaneously Numerical value is the flat line of 2000, also implies that packet loss occurs in the speech data of correspondence.And it is permissible from Figure 10 That just omits finds out that this speech data conversed is more satisfactory, occurs that the place of packet loss and wrong bag is less, thus Can be seen that UART Tool for speech data analysis the most quick and precisely.
The speech data of UART Tool preserves module and finally exports the file of an entitled sco.pcm, It is seen from figure 10 that the result schematic diagram that audio analysis instrument UART Tool exports.
The embodiment of the present invention also provides for the analytical equipment of a kind of Baffle Box of Bluetooth call tone quality, applies client End, it is possible to realize the function of this analytical equipment by running program at PC end, extract with speech data below Module, speech data weight alignment module, speech data PLC processing module, speech data statistical module and As a example by speech data preserves module, the operation principle introducing this analytical equipment is as follows, specifically see Figure 12 Shown in, wherein, the framework of analytical equipment see shown in Figure 13:
Step 120: the speech data extraction module of analytical equipment receives the voice number of output in UART Tool According to bag, from this VoP, extract speech data, by speech data part and the state of VoP Identification division separates, and obtains speech data and the status indicator of this VoP;
Step 121: the speech data weight alignment module speech data based on this VoP of analytical equipment And status indicator, the size of VoP is adjusted to the size of the VoP of air transmission, and Status indicator for VoP is modified processing, and obtains revised VoP, and exports Module is preserved to speech data;
Step 122: the speech data PLC processing module of analytical equipment obtains revised VoP, And judge whether to need to carry out Discarded Packets compensation process according to the status indicator of packet, the most then carry out packet loss Compensation deals;Otherwise, carry out simple smoothing processing, the VoP after being processed, and export arrive Speech data preserves module.
Step 123: the speech data statistical module of analytical equipment is from speech data weight alignment module and voice number Packet in processing according to PLC processing module acquisition carries out statistical analysis, obtains statistical result, and exports Module is preserved to speech data.
Step 124: the speech data of analytical equipment preserves module by speech data weight alignment module, voice number Preserve according to the output result of PLC processing module and speech data statistical module.
Such as, sco.pcm file as input, is utilized resource powerful on PC permissible by this analytical equipment Quickly one control station application program of exploitation, the process that emulation master control (Host) is held, such that it is able to right The Processing Algorithm of Host end is analyzed and optimizes.
Refering to shown in Figure 13, PC end control station application program (analytical equipment) is main by 5 module compositions. Wherein, the sco.pcm file that speech data extraction module 130 is responsible for from input extracts speech data, by language Speech data weight alignment module 131 is separated and given to sound data and status indicator.Speech data heavily aligns The purpose of module 131 is an attempt to recover aerial authentic data bag and state thereof.Refering to shown in Figure 14, due to The restructuring that controller (Controller) is held causes the packet (Packet) that the master control (Host) given is held Size becomes 48bytes, with Packet size 60bytes used during aerial actual transmissions, and then leads Cause owing to status indication is that packet loss wastes and is practically without the part data of packet loss in the air.For these waves Taking, the size of Packet can be reverted to 60bytes also from 48bytes by speech data weight alignment module 131 Revise the state of its correspondence;Data after processing can be given speech data by speech data weight alignment module 131 PLC processing module 132 carries out PC end simulation process, gives speech data statistical module 133 assistant analysis, Give each phase data preservation module 134 to carry out exporting result preservation;Speech data PLC processing module 132 Mainly the PLC of Host end on Baffle Box of Bluetooth is processed code migrating and carry out synchronization simulation process on PC. This module includes according to whether condition adjudgement carries out Discarded Packets compensation process;Speech data statistical module 133 is main Attached when adding up owing to not having enough forward direction valid data to cause cannot to obtain an optimum PLC treatment effect Error rate in the nearly speech data section period;Speech data preserves module 134, and speech data is the most right Neat module 131, speech data PLC processing module 132 and the output result of speech data statistical module 133 It is saved in file.
Refering to shown in Figure 15, sco.pcm file (is analyzed as input, PC end control station application program Device) finally to export tri-files of realign_sco.pcm, plc_sco.pcm and info_sco.txt the most right Answer speech data weight alignment module 131, speech data PLC processing module 132 and speech data statistical module The result of 133.Refering to 16 be shown that above Figure 11 at speech data weight alignment module 131 After reason as a result, it is possible to see that the data being originally labeled as part packet loss shown in Figure 11 white ovals 3 are passed through The relevant position labelling not having packet loss after correction as shown in Figure 16 white ovals wraps (00) preferably.
User's audio analysis TO plc_sco.pcm file it can be seen that be a sample rate be 8K The stereo sound frequency file of Hz, as shown in figure 17.Wherein, white horizontal line top is divided into left channel data generation Table carries out the speech data before PLC compensation, and white horizontal line bottom is divided into the right data to represent carrying out Speech data after PLC compensation.Data at the white end in Figure 17 are amplified, obtain Figure 18 institute Show result.In the frame of Figure 18, top speech data has disconnected part to be continuous print at following speech data, That is exactly the result after PLC compensates.By so comparison, result can be unsatisfied with by user The voice data at place is analyzed, and sees if there is the place dealt with improperly.
Figure 19 be the meaning of the result of speech data analysis statistical module, first the first row be at 11.100s Forward direction valid data inadequate, PLC treatment effect may be caused undesirable, in its forward direction 60ms, have 25% Data invalid, and actual carry out PLC process after, the data having 50% in forward direction 60ms are invalid. Figure 20 is exactly the position of 11.100s at vertical dotted line, it can be seen that be implicitly present in one section before vertical dotted line relatively Packet loss, can affect PLC treatment effect for a long time.But owing to being precisely quiet data in this time period, So impact the slightest during final voice output.
The hardware interface that bluetooth module controller (Controller) end communicates with master control (Host) end is except making With UART (H4), it is also possible to use USB, SD, UART (H5), other interface of PCM.No matter Using which kind of hardware communication interface, all can use the same adjustment method, simply the acquisition methods of data is different.
In sum, the embodiment of the present invention obtains bluetooth module by homemade UART tool and control end Packet, packet includes the data of packet and status indicator two parts of packet;And be analyzed and acquired by Packet, it is thus achieved that the analysis result of packet, and according to analysis result, filter out VoP and preserve Module is preserved to speech data;And the VoP filtered out is split as speech data and status indicator Two parts, the status indicator part after speech data part being saved in L channel and amplifying x times is protected It is stored in R channel, and carries out the synchronism output of left and right acoustic channels data, so by homemade bluetooth debugging dress Put and analyze speech data, it is possible to avoid buying the relatively large overhead that UART sniffer produces, and make by oneself UART tool implementation method is simple, and hardware requirement is low, only need to have and be able to receive that controller end UART connects The development board of mouth data function, it is often more important that the voice data after being captured by UART tool is directly perceived Understand, it is easy to analyze, can be used for emulating the Host end processing procedure to voice data, thus to Host end Process is optimized, moreover it is possible to be estimated the speech data of real time phone call further.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or knot The form of the embodiment in terms of conjunction software and hardware.And, the present invention can use and wherein wrap one or more Computer-usable storage medium containing computer usable program code (include but not limited to disk memory, CD-ROM, optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program product according to embodiments of the present invention The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and / or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding The processor of formula datatron or other programmable data processing device is to produce a machine so that by calculating The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know base This creativeness concept, then can make other change and amendment to these embodiments.So, appended right is wanted Ask and be intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the embodiment of the present invention and not take off Spirit and scope from the embodiment of the present invention.So, if these amendments of the embodiment of the present invention and modification belong to Within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention be also intended to comprise these change and Including modification.

Claims (12)

1. the debugging apparatus of a Baffle Box of Bluetooth call tone quality, it is characterised in that including:
Receiver module, controls the packet of end for obtaining bluetooth module, and described packet includes packet Status indicator two parts of data and packet;
Data resolution module, for the packet being analyzed and acquired by, it is thus achieved that the analysis result of packet, and depends on According to analysis result, filter out VoP and be saved in speech data preservation module;
Described speech data preserves module, for the VoP filtered out is split as speech data and shape State identifies two parts, the status indicator after speech data part being saved in L channel and amplifying x times Part is saved in R channel, and carries out the synchronism output of left and right acoustic channels data, and wherein x is the positive number set.
2. device as claimed in claim 1, it is characterised in that described receiver module is from bluetooth module control End processed obtain type of data packet be host controller interface HCI command packet, HCI asynchronous data packets, HCI synchronization packets and any number of combination of HCI event bag, wherein HCI synchronization packets is voice number According to bag.
3. device as claimed in claim 1, it is characterised in that the packet being analyzed and acquired by, it is thus achieved that During the analysis result of packet, described data resolution module specifically for:
After receiver module gets described packet, for the data division of packet, obtain 1 byte Data, determine the type of packet and the packet header length of packet;
Packet header based on packet length, obtains the header data of packet, determines the data length of packet, Obtain analysis result.
4. the device as described in claim 1,2 or 3, it is characterised in that according to analysis result, screening Go out VoP be saved in speech data preserve module time, described data resolution module specifically for:
Analysis result according to packet, it is judged that whether the type of described packet is HCI synchronization packets, It is the most then VoP by described packet marking;Otherwise, according to the data length of described packet, Described packet is lost;
Filter out all packets being labeled as VoP, analysis result based on described VoP Described VoP is saved in described speech data and preserves module.
5. device as claimed in claim 1, it is characterised in that the VoP filtered out is split For speech data and status indicator two parts, speech data part is saved in L channel and x will be amplified Status indicator part after Bei is saved in R channel, and when carrying out the synchronism output of left and right acoustic channels data, institute Predicate sound data storage module specifically for:
The VoP filtered out is split as speech data and status indicator two parts, by speech data portion Status indicator part after code insurance is stored in L channel and will amplify x times is saved in R channel, and will In speech data part in L channel and corresponding R channel, status indicator part carries out registration process, goes forward side by side Row synchronism output.
6. the analytical equipment of a Baffle Box of Bluetooth call tone quality, it is characterised in that including:
Speech data extraction module, for receiving the speech data of output in the described device in claim 1 Bag, extracts speech data, by speech data part and the state of VoP from described VoP Identification division separates, and obtains speech data and the status indicator of described VoP;
Speech data weight alignment module, for speech data based on described VoP and status indicator, The size of VoP is adjusted to the size of the VoP of air transmission, and for speech data The status indicator of bag is modified processing, and obtains revised VoP, and exports speech data guarantor Storing module;
Speech data PLC processing module, is used for obtaining revised VoP, and according to packet Status indicator judge whether the data of packet of correspondence carry out Discarded Packets compensation process, the most then lose Bag compensation deals;Otherwise, carry out simple smooth process, the VoP after being processed, and export arrive Described speech data preserves module;
Speech data statistical module, for processing mould from speech data weight alignment module and speech data PLC Packet during block acquisition processes carries out statistical analysis, obtains statistical result, and exports described speech data Preserve module;
Speech data preserves module, and for by speech data weight alignment module, speech data PLC processes mould The output file of block and speech data statistical module preserves.
7. the adjustment method of a Baffle Box of Bluetooth call tone quality, it is characterised in that including:
Obtaining bluetooth module and control the packet of end, described packet includes the data of packet and packet Status indicator two parts;
The packet being analyzed and acquired by, it is thus achieved that the analysis result of packet, and according to analysis result, filter out VoP also preserves;
The VoP filtered out is split as speech data and status indicator two parts, by speech data portion Status indicator part after code insurance is stored in L channel and will amplify x times is saved in R channel, and carries out The synchronism output of left and right acoustic channels data, wherein x is the positive number set.
8. method as claimed in claim 7, it is characterised in that control the number that end obtains from bluetooth module It is host controller interface HCI command packet, HCI asynchronous data packets, the same step number of HCI according to Packet type According to bag and any number of combination of HCI event bag, wherein HCI synchronization packets is VoP.
9. method as claimed in claim 7, it is characterised in that the packet being analyzed and acquired by, it is thus achieved that The analysis result of packet, specifically includes:
After getting described packet, for the data division of packet, obtain the data of 1 byte, really The type of given data bag and the packet header length of packet;
Packet header based on packet length, obtains the header data of packet, determines the data length of packet, Obtain analysis result.
10. the method as described in claim 7,8 or 9, it is characterised in that according to analysis result, sieve Select VoP and be saved in speech data preservation module, specifically include:
Analysis result according to packet, it is judged that whether the type of described packet is HCI synchronization packets, It is the most then VoP by described packet marking;Otherwise, according to the data length of described packet, Described packet is lost;
Filter out all packets being labeled as VoP, analysis result based on described VoP Described VoP is preserved.
11. methods as claimed in claim 7, it is characterised in that the VoP filtered out is split For speech data and status indicator two parts, speech data part is saved in L channel and x will be amplified Status indicator part after Bei is saved in R channel, and carries out the synchronism output of left and right acoustic channels data, specifically Including:
The VoP filtered out is split as speech data and status indicator two parts, by speech data portion Status indicator part after code insurance is stored in L channel and will amplify x times is saved in R channel, and will In speech data part in L channel and corresponding R channel, status indicator part carries out registration process, goes forward side by side Row synchronism output.
The analysis method of 12. 1 kinds of Baffle Box of Bluetooth call tone qualities, it is characterised in that including:
Receive the VoP exported according to the method in claim 7, carry from described VoP Take speech data, speech data part and the status indicator part of VoP are separated, obtain institute State speech data and the status indicator of VoP;
Speech data based on described VoP and status indicator, be adjusted to the size of VoP The size of the VoP of air transmission, and it is modified place for the status indicator of VoP Reason, obtains revised VoP, and exports;
Obtain revised VoP, and judge corresponding packet according to the status indicator of packet Whether data carry out Discarded Packets compensation process, the most then carry out Discarded Packets compensation process;Otherwise, simply put down Sliding process, the VoP after being processed, and export;
Packet from speech data weight alignment module and speech data PLC processing module acquisition process enters Row statistical analysis, obtains statistical result, and exports;
The file obtaining output preserves.
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 true CN105992093A (en) 2016-10-05
CN105992093B 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 (4)

* 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
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

Patent Citations (4)

* 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
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
CN105992093B (en) 2019-04-02

Similar Documents

Publication Publication Date Title
US9042839B2 (en) Mobile communication terminal test system and mobile communication terminal test method
CN109246672B (en) Data transmission method, device and system and Bluetooth headset
TW200943834A (en) Methods and apparatus for formatting headers in a communication frame
NO20080978L (en) Localization of wireless local networks in major networks
EP2600535A4 (en) Method, apparatus and system for configuring demodulation reference signal
CN102281346B (en) GSM-R network sound recording system
CN105578491A (en) Method and device for associating 4G user information with application data
CN105245521B (en) Protocol format conversion method, device and interface platform
CN102413484A (en) System and method for testing network link performance of terminal equipment
CN101136812B (en) Independent WIMAX base station network performance testing method and system
EP1734701A8 (en) Encapsulation of E1 frames within Ethernet
CN105992093A (en) Method and device for debugging Bluetooth sound box conversation sound quality
CN107276901A (en) The system and method and wireless router and terminal of integration application
CN111885621B (en) Wireless message grabbing method, system, terminal and storage medium
CN109618258A (en) A kind of the voice real time translating method and system of bluetooth headset
CN103731345B (en) A kind of network message processing method and equipment
CN205754881U (en) A kind of NFC Bluetooth adapter and the test system of blue tooth products
CN109039994A (en) A kind of method and apparatus calculating the audio and video asynchronous time difference
CN101668228A (en) Device and method for testing interface
CN114024598B (en) Forwarding interface test method and device
CN110798862A (en) Data transmission method and device between service terminal and service master station
CN207926825U (en) A kind of multichannel signal collecting resolver
CN103236872A (en) Communication terminal, communication device and communication system
CN105207967A (en) Separating method and system of hybrid communication data
US20130044618A1 (en) Monitoring apparatus, monitoring method, and computer product

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.