[summary of the invention]
The object of the present invention is to provide a kind of bluetooth earphone with audio playing function
Another object of the present invention is to provide a kind of method of bluetooth earphone displaying audio file.
For reaching aforementioned purpose, a kind of bluetooth earphone with audio playing function of the present invention, it comprises:
Power module, it is used for providing power supply to each functional unit of bluetooth earphone;
The Bluetooth RF module, it is used for receiving and transmitting data according to bluetooth wireless protocol;
The bluetooth earphone state detection unit, it is for detection of the state of bluetooth earphone;
Processor unit, it reads the audio file that stores in the audio memory according to the state that the bluetooth earphone state detection unit detects;
Audio memory, it is used for the stored audio file;
Audio-frequency module, it controls the input and output of audio file under the control of processor unit;
The audio frequency input unit, it is used for input audio signal;
Sound-producing device; It is used for output audio signal.
According to one embodiment of present invention, the state of described bluetooth earphone comprises: Bluetooth pairing state, the idle condition of communicating by letter, answer connection state, breathe out and to answer wait state.
According to one embodiment of present invention, when the bluetooth earphone state detection unit detects bluetooth earphone and is in Bluetooth pairing state or exhalation and answers wait state, its output signal notification processor unit reads audio file from audio memory, play the audio file that reads through sound-producing device by processor control audio-frequency module.
According to one embodiment of present invention, when detecting bluetooth earphone, the bluetooth earphone state detection unit is in communication during idle condition, the described processor unit control Bluetooth RF module download audio files of communicating by letter with the external world.
According to one embodiment of present invention, described audio memory is volatile memory.
According to one embodiment of present invention, described audio memory is nonvolatile memory.
For reaching aforementioned another purpose, the method for a kind of bluetooth earphone displaying audio file of the present invention, it comprises: the state of bluetooth earphone state detection unit Test earphone, whether Test earphone is in the pairing state;
When the bluetooth earphone state detection unit detected earphone and is in the pairing state, audio file in the audio memory was got by processor unit in the notification processor unit;
Processor unit control audio-frequency module passes through the sound-producing device playback of audio information after audio file is processed.
According to one embodiment of present invention, the bluetooth earphone state detection unit detects the state of bluetooth earphone, whether successful matching, if successful matching, then stop to read the audio file in the audio memory, stop playback of audio information, be in connection status if the bluetooth earphone state detection unit detects bluetooth, then audio-frequency module switches to the audio signal of proper communication.
For reaching aforementioned another purpose, the method for a kind of bluetooth earphone displaying audio file of the present invention, it comprises: whether the state of bluetooth earphone state detection unit Test earphone, Test earphone are in exhalation waiting answering state;
When the bluetooth earphone state detection unit detected earphone and is in exhalation waiting answering state, audio file in the audio memory was got by processor unit in the notification processor unit;
Processor unit control audio-frequency module passes through the sound-producing device playback of audio information after audio file is processed.
According to one embodiment of present invention, the bluetooth earphone state detection unit detects the other side and is in the state of answering, and then the notification processor unit stops to read audio file from audio memory, and processor unit switches to audio-frequency module the audio signal of proper communication.
Bluetooth earphone of the present invention can be when Bluetooth pairing or the advertisement that stores in the audio plays memory during bluetooth exhalation waiting answering, and the manufacturer that produces like this bluetooth earphone can allow manufacturer's patronage of want advertisement, and reduces the cost of bluetooth earphone manufacturer.
[embodiment]
Alleged " embodiment " or " embodiment " refer to be contained in special characteristic, structure or the characteristic at least one implementation of the present invention herein.Different local in this manual " in one embodiment " that occur not are all to refer to same embodiment, neither be independent or the embodiment mutually exclusive with other embodiment optionally.
See also shown in Figure 1, it shows the structured flowchart of the bluetooth earphone of one embodiment of the present of invention, as shown in Figure 1, bluetooth earphone of the present invention comprises power module 10, Bluetooth RF module 13, bluetooth earphone state detection unit 14, processor unit 15, audio memory 16, audio-frequency module 17, audio frequency input unit 18 and sound-producing device 19.
In one embodiment of the invention, described power module 10 comprises battery 11 and power management module 12, described battery 11 is the rechargeable lithium battary button cell, as shown in fig. 1, the output voltage of lithium battery button cell 11 is VBAT, discharging and recharging of 12 pairs of these chargeable lithium cells of described power management module manages, and the voltage of exporting through power management module 12 is VDD.
Bluetooth RF module 13 is be used to the coupling of finishing bluetooth, send and receive, and it generally includes antenna, transmit-receive switch, baseband signal processor, memory cell (RAM), memory management unit, codec unit etc.When radio-frequency module received signal, transmit-receive switch was set to the receipts state, and radiofrequency signal directly is transferred to baseband signal processor through bluetooth transceiver behind antenna reception.Base band signal process comprises down-conversion and sampling, digital signal is stored in the memory cell, call and process for memory management unit, data after storage administration will be processed output to other equipment from addressable port, concrete structure about the Bluetooth RF module is the technology that those skilled in the art should know, the present invention explains no longer in detail.
Bluetooth earphone state detection unit 14 is for detection of the operating state of bluetooth earphone, and the state of described bluetooth earphone comprises: Bluetooth pairing state, resting state, answer connection state, breathe out and to answer wait state etc.
Processor unit 15, it is used for the signal transmission of management Bluetooth RF module 13 and audio-frequency module 17, and reads and storing audio files from audio memory 16.In one embodiment of the invention, described processor unit 15 is a low-power consumption ARM, for example ARM-M0 or ARM-M3.
Audio memory 16 can also can be volatile memory for nonvolatile memory.Nonvolatile memory refer to cut off the power supply not can drop-out memory, volatile memory refer to the to cut off the power supply memory of rear information dropout.The nonvolatile memory example is EEPROM or flash memory.The volatile memory example is RAM or common d type flip flop or common lock storage.If audio memory is nonvolatile memory, it can be powered with VDD, and like this, even when bluetooth earphone is in off-mode, audio file still can effectively be preserved.If when selecting volatile memory, need to use the VBAT power voltage supply.
Audio-frequency module 17 can comprise ADC, DAC and audio-frequency power amplifier, ADC is converted into digital signal with the simulated audio signal of audio frequency input unit 18 inputs, process to make things convenient for signal, the digital audio and video signals that DAC will need to export is converted into simulated audio signal, for audio frequency amplifier provides input signal, audio frequency amplifier drives sound-producing device 19 sounding.
Audio frequency input unit 18 can be microphone.
Sound-producing device 19 can be loudspeaker.
The audio file that stores in the audio frequency holder of the present invention as advertisement as example, the following describes the concrete grammar of bluetooth earphone broadcast advertisement of the present invention.
There are two kinds of situations can broadcast advertisement during bluetooth earphone specific works of the present invention, see also shown in Figure 2, a kind of situation is when bluetooth earphone state detection unit 14 detects bluetooth earphone and is being in the pairing state, when for example being connected with mobile phone or panel computer, processor unit 15 reads in the audio memory 16 advertising message by audio-frequency module 17 and sound-producing device 19 broadcast advertisements.Detailed process comprises:
Step 21: the state of bluetooth earphone state detection unit Test earphone, whether Test earphone is in the pairing state.
Step 22: when the bluetooth earphone state detection unit detected earphone and is in the pairing state, the notification processor unit read advertising message in the audio memory by processor unit.
Step 23: the advertising message that processor unit control will be read from audio memory is carried out advertisement by audio-frequency module control and is play.
Step 24: the bluetooth earphone state detection unit detects the state of bluetooth earphone, whether successful matching is if successful matching then stops to read the advertising message in the audio memory, stop broadcast advertisement, perhaps also can keep bluetooth earphone to be in the state of broadcast advertisement always.
Step 25: be in connection status if the bluetooth earphone state detection unit detects bluetooth, then audio-frequency module switches to the audio signal of proper communication.
Another kind of situation is, when carrying out call by bluetooth earphone, when bluetooth earphone state detection unit 14 detected the other side and is in the waiting answering state, processor unit 15 read the advertising message in the audio memory 16, and with traditional the tinkle of bells that this alternative earphone end is sent, carry out advertisement and play.See also shown in Figure 3ly, detailed process comprises:
Step 31: the bluetooth earphone state detection unit detects the state of bluetooth earphone, detects bluetooth earphone and whether is in exhalation waiting answering state.
Step 32: when the bluetooth earphone state detection unit detected bluetooth earphone and is in the state of exhalation waiting answering, the notification processor unit read advertising message in the audio memory by processor unit.
Step 33: the advertising message that processor unit control will be read from audio memory is carried out advertisement by audio-frequency module control and is play.
Step 34: the bluetooth earphone state detection unit detects the other side and is in the state of answering, and then the notification processor unit stops to read advertisement from audio memory.
Step 35: processor unit switches to audio-frequency module the audio signal of proper communication.
See also shown in Figure 4, when bluetooth earphone is in the communication idle condition when (or being called resting state), bluetooth earphone of the present invention can arrange automatic detection advertisement program function, for example advertisement has renewal, when perhaps in mobile phone or the panel computer new advertisement being arranged, advertisement program in mobile phone or the panel computer can be downloaded in the bluetooth earphone, the advertisement of downloading is write audio memory.Be similar to the automatic software update program in the present computer.Its concrete steps are:
Step 41: the bluetooth earphone state detection unit detects the state of bluetooth earphone, judges whether bluetooth earphone is in the communication idle condition.
Step 42: if bluetooth earphone is in the communication idle condition, then bluetooth earphone is communicated by letter with mobile phone or panel computer and is downloaded advertisement in mobile phone or the panel computer.
Step 43: processor unit writes the advertisement of downloading in the audio memory.
In the aforementioned embodiment, what store in the described audio memory is advertisement, and in actual applications, this audio memory is not limited to only stores advertisement, and what also can store in this memory is the audio files such as music, recording.
Bluetooth earphone of the present invention can be when Bluetooth pairing or the advertisement that stores in the audio plays memory during bluetooth exhalation waiting answering, and the manufacturer that produces like this bluetooth earphone can allow manufacturer's patronage of want advertisement, and reduces the cost of bluetooth earphone manufacturer.
Above-mentioned explanation has fully disclosed the specific embodiment of the present invention.It is pointed out that and be familiar with the scope that any change that the person skilled in art does the specific embodiment of the present invention does not all break away from claims of the present invention.Correspondingly, the scope of claim of the present invention also is not limited only to previous embodiment.