Disclosure of Invention
The invention mainly aims to provide a Bluetooth headset and a song caching method thereof, aiming at the problems in the prior art.
The technical scheme adopted by the invention is as follows:
in a first aspect, a method for buffering songs by a bluetooth headset is provided, which includes: after the Bluetooth connection is established between the Bluetooth earphone and the terminal equipment, if a music playing instruction is received, judging whether a Bluetooth playing mode or a memory card playing mode is currently adopted according to a mode key; if the current mode is the Bluetooth playing mode, further judging whether the storage function is started currently according to the mode key; if yes, storing the Bluetooth song transmitted by the terminal equipment for playing into a memory card; otherwise only the bluetooth song is played.
Optionally, determining, according to the mode key, whether the current bluetooth play mode or the memory card play mode is adopted includes: and detecting whether the mode key is pressed for a long time, if so, entering a memory card play mode, and otherwise, entering a Bluetooth play mode.
Optionally, further determining whether the storage function is currently enabled according to the mode key includes: and detecting whether the mode key is clicked, if so, starting the storage function, and otherwise, not starting the storage function.
Optionally, the method further includes: and when the Bluetooth earphone is not connected with the terminal equipment in a Bluetooth mode, if the mode key is detected to be pressed for a long time, the storage card playing mode is entered.
Optionally, the mode key is a physical key arranged on the bluetooth headset.
In a second aspect, a bluetooth headset is provided, which includes a bluetooth chip, and a mode button and a memory card connected to the bluetooth chip, wherein a file management system is operated on the bluetooth chip, and the bluetooth chip executes the following steps by operating the file management system: after the Bluetooth connection is established between the Bluetooth earphone and the terminal equipment, if a music playing instruction is received, detecting the state of a mode key, and judging whether a Bluetooth playing mode or a memory card playing mode is currently adopted according to the mode key; if the current mode is the Bluetooth playing mode, further judging whether the storage function is started currently according to the mode key; if yes, storing the Bluetooth song transmitted by the terminal equipment for playing into a memory card; otherwise only the bluetooth song is played.
Optionally, the bluetooth chip detects that the mode key is pressed for a long time, and enters a memory card play mode, otherwise, enters a bluetooth play mode.
Optionally, in the bluetooth play mode, when detecting that the mode key is clicked, the bluetooth chip enables the storage function, otherwise, does not enable the storage function.
Optionally, the mode key is a physical key arranged on the bluetooth headset.
According to the technical scheme, the embodiment of the invention has the following advantages:
1. the memory card playing mode is provided, and the embarrassment that the Bluetooth headset can be used only by relying on sound source equipment such as a mobile phone and the like, and songs cannot be played after the Bluetooth headset is separated from the sound source equipment such as the mobile phone and a computer is solved.
2. The storage function is provided in the Bluetooth playing mode, the Bluetooth songs can be stored in the memory card while being played, and the special tools are not needed to be used for storing in advance, so that the problem that the transmission of the songs by the Bluetooth headset with the memory card can be completed by the special tools is solved.
3. The switching between the Bluetooth playing mode and the memory card playing mode and whether to provide the storage function in the Bluetooth mode are controlled by the physical key-mode key, which is convenient for the user to operate.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," and the like in the description and in the claims, and in the above-described drawings, are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The embodiments of the present invention will be described in detail below with reference to specific examples.
Referring to fig. 1, an embodiment of the invention provides a bluetooth headset.
The Bluetooth headset comprises a Bluetooth chip (IC)11, aloudspeaker 12 connected to the Bluetoothchip 11, amode key 13 and aflash memory 14, wherein afile management system 15 runs on the Bluetoothchip 11. Themode key 13 is a physical key.
The principle of the Bluetooth headset is as follows:
the file management system in the bluetooth program can store the bluetooth songs transmitted by the mobile phone in a Flash memory (Flash), and the storage function can be controlled by a mode (mode) key to open or not, for example, whether the mode key is pressed for a long time or not.
When the bluetooth song is not played, the bluetooth chip can read the data in Flash and play the song stored in Flash, and the function is controlled by the mode key to open or not, for example, whether the mode key is clicked (i.e., short-time pressed) or not.
The Bluetooth chip can realize the following operations by operating a file management system and combining a mode key:
after the Bluetooth connection between the Bluetooth earphone and the mobile phone is established, if a music playing instruction is received, detecting the state of a mode key, and judging whether a Bluetooth playing mode or a memory card playing mode (when the memory card is a flash memory, the mode can also be called as a flash memory playing mode) is currently adopted according to the mode key;
if the current mode is the Bluetooth playing mode, further judging whether the storage function is started currently according to the mode key;
if yes, storing the Bluetooth song transmitted by the mobile phone for playing into a flash memory; otherwise only the bluetooth song is played.
And when the Bluetooth chip detects that the mode key is pressed for a long time, the Bluetooth chip enters a memory card play mode, otherwise, the Bluetooth chip enters the Bluetooth play mode.
The Bluetooth chip detects that in a Bluetooth playing mode, when a mode key is clicked, the storage function is started, otherwise, the storage function is not started.
Referring to fig. 2, an embodiment of the present invention further provides a method for buffering songs by a bluetooth headset, where the method includes the following steps:
s0, the Bluetooth headset judges whether Bluetooth connection is established with the mobile phone;
s11, when the Bluetooth earphone is not connected with the mobile phone by Bluetooth, detecting that the mode key is pressed for a long time;
and S12, if the mode key is detected to be pressed for a long time, entering a memory card playing mode (namely a Flash playing mode).
S21, after the Bluetooth connection is established between the Bluetooth headset and the mobile phone, a music playing instruction is received;
s22, detecting whether the mode key is pressed for a long time so as to judge which play mode is adopted currently;
s23, if the mode key is detected to be pressed for a long time, entering a memory card playing mode (namely a Flash playing mode); otherwise, entering a Bluetooth playing mode;
s24, when the current mode is the Bluetooth playing mode, further detecting whether the mode key is clicked, so as to judge whether the storage function is started at present according to the mode key;
s25, if the mode key is detected to be clicked, starting a storage function, and storing the Bluetooth song into a flash memory when the Bluetooth song is transmitted by the mobile phone for playing;
and S26, if the mode key is not clicked, the storage function is not started, and only the Bluetooth song transmitted by the mobile phone is played.
The long-time mode button pressing operation is used for switching the play mode, the Bluetooth play mode can be switched to the Flash play mode, and the Flash play mode can also be switched to the Bluetooth play mode.
Clicking a mode key to open/close the storage function of the Bluetooth song, defaulting to close the function, and clicking a mode key to open the function to store the Bluetooth song being played into Flash; and clicking the mode key to close the storage function.
It should be noted that, the device that establishes a connection with the bluetooth headset herein is taken as an example of a mobile phone, but is not limited to a mobile phone, and it may also be a terminal device with a bluetooth function, such as a notebook computer, a tablet computer, and the like.
In addition, the memory card of the bluetooth headset is exemplified by a flash memory, but the flash memory is not limited to be used in practical application, and other forms of memory cards can be used.
In summary, the invention discloses a bluetooth headset and a song caching method thereof. The scheme of the invention has the following advantages:
1. the memory card playing mode is provided, and the embarrassment that the Bluetooth headset can be used only by relying on sound source equipment such as a mobile phone and the like, and songs cannot be played after the Bluetooth headset is separated from the sound source equipment such as the mobile phone and a computer is solved. People who are convenient to enjoy sports can listen to songs by only taking the earphone when going out and running, and the embarrassment situation that people who take the mobile phone do not know which pocket to put in is avoided.
2. The storage function is provided in the Bluetooth playing mode, the Bluetooth songs can be stored in the flash memory while being played, and the special tools are not needed to be used for storing in advance, so that the problem that the transmission of the songs by the Bluetooth headset with the memory card can be completed by the special tools is solved.
3. The switching between the Bluetooth playing mode and the memory card playing mode and whether to provide the storage function in the Bluetooth mode are controlled by the physical key-mode key, which is convenient for the user to operate.
The technical solution of the present invention is explained in detail by the specific embodiments above. In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
It should be understood that the above embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same. The technical solutions described in the above embodiments can be modified or part of the technical features can be equivalently replaced by those skilled in the art; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and the scope of the technical solutions of the embodiments of the present invention.