CN106101901B - A kind of earphone and its method for realizing three-dimensional voice output by near-field communication - Google Patents

A kind of earphone and its method for realizing three-dimensional voice output by near-field communication Download PDF

Info

Publication number
CN106101901B
CN106101901B CN201610632459.2A CN201610632459A CN106101901B CN 106101901 B CN106101901 B CN 106101901B CN 201610632459 A CN201610632459 A CN 201610632459A CN 106101901 B CN106101901 B CN 106101901B
Authority
CN
China
Prior art keywords
earplug
data
channel data
module
memory
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
CN201610632459.2A
Other languages
Chinese (zh)
Other versions
CN106101901A (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201610632459.2A priority Critical patent/CN106101901B/en
Publication of CN106101901A publication Critical patent/CN106101901A/en
Application granted granted Critical
Publication of CN106101901B publication Critical patent/CN106101901B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The invention discloses a kind of earphone and its method for realizing three-dimensional voice output by near-field communication, earphone includes the first earplug and the second earplug;First earplug receives the digital signal of audio and is converted to second channel data and first passage data, and the first earplug plays out first passage data, is transferred to the second earplug after being adjusted according to sample rate of the NFMI communications protocol to second channel data;Second earplug plays after restoring to the sample rate of second channel data.Data, which are transmitted, by NFMI communications protocol solves the problems, such as that bluetooth communication agreement can not realize that high speed audio transmits, it can to the full extent be not in data loss by adjusting sample rate, guarantee the quality of sound, it not only can achieve the sound for wirelessly answering two sound channels, additionally it is possible to reach lossless broadcasting.

Description

A kind of earphone and its method for realizing three-dimensional voice output by near-field communication
Technical field
The present invention relates to audio processings and wireless communication technique field, more particularly to one kind to pass through near-field communication and realize The earphone and its method of three-dimensional voice output.
Background technique
Current social development is getting faster, Internet technology and higher and higher with the combination degree of electronic technology;Intelligence Change, the requirement of hommization are also higher and higher.Consumer-elcetronics devices (such as mobile phone) uses popularization degree increasingly with its portable advantage Height, the mobile incidental function of consumption electronic product cover life production, and multimedia function is also to use in consumer-elcetronics devices A kind of most commonly used application in family.How to improve user's using effect and user's impression and requires consideration at each producer Problem.Audio-video is a system design, and many producers are only limited to use better device on the basis of oneself this product, The accessory of flower higher costs listens reward to experience to improve, and improves sound quality;And the various indexs for improving audio-frequency test are all rear end designs Extremely complex system engineering.
Currently, more the function that audio is arranged is placed on multimedia terminal equipment in the industry.Traditional earphone is very More, everybody is in earphone ID(, that is, earphone face shaping design) on, in sense of hearing improve and optimize, there are many high quality Earphone.Wireless Bluetooth headsets can only realize single pass transmission at present, such as want to realize three-dimensional voice output, with regard to handy line by two Earplug is connected or is realized by a pair of of bluetooth stereo.It will increase cost in this way, and bluetooth communication agreement is had no way Realize the transmission of high speed audio, to will be unable to realize the output of high-quality sound, using effect cannot be with wired HIFI (High-Fidelity, high-fidelity) earphone is compared.But wired earphone wearing arrangement is comparatively laborious, earphone cable is easy to wind Earphone is caused to damage.
Thus the prior art could be improved and improve.
Summary of the invention
Place in view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of realized by near-field communication to stand The earphone and its method of body voice output, to solve the problems, such as that existing wireless headset can not achieve three-dimensional voice output.
A kind of earphone for realizing three-dimensional voice output by near-field communication comprising the first earplug and the second earplug;
First earplug receives the digital signal of audio and is converted to second channel data and first passage data, and first Earplug plays out first passage data, passes after being adjusted according to sample rate of the NFMI communications protocol to second channel data It is defeated by the second earplug;Second earplug plays after restoring to the sample rate of second channel data.
In the described earphone for realizing three-dimensional voice output by near-field communication, first earplug includes transceiver module, the One memory, the first power module, processing module and the first loudspeaker;
The transceiver module receives the digital signal of audio and unpacks acquisition clear data;Cardinar number described in first memory storage According to;Processing module obtains clear data from the first memory and is separated into second channel data and first passage data, logical to first Track data is transmitted to the broadcasting of the first loudspeaker after carrying out digital-to-analogue conversion, and second channel data are also transmitted to transceiver module;Transmitting-receiving Module is transferred to the second earplug after being adjusted according to sample rate of the NFMI communications protocol to second channel data;First power supply mould Block is to the transceiver module, the first memory, processing module and the first power speakers.
In the earphone for realizing three-dimensional voice output by near-field communication, the transceiver module includes the first transmitting-receiving control Unit, first transceiver and bluetooth unit;
The bluetooth unit receives the digital signal of audio and unpacks acquisition clear data, and clear data is transmitted to the first memory Middle preservation;First transmitting-receiving control unit is transferred to first after second channel data are adjusted to consistent with the sample rate of communications protocol Transceiver;Second sound channel data are sent to the second earplug according to NFMI communications protocol by first transceiver.
In the earphone for realizing three-dimensional voice output by near-field communication, the processing module is controlled including the first MCU Unit, the first dsp processor and the first audio DAC unit;
First MCU control unit sends to read to instruct and obtains clear data from the first memory and be transferred to the first DSP Processor;First dsp processor carries out separation to clear data and obtains second channel data and first passage data;First MCU control First passage data are transferred to the first audio DAC unit by unit processed, and it is single that second channel data are transferred to the first transmitting-receiving control Member;First audio DAC unit passes through the broadcasting of the first loudspeaker after carrying out digital-to-analogue conversion to first passage data.
In the described earphone for realizing three-dimensional voice output by near-field communication, second earplug includes receiving module, the Two memories, second power supply module, control module and the second loudspeaker;
The receiving module receives the second channel data that the first earplug is sent, and is transmitted to the second memory after restoring sample rate Middle storage;Control module is transmitted to second from acquisition second channel data in the second memory and after carrying out resampling, digital-to-analogue conversion Loudspeaker plays;Second power supply module is to the receiving module, the second memory, control module and the second power speakers.
In the earphone for realizing three-dimensional voice output by near-field communication, the receiving module includes the second transmitting-receiving control Unit and second transceiver;
The second transceiver receives the second channel data that the first earplug is sent;Second transmitting-receiving control unit is logical to second Track data carries out data resampling to restore sample rate, and is transmitted in the second memory and stores.
In the earphone for realizing three-dimensional voice output by near-field communication, the control module is controlled including the 2nd MCU Unit, the second dsp processor and the second audio DAC unit;
Second MCU control unit, which is sent, to be read instruction and reads second channel data from the second memory and be transferred to the Two dsp processors;Second dsp processor carries out data resampling to second channel data and is transmitted to the second audio DAC unit; Second audio DAC unit is transmitted to the broadcasting of the second loudspeaker after carrying out digital-to-analogue conversion to the second channel data after resampling.
In the earphone for realizing three-dimensional voice output by near-field communication, first earplug is right earplug, and first is logical Track data is right channel data, and the second earplug is left earplug, and second channel data are left channel data.
In the earphone for realizing three-dimensional voice output by near-field communication, first earplug is left earplug, and first is logical Track data is left channel data, and the second earplug is right earplug, and second channel data are right channel data.
A kind of transmission method using the earphone for realizing three-dimensional voice output by near-field communication comprising:
Step A, the first earplug receives the digital signal of audio and is converted to second channel data and first passage data;
Step B, the first earplug plays out first passage data, according to NFMI communications protocol to second channel data Sample rate is transferred to the second earplug after being adjusted;
Step C, the second earplug plays after restoring to the sample rate of second channel data.
Compared to the prior art, the earphone and its method provided by the invention that three-dimensional voice output is realized by near-field communication, Earphone includes the first earplug and the second earplug;First earplug receives the digital signal of audio and is converted to second channel data With first passage data, the first earplug plays out first passage data, according to NFMI communications protocol to second channel data Sample rate be adjusted after be transferred to the second earplug;After second earplug restores the sample rate of second channel data It plays.Data, which are transmitted, by NFMI communications protocol solves the problems, such as that bluetooth communication agreement can not realize that high speed audio transmits, It can to the full extent be not in data loss by adjusting sample rate, guarantee the quality of sound, not only can achieve wireless Answer the sound of two sound channels, additionally it is possible to reach lossless broadcasting.
Detailed description of the invention
Fig. 1 is existing near field magnetic induction technology figure compared with the energy efficiency of RF.
Fig. 2 is the schematic diagram that existing near field magnetic induction technology and RF pass through tissue transmitting signal.
Fig. 3 is the structural frames of the earpiece application embodiment provided by the invention that three-dimensional voice output is realized by near-field communication Figure.
Fig. 4 is the structural frames provided by the invention that the first earplug in the earphone of three-dimensional voice output is realized by near-field communication Figure.
Fig. 5 is the structural frames provided by the invention that the second earplug in the earphone of three-dimensional voice output is realized by near-field communication Figure.
Fig. 6 be it is provided by the invention by near-field communication realize in the earphone of three-dimensional voice output the first transmitting-receiving control unit and The structural block diagram of second transmitting-receiving control unit.
Fig. 7 is schematic diagram of the cell phone platform provided by the invention by bluetooth module transmission audio to the first earplug.
Fig. 8 is the schematic diagram of A2DP provided by the invention.
Fig. 9 is the method flow diagram provided by the invention that three-dimensional voice output is realized by near-field communication.
Specific embodiment
The present invention provides a kind of earphone and its method that three-dimensional voice output is realized by near-field communication, utilizes the near field NFMI( Induction technology) technology, not only it is able to achieve the three-dimensional voice output of wireless headset, moreover it is possible to really reach the requirement of HD Audio output. To make the objectives, technical solutions, and advantages of the present invention clearer and more explicit, as follows in conjunction with drawings and embodiments to the present invention into One step is described in detail.It should be appreciated that described herein, specific examples are only used to explain the present invention, is not used to limit this hair It is bright.
The present embodiment first illustrates the near field NFMI(magnetic induction technology) technology.NFMI can allow between electronic equipment and carry out non-connect Touch Point-to-Point Data Transmission is evolved from contact-free formula RF identification (RFID), the Pu You Enzhi semiconductor, Nokia and rope Buddhist nun develops jointly.NFMI belongs to the radio technology of short distance high frequency, realizes wireless communication by magnetic field induction mode, work In the reference carrier frequency of 10MHz to 14 MHz, very short, the only 20cm of effective operation distance.Radio transmitted power only has 1.62mW(operating voltage 1.2V, operating current 1.35mA), to the radiation injury very little of human body, it is mutual to can be used for the ears such as hearing aid Pass the communications field.There are three types of its transmission speeds, is 106 Kbit/s, 212 Kbit/s or 424 Kbit/s, this reality respectively Applying the transmission speed that example uses is 596 kbit/s.It is widely used in various RFID smart card (bus card, bank card, employees Card, access card, member card etc.) and smart machine between Point-to-Point Data Transmission.It is low in energy consumption since its communication distance is short, one Secondary and a machine link, so safety is very high, it is stolen when being conducive to that credit card etc. is avoided to trade.And BLE The bluetooth of (Bluetooh Low Energy) this low-power consumption short distance is compared, and NFMI power consumption is lower, and apart from shorter, connection is set It is also short much to set the time, has good prospects.It is used to optimize radio area network as super low-power consumption communication IC, using close Field magnetic induction technology can provide closer communication data to each user in range.
When stereosonic audio data is sent to two individual earplugs, if with common bluetooth A2DP(Advanced Audio Distribution Profile, the agreement of Bluetooth audio frequency mode) mode is impossible;Because of bluetooth Only support point-to- point communication.If sending the audio data of high-quality from an earplug to another earplug, pass through 2.4Ghz RF (radio frequency) scheme is also difficult to accomplish to stablize transmission;Because most signal can be all systemically absorbed.And the present embodiment is made Magnetic induction technology near field is capable of the carry out ear to ear communication of close friend, and interference and the spherical magnetic field of bodily tissue generation, The interference of other equipment can be reduced, distance can also be such that signal strength reduces, and reduce interference level, therefore increase robustness, can be with Increase secure private.
In shorter distance, the energy efficiency of near field magnetic induction technology ratio RF is higher, as shown in Figure 1, r indicates distance, When the decline of the distance for being more than 0.5 meter, near field magnetic induction technology is very severe.Privacy and safety are ensured that in this way. And in the case where low signal strength, NFMI can be propagated by tissue, and RF cannot then be exported by human body or only Very low signal, as shown in Fig. 2, TX indicates to send, RX indicates to receive.
Referring to Fig. 3, the earphone provided by the invention for realizing three-dimensional voice output by near-field communication includes the first earplug 10 With the second earplug 20.First earplug 10 is main control device, equipment supplemented by the second earplug 20.First earplug 10 receives audio Digital signal is simultaneously converted to second channel data and first passage data, plays out to first passage data, logical according to NFMI News agreement is transferred to the second earplug 20 after being adjusted to the sample rate of second channel data.Second earplug 20 is to second channel number According to sample rate restored after play.
Referring to Figure 4 together, first earplug 10 includes transceiver module 110, the first memory 120, the first power module 130, processing module 140, the first loudspeaker 150 and voice input module 160.The transceiver module 110 is for receiving audio Digital signal simultaneously unpacks acquisition clear data.First memory 120 is for storing the clear data.Processing module 140 is from the first memory Clear data is obtained in 120 and is separated into second channel data and first passage data, and digital-to-analogue conversion is carried out to first passage data After be transmitted to the broadcasting of the first loudspeaker 150, second channel data are transmitted to after transceiver module 110 carries out resampling and are sent to the Two earplugs 20.First power module 130 is to the transceiver module 110, the first memory 120, processing module 140 and the first loudspeaker 150 power supplies.
It is to be appreciated that first earplug 10 further includes voice input module 160, it is Mike's voice module, uses In acquisition call voice, it is the prior art, is not described further herein.First power module 130 supplies voice input module 160 Electricity.
Wherein, the transceiver module 110 includes the first transmitting-receiving control unit 111, first transceiver 112 and bluetooth unit 113.The bluetooth unit 113, which receives the digital signal of audio and unpacks, obtains clear data (raw data, be also initial data), Clear data is transmitted in the first memory 120 and is saved.It is logical that bluetooth unit 113 mainly carries out data with mobile terminal (such as mobile phone) News receive the digital signal of its transmission.First transmitting-receiving control unit 111 is used to carry out resampling to second channel data First transceiver 112 is transferred to after (second channel data are adjusted to consistent with the sample rate of communications protocol).First transmitting-receiving Second sound channel data are sent to the second earplug 20 using NFMI communications protocol by device 112.First transceiver 112 and the second earplug 20 Between carried out data transmission using NFMI technology.
In the present embodiment, digital signal, the i.e. digital audio based on audio is carried out by compression or by transport protocol During transmission, when reading or being transferred to receiving terminal, identification file head is first passed through to obtain the phase of this digital signal Hold (such as format, sample rate, stereo or monophonic information) inside the Pass, decoder is carried out by the related content when decoding Configuration.But file header is not needed when decoding, therefore, what bluetooth unit 113 obtained after unpacking is only clear data.
Since NFMI communications protocol is based on the basis of data communication, and data transmission bauds is 596kbps.Cause This is needed by the first transmitting-receiving control unit 111 before first transceiver 112 sends second sound channel data to second channel number According to progress resampling.Because the sample rate of current second channel data does not largely all exceed 384kbps, second is led to Even if track data is adjusted to the sampling of consistent second channel data and communications protocol with the sample rate of communications protocol by resampling Rate is identical and is 596kbps.Second channel data after resampling pass through first transceiver 112 again and send.
The processing module 140 includes the first MCU control unit 141, the first dsp processor 142 and the first audio DAC mono- Member 143.First MCU control unit 141 sends to read to instruct and obtains clear data from the first memory 120 and be transferred to first Dsp processor 142.Since the digital signal of audio that mobile phone is sent has carried out MIX(mixing) processing and resampling processing (this Two processing are the prior art.Corresponding encoder can all carry out mixing operation, especially to multiple signals.Resampling be for The operation that the voice data of compression is reduced into its original sample rate as far as possible and is carried out.), which is the One channel and the compressed data of second channel, thus the clear data being stored in the first memory 120 be two channel datas (i.e. The audio mix that second earplug and the first earplug need to play is together).It is needed at this time through the first dsp processor 142 to pure Data, which separate obtaining second channel data and first passage data and being transferred to the first MCU control unit 141, is divided Hair.First passage data are transferred to the first audio DAC unit 143 by the first MCU control unit 141, and second channel data are passed It is defeated by the first transmitting-receiving control unit 111.First audio DAC unit 143 carries out after digital-to-analogue conversion by the first passage data One loudspeaker 150 plays.
It is to be appreciated that the processing module 140 further includes existing first audio ADC unit 144, voice is defeated The analog signal for entering the call voice of the acquisition of module 160 is converted into corresponding digital signal and is transferred to the first MCU control unit It is sent to the broadcasting of other side's earphone after processing, realizes existing voice collecting transfer function.
It include receiving module 210, the second memory 220, second power supply module also referring to Fig. 5, second earplug 20 230, control module 240 and the second loudspeaker 250.The receiving module 210 is used to receive the second channel of the first earplug transmission Data simultaneously carry out resampling to restore sample rate, are then transmit in the second memory 220 and store.Very due to the communication data speed Fastly and the lossless source of sound maximum sample rate (384kbps) of fast excessively current major part, so will not could go out to the full extent Existing data loss, it ensure that the quality of sound, not only can achieve and wirelessly answer the sound of two sound channels, but also can reach Lossless broadcasting.Control module 240 is passed from acquisition second channel data in the second memory 220 and after carrying out resampling, digital-to-analogue conversion Transport to the broadcasting of the second loudspeaker 250.Second power supply module 230 is to the receiving module 210, the second memory 220, control module 240 and second loudspeaker 250 power.
The receiving module 210 includes the second transmitting-receiving control unit 211 and second transceiver 212.Second transceiver 212 with By NFMI technical transmission data between first transceiver 112, second transceiver 212 receive that first transceiver 112 sends the Two channel datas.Second transmitting-receiving control unit 211 carries out data resampling to second channel data, to revert to original sampling Rate.Wherein, second transmitting-receiving control unit 211 also controls the working condition of second transceiver 212.
The control module 240 includes the second MCU control unit 241, the second dsp processor 242 and the second audio DAC mono- Member 243.Second MCU control unit 241 sends to read to instruct and reads second channel data from the second memory 220 and transmit To the second dsp processor 242.Second dsp processor 242 carries out the algorithm process and biography of data resampling to second channel data Transport to the second audio DAC unit 243.Second audio DAC unit 243 carries out digital-to-analogue conversion to the second channel data after resampling After be transmitted to the second loudspeaker 250 broadcasting.Wherein, the second MCU control unit 241 also controls the power supply of second power supply module 230 State, that is, judge the working condition of the second dsp processor 242 and the second audio DAC unit 243 send different control commands into Row power management.
In the present embodiment, dsp processor (including the first dsp processor 142 and second dsp processor 242) altogether there are three Working condition, i.e. deep sleep, working condition and standby mode.Due to dsp processor and MCU control unit (including 141 With 241) be connected, when open earplug system power switch when, MCU control unit will do it power-on initialization operation, simultaneously lead to I2C is crossed to send instruction and send power-up initializing order and the operation of loading firmware.It is fixed that MCU control unit starts task simultaneously When device be used to real-time judge whether there are data to be handled;Have and then enter working condition, provides different Current Voltages and match Set the operation needs for meeting high load capacity;Do not enter standby mode then.When time-out is (after reaching the timing of task timer Still no data inputs), entire earphone system can all enter deep sleep, and dsp processor also can accordingly enter and leave the mode, from And achieve the effect that power management.
With earphone and mobile communication, for playing the music on mobile phone, the tool of first earplug 10 and the second earplug 20 Body running principle are as follows:
It first passes through bluetooth unit 113 and mobile phone is established and communicated.When mobile phone to play music, by Bluetooth protocol by audio Digital signal send the bluetooth unit 113 to the first earplug 10 to be received.Digital signal is unpacked and obtains cardinar number by bluetooth unit 113 It is transmitted in the first memory 120 and saves after.First MCU control unit 141 sends to read to instruct and obtain from the first memory 120 Clear data is simultaneously transferred to the first dsp processor 142.It (is existing that first dsp processor 142, which carries out separated algorithm to clear data, Technology, corresponding with the algorithm of MIX processing) processing, the second channel data of acquisition and first passage data are transmitted to first MCU control unit 141 is distributed.First passage data are transferred to the first audio DAC unit by the first MCU control unit 141 It is played back after 143 progress digital-to-analogue conversions by the first loudspeaker 150.Second channel data are transferred to the first transmitting-receiving control unit The second transceiver 212 of the second earplug 20 is sent to after 111 resamplings, again by first transceiver 112.
The second transceiver 212 of second earplug 20 receives second channel data after resampling and is transferred to the second transmitting-receiving Control unit 211.Second transmitting-receiving control unit 211 carries out data resampling to second channel data, reverts to original sampling Rate and being transmitted in the second memory 220 stores.Second MCU control unit 241 reads second channel data from the second memory 220 And it is transmitted to the algorithm process that the second dsp processor 242 carries out data resampling.Second channel data that treated are transmitted to Two audio DAC units 243 are played back after carrying out digital-to-analogue conversion by the second loudspeaker 250.
In the present embodiment, first transmitting-receiving control unit 111 is identical with the structure of the second transmitting-receiving control unit 211, such as Shown in Fig. 6 dotted line frame, including magnetic induction controller, audio sample controller, delay controller, sectors code modem, the Three dsp processors and I2S(audio-frequency bus).Magnetic induction controller is for receiving transceiver (i.e. first transceiver or the second transmitting-receiving Device, LA and LB respectively indicate the width and length of antenna in transceiver) transmission data.Audio sample controller is for carrying out weight Sampling setting.Delay controller is for adjusting delay time, the speed of optimization transmission data and time.Sectors code modem For acquiring the data to corresponding wave band (i.e. the reference carrier frequency of NFMI technology).Third dsp processor is for being adopted again Sample and SRC algorithm (prior art) processing.I2S connection storage management apparatus (i.e. memory).
(English in figure is write according to the term of android, has certain mark with Fig. 8 referring to Figure 7 together Parasexuality and versatility do not need to be changed to Chinese or provide corresponding translator of Chinese, its known meaning of those skilled in the art). In the present embodiment, cell phone platform is as follows to the process of the first earplug by bluetooth module transmission audio:
In android system, application program can only see this interface of AudioSystem.AudioFlinger is one It realizes class, is mainly used for audio mixing and the resampling of audio routing and PCM data packet, and PCM data packet is sent to bottom. AudioFlinger only one entity in all processes, other processes are as needed to access through Binder interprocess communication Mode accesses.AudioHardware is one layer of hardware abstraction layer, is mainly responsible for the transmitting-receiving and control of audio data. AudioFlinger can regard actual hardware as.It is (i.e. blue by Bluetooth module when audio path is arranged to A2DP Tooth unit) sending and receiving data, hi-fi music can be heard by I tech clip S.AudioAccessory is mainly used for thing The monitoring of part, and these events are sent to the reset that AudioFlinger carries out audio path.When Bluetooth stereo ear After machine matching, AudioAccessory can obtain corresponding information (event for monitoring HCI layers) from kernel, then sound Frequency path is configured to A2DP mode, and such audio data just can be only sent in bluetooth headset, if it is necessary, also can be set The audio decoder chip of loudspeaker is transferred to dormant state.
When there is audio data broadcasting, since the Open Source Code of SBC audio compression can only compress the number of 512bytes size According to.Therefore, AudioHardware sends 4096Bytes every time, then this 4096 bytes is divided into N number of The fritter of 512Bytes is put into a queue.Become 113Bytes after SBC compression.Another thread can be every The secondary packet compressed to SBC is encapsulated again, the A2DP packet an of standard is packaged into, then again such A2DP Packet is moved in transmit queue.Last set good software timer, postbacks send one at regular intervals A2DPpacket(packet).This time interval is the recommendation returned during SBC coding.
It is to be appreciated that delay when Bluetooth data reception, will lead to sound and plays asynchronous, common blue-teeth data biography Just there are data after postponing 130ms in defeated agreement.And the NFMI technology that the present embodiment uses is in the communication of blue-tooth stereo earphone On have an inborn advantage, may occur in which data after postponing 18ms, therefore when sound plays is acoustically synchronous.
In the present embodiment, first earplug is right earplug, and first passage data are right channel data, and the first loudspeaker is Right loudspeaker;Second earplug is left earplug, and second channel data are left channel data, and the second loudspeaker is left speaker.Having When body is implemented, first earplug can also be left earplug, and first passage data are left channel data, and the first loudspeaker is Zuo Yangsheng Device;Second earplug is right earplug, and second channel data are right channel data, and the second loudspeaker is right loudspeaker.Herein not to this It limits.
Based on the above-mentioned earphone for realizing three-dimensional voice output by near-field communication, it is logical by near field that the present invention also provides one kind The method for proving to be true after interrogation existing three-dimensional voice output, also referring to Fig. 9, which comprises
S100, the first earplug receive the digital signal of audio and are converted to second channel data and first passage data;
S200, the first earplug play out first passage data, according to NFMI communications protocol to second channel data Sample rate is transferred to the second earplug after being adjusted;
S300, the second earplug play after restoring to the sample rate of second channel data.Specific method please be detailed in above-mentioned Installation practice.
In conclusion the earphone and its method of the invention that three-dimensional voice output is realized by near-field communication, in two earplugs Between substitute Bluetooth transmission using NFMI transmission, sample rate is adjusted according to NFMI communications protocol when transmitting second channel data Keep the two consistent, restores original sample rate before playing second channel data;To realize the transmission of high-speed lossless audio data, And accomplish maximum synchronization in delay;In addition, connection mobile phone and other platforms still pass through bluetooth approach, it can be Match the earphone of the output wireless stereo based on NFMI technology with common consumption electronic product.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention Protect range.

Claims (9)

1. a kind of earphone for realizing three-dimensional voice output by near-field communication, which is characterized in that including the first earplug and the second earplug;
First earplug receives the digital signal of audio and is converted to second channel data and first passage data, the first earplug First passage data are played out, are transferred to after being adjusted according to sample rate of the NFMI communications protocol to second channel data Second earplug;Second earplug plays after restoring to the sample rate of second channel data;
First earplug includes transceiver module, the first memory, the first power module, processing module and the first loudspeaker;
The transceiver module receives the digital signal of audio and unpacks acquisition clear data;Clear data described in first memory storage;Place Reason module obtains clear data from the first memory and is separated into second channel data and first passage data, to first passage data It is transmitted to the broadcasting of the first loudspeaker after carrying out digital-to-analogue conversion, second channel data are also transmitted to transceiver module;Transceiver module root The second earplug is transferred to after being adjusted according to sample rate of the NFMI communications protocol to second channel data;First electric power source pair of module institute State transceiver module, the first memory, processing module and the first power speakers;
It is adjusted identical with the sample rate of NFMI communications protocol even if second channel data to sample rate and is 596kbps.
2. the earphone according to claim 1 for realizing three-dimensional voice output by near-field communication, which is characterized in that the transmitting-receiving Module includes the first transmitting-receiving control unit, first transceiver and bluetooth unit;
The bluetooth unit receives the digital signal of audio and unpacks acquisition clear data, and clear data is transmitted in the first memory and is protected It deposits;First transmitting-receiving control unit is transferred to the first transmitting-receiving after second channel data are adjusted to consistent with the sample rate of communications protocol Device;Second sound channel data are sent to the second earplug according to NFMI communications protocol by first transceiver.
3. the earphone according to claim 2 for realizing three-dimensional voice output by near-field communication, which is characterized in that the processing Module includes the first MCU control unit, the first dsp processor and the first audio DAC unit;
First MCU control unit sends to read to instruct and obtains clear data from the first memory and be transferred to the first DSP processing Device;First dsp processor carries out separation to clear data and obtains second channel data and first passage data;First MCU control is single First passage data are transferred to the first audio DAC unit by member, and second channel data are transferred to the first transmitting-receiving control unit;The One audio DAC unit passes through the broadcasting of the first loudspeaker after carrying out digital-to-analogue conversion to first passage data.
4. the earphone according to claim 1 for realizing three-dimensional voice output by near-field communication, which is characterized in that described second Earplug includes receiving module, the second memory, second power supply module, control module and the second loudspeaker;
The receiving module receives the second channel data that the first earplug is sent, and is transmitted in the second memory and deposits after recovery sample rate Storage;Control module is transmitted to the second loudspeaking from acquisition second channel data in the second memory and after carrying out resampling, digital-to-analogue conversion Device plays;Second power supply module is to the receiving module, the second memory, control module and the second power speakers.
5. the earphone according to claim 4 for realizing three-dimensional voice output by near-field communication, which is characterized in that the reception Module includes the second transmitting-receiving control unit and second transceiver;
The second transceiver receives the second channel data that the first earplug is sent;Second transmitting-receiving control unit is to second channel number Restore sample rate according to data resampling is carried out, and is transmitted in the second memory and stores.
6. the earphone according to claim 5 for realizing three-dimensional voice output by near-field communication, which is characterized in that the control Module includes the second MCU control unit, the second dsp processor and the second audio DAC unit;
Second MCU control unit sends to read to instruct and reads second channel data from the second memory and be transferred to second Dsp processor;Second dsp processor carries out data resampling to second channel data and is transmitted to the second audio DAC unit;The Two audio DAC units are transmitted to the broadcasting of the second loudspeaker after carrying out digital-to-analogue conversion to the second channel data after resampling.
7. the earphone according to claim 1 for realizing three-dimensional voice output by near-field communication, which is characterized in that described first Earplug is right earplug, and first passage data are right channel data, and the second earplug is left earplug, and second channel data are left port number According to.
8. the earphone according to claim 1 for realizing three-dimensional voice output by near-field communication, which is characterized in that described first Earplug is left earplug, and first passage data are left channel data, and the second earplug is right earplug, and second channel data are right port number According to.
9. a kind of transmission method using the earphone described in claim 1 for realizing three-dimensional voice output by near-field communication, special Sign is, comprising:
Step A, the first earplug receives the digital signal of audio and is converted to second channel data and first passage data;
Step B, the first earplug plays out first passage data, the sampling according to NFMI communications protocol to second channel data Rate is transferred to the second earplug after being adjusted;
Step C, the second earplug plays after restoring to the sample rate of second channel data.
CN201610632459.2A 2016-08-04 2016-08-04 A kind of earphone and its method for realizing three-dimensional voice output by near-field communication Active CN106101901B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610632459.2A CN106101901B (en) 2016-08-04 2016-08-04 A kind of earphone and its method for realizing three-dimensional voice output by near-field communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610632459.2A CN106101901B (en) 2016-08-04 2016-08-04 A kind of earphone and its method for realizing three-dimensional voice output by near-field communication

Publications (2)

Publication Number Publication Date
CN106101901A CN106101901A (en) 2016-11-09
CN106101901B true CN106101901B (en) 2019-06-04

Family

ID=57454741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610632459.2A Active CN106101901B (en) 2016-08-04 2016-08-04 A kind of earphone and its method for realizing three-dimensional voice output by near-field communication

Country Status (1)

Country Link
CN (1) CN106101901B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921908B (en) * 2017-03-24 2020-05-26 成都极米科技股份有限公司 Bluetooth sound box implementation method and system
CN107071615A (en) * 2017-04-07 2017-08-18 广州黑格智能科技有限公司 A kind of earphone and earphone system
CN106792326A (en) * 2017-04-07 2017-05-31 广州黑格智能科技有限公司 A kind of earphone and earphone system
US10715898B2 (en) 2017-05-11 2020-07-14 Bestechnic (Shanghai) Co., Ltd. Dual-band wireless headphones
CN107318062B (en) * 2017-05-11 2019-10-11 恒玄科技(上海)有限公司 A kind of low-power consumption one drag two bluetooth headset
CN107124674B (en) * 2017-06-20 2019-11-08 歌尔科技有限公司 A kind of audio-frequency inputting method of bluetooth headset, device and bluetooth headset
CN107205192B (en) * 2017-07-28 2019-10-11 广州黑格智能科技有限公司 A kind of audio frequency playing method of ears wireless headset and ears wireless headset
US10917930B2 (en) 2018-04-19 2021-02-09 Qualcomm Incorporated Reliable wireless communication with a source using relayed communication
CN108777854A (en) * 2018-05-25 2018-11-09 恒玄科技(上海)有限公司 A kind of wireless headset realization stereosonic system and method for high-quality transmission
CN109688513A (en) * 2018-11-19 2019-04-26 恒玄科技(上海)有限公司 Wireless active noise reduction earphone and double active noise reduction earphone communicating data processing methods
CN110191389B (en) * 2019-06-25 2021-02-12 歌尔股份有限公司 Multi-point connection method and device of wireless headset, Bluetooth headset and TWS headset
CN110381492A (en) * 2019-07-30 2019-10-25 上海富芮坤微电子有限公司 The implementation method of bluetooth headset ears call
CN113488062A (en) * 2020-03-16 2021-10-08 维沃移动通信有限公司 Audio transmission method and electronic equipment
CN111385621B (en) * 2020-03-18 2022-08-02 海信视像科技股份有限公司 Display device and Bluetooth audio transmission method
CN112383864A (en) * 2020-09-29 2021-02-19 江苏清微智能科技有限公司 Wireless earphone data transmission system and method
CN113015057A (en) * 2021-03-16 2021-06-22 歌尔科技有限公司 Earphone and earphone system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101637012A (en) * 2007-03-14 2010-01-27 高通股份有限公司 Headset having wirelessly linked earpieces
CN102780953A (en) * 2011-05-06 2012-11-14 奥迪康有限公司 Receiver and method for retrieving an information signal from a magnetic induction signal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101236443B1 (en) * 2012-07-27 2013-02-25 (주)알고코리아 Wireless in-ear hearing aid system having a remote control function and controlling method therefore

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101637012A (en) * 2007-03-14 2010-01-27 高通股份有限公司 Headset having wirelessly linked earpieces
CN102780953A (en) * 2011-05-06 2012-11-14 奥迪康有限公司 Receiver and method for retrieving an information signal from a magnetic induction signal

Also Published As

Publication number Publication date
CN106101901A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN106101901B (en) A kind of earphone and its method for realizing three-dimensional voice output by near-field communication
CN107318062B (en) A kind of low-power consumption one drag two bluetooth headset
US11350486B2 (en) Wireless communication method for earphones, master earphone, slave earphone, earphone system
WO2020133112A1 (en) Method for automatically switching bluetooth audio encoding method and electronic apparatus
CN107205192B (en) A kind of audio frequency playing method of ears wireless headset and ears wireless headset
WO2020124611A1 (en) Rate control method and device
CN110572803A (en) Bluetooth switching method and Bluetooth device
KR20160075060A (en) Method for controlling function based on battery information and electronic device thereof
CN108886647A (en) Earphone noise-reduction method and device, main earphone, from earphone and earphone noise reduction system
AU2015340841A1 (en) Steering device for a dictation machine
WO2020124371A1 (en) Method and device for establishing data channels
CN112771828A (en) Audio data communication method and electronic equipment
CN203180922U (en) Wireless earphone system based on near field electromagnetic induction
CN201957216U (en) Bluetooth earphone with sound recording function
CN204425599U (en) A kind of earphone based on bone conduction technology
CN212086427U (en) High sampling rate bluetooth voice transmission system
CN211791968U (en) TWS earphone
CN209806070U (en) Wearable directional sound system
CN107172521A (en) A kind of bluetooth earphone and system for Real-time speech recognition
CN208691520U (en) WIFI speaker
CN207832304U (en) A kind of intelligent electronic-scale with bluetooth
CN210958744U (en) TWS earphone
CN109831766A (en) A kind of method, bluetooth equipment component and Bluetooth communication system transmitting data
CN212992582U (en) Wireless earphone
CN203933913U (en) Have the wired earphone of wireless communication function concurrently

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant