A kind of method of Based Intelligent Control multimedia, system and earphone
Technical field
The present invention relates to the Play Technique for Multimedia of portable terminal, relate in particular to a kind of method, system and earphone of Based Intelligent Control multimedia.
Background technology
Along with popularizing of portable terminal, mobile phone no longer has been single conversation instrument, multimedia application has become the indispensable part of mobile phone, can see the crowd who listens to the music with mobile phone everywhere, in noisy and clamour, mobile phone music gives people's a slice personal air whenever and wherever possible, a lot of sleep qualities are bad, the cellphone subscriber who is disturbed by ambient noise can select to help to enter sleep with the mode that earphone is listened to the music easily, but after entering sleep, mobile phone but can not quit work, and music can not stop to play, and has so promptly reduced the stand-by time of mobile phone, what is more important, listen to the music with earphone for a long time and can damage user's ear-drum, concerning the user, if mobile phone music can help the user to enter sleep, can reduce the injury that therefore ear is brought again, be the thing that makes the best of both worlds.
Transducer is a kind of physical unit or biologic-organ, can survey, experience extraneous signal, physical condition (as light, heat, humidity) or chemical composition (as smog), and the information of finding out passed to other devices or organ, can experience specified measuring range and convert the device or the device of available signal to, form by senser and conversion element usually according to certain rules.Transducer is to experience measured information, be for conversion into the information output of the signal of telecommunication or other desired forms according to certain rules, to satisfy requirements such as transmission of Information, processing, storage, demonstration, record and control, be the primary link of realizing detection automatically and automatic control.
Application number comprises playing device and earphone for the CN200710200453.9 patent of invention discloses a kind of audio frequency apparatus.Earphone comprises the position transducer of the change in location that is used for the described earphone of sensing.Playing device comprises position processing module, control module and power management module.The sensing signal of position processing module receiving position transducer output also calculates the location variation of described earphone according to sensing signal.Control module makes power management module stop to be the audio frequency apparatus power supply according to the location variation control power management module of earphone.Above-mentioned audio frequency apparatus changes by the position sensors sense earphone position, the position processing module calculates the earphone position variable quantity according to sensing signal, after the user enters sleep state, control module can be closed audio frequency apparatus automatically according to the earphone position variable quantity, makes the automatic closing function hommization more of audio frequency apparatus.But this employing position transducer cuts out the method for audio frequency apparatus automatically, must cause under the situation that earphone position changes at User Activity just might close audio frequency apparatus, and is accurate inadequately.
Publication number is the patent of invention of US5146501, disclose a kind of motion conditions that detects dancer's head by the responsive potentiometer of attitude and adjusted the earphone of volume, this earphone can not be after the user enters sleep state, automatically close audio frequency apparatus, can not reduce the injury that the pleasant to the ear music of user's sleep procedure is brought ear.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method, system and earphone of Based Intelligent Control multimedia, can when entering sleep state, the user intelligence stop multimedia, the earphone play multimedia is to the injury of people's ear when reducing sleep, improve user's sleep quality, prolong the stand-by time of portable terminal, simultaneously can also to the user real-time health and fitness information is provided.
For achieving the above object, technical scheme of the present invention is achieved in that
The method of a kind of Based Intelligent Control multimedia provided by the invention is provided with the sleep pattern option at portable terminal, and the transducer that detects pulse is set on earphone; This method also comprises:
Described transducer whenever detects a pulse and produces a signal and be sent to portable terminal;
When selecting sleep pattern, the pulse rate that portable terminal detects in the time according to described sensor units obtains user's real-time heart rate, and after determining that according to user's changes in heart rate the user enters sleep state, the control multimedia.
In the such scheme, the pulse rate that described portable terminal detects in the time according to described sensor units, obtain user's real-time heart rate, for: described portable terminal whenever detects the just once interruption of generation of a signal that described transducer sends, in Interrupt Process, count processing, the number of signals that statistical unit time inner sensor transmits obtains user's real-time heart rate.
In the such scheme, the described unit interval is 20 seconds, 30 seconds or 1 minute.
In the such scheme, described changes in heart rate according to the user determines that the user enters sleep state, for: the threshold value that user's changes in heart rate is set at portable terminal, portable terminal is when carrying out multimedia, with the user's of acquisition real-time heart rate and the last real-time heart rate that obtains compare at every turn, greater than described threshold value the time, determine that the user enters sleep state.
In the such scheme, this method further comprises: at mobile terminal user interface (UI) threshold value is set option is set;
When selecting threshold value to be provided with, provide threshold value that the interface is set, the threshold value of input user changes in heart rate.
In the such scheme, this method further comprises: at the UI of portable terminal the fitness mode option is set;
When the user selects fitness mode, the pulse rate that portable terminal detects in the time according to described sensor units, acquisition user's real-time heart rate.
In the such scheme, this method further comprises: the user selects under the situation of fitness mode, at the heart rate of the real-time explicit user in multimedia interface.
The system of a kind of Based Intelligent Control multimedia provided by the invention, this system comprises: earphone, portable terminal; Wherein,
Earphone is provided with the transducer that detects pulse, and described transducer whenever detects a pulse and produces a signal and be sent to portable terminal;
Portable terminal is used to be provided with the sleep pattern option, when selecting sleep pattern, the pulse rate that detects in time according to described sensor units, obtain user's real-time heart rate, and after determining that according to user's changes in heart rate the user enters sleep state, the control multimedia.
In the such scheme, described earphone also comprises the signal delivery module, and the signal that is used for producing behind the sensor pulse is sent to portable terminal.
In the such scheme, described portable terminal comprises: sleep pattern module, heart rate acquisition module, judge module, transmit control module; Wherein,
The sleep pattern module is used to provide the sleep pattern option, when selecting sleep pattern, and notice heart rate acquisition module and judge module;
The heart rate acquisition module is used for the pulse rate that detects in the time according to described sensor units, obtains user's real-time heart rate;
Judge module is used for determining that according to user's changes in heart rate the user enters sleep state, and the notice transmit control module;
Transmit control module after being used to receive the notice of judge module, stops current multimedia.
In the such scheme, described judge module, specifically be used for threshold value according to the user's who is provided with changes in heart rate, the user's that each heart rate acquisition module is obtained real-time heart rate compares with the last real-time heart rate that obtains, greater than described threshold value the time, think that the user enters sleep state, the notice transmit control module.
In the such scheme, described portable terminal further comprises: threshold value is provided with module, is used for providing threshold value that option is set at the UI of portable terminal, when selecting threshold value to be provided with, provides threshold value that the interface is set, the threshold value of input user changes in heart rate.
In the such scheme, described portable terminal further comprises: fitness mode module, display module; Wherein,
The fitness mode module is used to provide the fitness mode option, when selecting fitness mode, and notice heart rate acquisition module and display module;
Display module is used for the real-time heart rate that obtains at multimedia interface display heart rate acquisition module.
A kind of earphone provided by the invention, this earphone comprises: transducer, signal delivery module; Wherein,
Transducer is used for whenever detecting a pulse and produces a signal;
The signal delivery module, the signal that is used for producing behind the sensor pulse is sent to portable terminal.
The method of a kind of Based Intelligent Control multimedia provided by the invention, system and earphone are provided with the transducer that detects pulse on earphone, described transducer whenever detects a pulse and just produces a signal and be sent to portable terminal; At portable terminal the sleep pattern option is set, when selecting sleep pattern, the pulse rate that portable terminal detects in the time according to described sensor units, obtain user's real-time heart rate, and after determining that according to the changes in heart rate of user before and after sleeping the user enters sleep state, control the multimedia of self; So, can be when the user enters sleep state accurately intelligence stop multimedia, the earphone play multimedia improves user's sleep quality to the injury of people's ear when reducing sleep, prolong the stand-by time of portable terminal, simultaneously can also to the user real-time health and fitness information is provided.
Description of drawings
Fig. 1 realizes a kind of schematic flow sheet of method of Based Intelligent Control multimedia for the present invention;
Fig. 2 realizes a kind of structural representation of system of Based Intelligent Control multimedia for the present invention.
Embodiment
Basic thought of the present invention is: the transducer that detects pulse is set on earphone, and described transducer whenever detects a pulse and just produces a signal and be sent to portable terminal; At portable terminal the sleep pattern option is set, when selecting sleep pattern, the pulse rate that portable terminal detects in the time according to described sensor units, obtain user's real-time heart rate, and after determining that according to the changes in heart rate of user before and after sleeping the user enters sleep state, control the multimedia of self;
Described portable terminal comprises mobile phone, MP4, notebook computer etc.; Described multimedia comprises audio frequency and/or video playback.
The present invention is described in further detail below by drawings and the specific embodiments.
The method of a kind of Based Intelligent Control multimedia provided by the invention, as shown in Figure 1, this method comprises following step:
Step 101: the transducer that detects pulse is set on earphone, and described transducer whenever detects a pulse and just produces a signal and be sent to portable terminal;
Concrete, the transducer that detects pulse is set in earphone, measure the pulse at user's ear position, because the pulse at ear position is generally slighter,, described transducer can be arranged near the strong place of user's ear pulse in order to allow transducer can obtain pulse information more accurately, such as auricle back etc., in addition, can also increase a fixture, the pulse at transducer and ear place can be permanently connected to; Described transducer whenever detects a pulse and just produces a signal, and communicate the signals to portable terminal when work; The described portable terminal that communicates the signals to generally is that described signal is sent to portable terminal by holding wire.
Step 102: at portable terminal the sleep pattern option is set, when selecting sleep pattern, the pulse rate that portable terminal detects in the time according to described sensor units, acquisition user's real-time heart rate;
Concrete, at the UI of portable terminal the sleep pattern option is set, when the user selected sleep pattern, portable terminal whenever detected the just once interruption of generation of a signal that described transducer sends, and counts processing in Interrupt Process, be that counter adds 1, the number of signals that statistical unit time inner sensor transmits obtains user's real-time heart rate, and when carrying out described statistics at every turn, again carry out described counting and handle, promptly counter makes zero; The described unit interval can be 20 seconds, 30 seconds or 1 minute etc.;
This step further comprises: at the UI of portable terminal the fitness mode option is set, and when the user selects fitness mode, the pulse rate that portable terminal detects in the time according to described sensor units, acquisition user's real-time heart rate;
In above-mentioned, the signal that the portable terminal detecting sensor sends can be the detection of carrying out the signal of transducer transmission by earphone keystroke testing circuit or special signal testing circuit, described special signal testing circuit is the testing circuit that the special signal that transducer is sent is provided with, the circuit of this detection signal belongs to prior art, repeats no more here; Whether when the signal that sends by earphone keystroke testing circuit detecting sensor, can judge current earlier is sleep pattern or fitness mode, when being sleep pattern or fitness mode, normal earphone keystroke Interrupt Process being switched to said counting handle; When being not sleep pattern or fitness mode, the Interrupt Process that key press detecting circuit produces is switched back normal earphone keystroke Interrupt Process;
Step 103: selecting under the sleep pattern situation, after the changes in heart rate before and after portable terminal is slept according to the user determines that the user enters sleep state, controlling the multimedia of self;
Concrete, the user moves forward and backward the real-time heart rate that terminal obtains according to oneself sleeping, the threshold value of the changes in heart rate of user before and after sleeping is set at portable terminal, portable terminal is when carrying out multimedia, with the user's of acquisition real-time heart rate and the last real-time heart rate that obtains compare at every turn, greater than described threshold value the time, think that the user enters sleep state, stop current multimedia;
Described user moves forward and backward the real-time heart rate that terminal obtains according to oneself sleeping, the threshold value of the changes in heart rate of user before and after sleeping is set at portable terminal, generally be: each real-time heart rate that obtains before and after mobile terminal records user sleeps, the threshold value of the changes in heart rate before and after the user determines oneself to sleep by the real-time heart rate of searching mobile terminal records;
This step further comprises: at the UI of portable terminal threshold value is set option is set, the user provides threshold value that the interface is set when selecting threshold value to be provided with, and is used to import the threshold value of the changes in heart rate of user before and after sleeping;
This step further comprises: select under the fitness mode situation the user, at multimedia interface display user's real-time heart rate, make the user obtain the physical condition of self when carrying out multimedia.
In order to realize said method, the present invention also provides a kind of system of Based Intelligent Control multimedia, and as shown in Figure 2, this system comprises: earphone 21, portable terminal 22; Wherein,
Earphone 21 is used to the transducer that detects pulse is set, and described transducer whenever detects a pulse and just produces a signal and be sent to portable terminal 22;
Described transducer is arranged near the strong place of user's ear pulse, such as the auricle back etc., can be pressure sensor or infrared ray sensor etc.;
Portable terminal 22, be used to be provided with the sleep pattern option, when selecting sleep pattern, the pulse rate that detects in time according to described sensor units, obtain user's real-time heart rate, and after determining that according to the changes in heart rate of user before and after sleeping the user enters sleep state, control the multimedia of self;
Further, described earphone 21 comprises: transducer 211, signal delivery module 212; Wherein,
Transducer 211 is used for whenever detecting a pulse and just produces a signal;
Signal delivery module 212 is used for that transducer 211 is detected the signal that produces behind the pulse and is sent to portable terminal 22.
Further, described portable terminal 22 comprises: sleep pattern module 221, heart rate acquisition module 222, judge module 223, transmit control module 224; Wherein,
Sleep pattern module 221 is used to provide the sleep pattern option, when selecting sleep pattern, and notice heart rate acquisition module 222 and judge module 223;
Heart rate acquisition module 222 is used for the pulse rate that detects in 211 unit interval according to described transducer, obtains user's real-time heart rate;
Concrete, described heart rate acquisition module 222 whenever detects the just once interruption of generation of a signal that transducer 211 sends, and counts processing in Interrupt Process, and promptly counter adds 1, the number of signals that statistical unit time inner sensor 211 transmits obtains user's real-time heart rate; The described unit interval can be 20 seconds, 30 seconds or 1 minute etc.; Wherein, the signal of described heart rate acquisition module 222 detecting sensors 211 transmissions can be the detection of carrying out the signal of transducer transmission by earphone keystroke testing circuit or special signal testing circuit;
Judge module 223 is used for determining that according to the changes in heart rate of user before and after sleeping the user enters sleep state, and notice transmit control module 224;
Concrete, the threshold value of the changes in heart rate before and after described judge module 223 is slept according to the user who is provided with, the user's that each heart rate acquisition module 222 is obtained real-time heart rate compares with the last real-time heart rate that obtains, greater than described threshold value the time, think that the user enters sleep state, notice transmit control module 224; The threshold value of the changes in heart rate of described user before and after sleeping for the user according to the real-time heart rate that heart rate acquisition module 222 before and after the own sleep obtains, the sleep threshold value of changes in heart rate of front and back of user is set;
Transmit control module 224 after being used to receive the notice of judge module 223, stops current multimedia;
This portable terminal 22 further comprises: threshold value is provided with module 225, is used for providing threshold value that option is set at the UI of portable terminal 22, when selecting threshold value to be provided with, provides threshold value that the interface is set, and is used to import the threshold value of the changes in heart rate of user before and after sleeping;
This portable terminal 22 further comprises: fitness mode module 226, display module 227; Wherein,
Fitness mode module 226 is used to provide the fitness mode option, when selecting fitness mode, and notice heart rate acquisition module 222 and display module 227;
Display module 227 is used for the real-time heart rate in 222 acquisitions of multimedia interface display heart rate acquisition module, makes the user obtain the physical condition of self when carrying out multimedia.
Based on above-mentioned system, the present invention also provides a kind of earphone 21, and as shown in Figure 2, this earphone comprises: transducer 211, signal delivery module 212; Wherein,
Transducer 211 is used for whenever detecting a pulse and just produces a signal;
Signal delivery module 212 is used for that transducer 211 is detected the signal that produces behind the pulse and is sent to portable terminal 22.
By method of the present invention, can be when the user enters sleep state accurately intelligence stop multimedia, play multimedia improves user's sleep quality to the injury of people's ear when reducing sleep, prolong the stand-by time of portable terminal, simultaneously can also to the user real-time health and fitness information is provided.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.