Background
Along with the popularization of mobile terminals, mobile phones are no longer only single communication tools, multimedia applications become an indispensable part of mobile phones, people who listen to music with the mobile phones can be seen everywhere, in noisy and noisy environments, the music of the mobile phones is given to people at any time and any place, many mobile phone users who are poor in sleep quality and easily interfered by external noise can choose to use earphones to listen to music to help the users to sleep, but after the users sleep, the mobile phones cannot stop working, the music cannot stop playing, so that the standby time of the mobile phones is shortened, more importantly, the eardrums of the users can be damaged by listening to the music with the earphones for a long time, and for the users, if the music of the mobile phones can help the users to sleep, the harm to the ears can be reduced, and the music is a matter of two beauty.
A sensor is a physical device or biological organ that can detect, sense external signals, physical conditions (e.g., light, heat, humidity), or chemical compositions (e.g., smoke), and transmit the sensed information to other devices or organs, and can sense a predetermined device or apparatus that is measured and converted into a usable signal according to a certain rule, and generally consists of a sensing element and a converting element. The sensor converts the sensed information into electric signals or other information in required form according to a certain rule and outputs the electric signals or other information in required form so as to meet the requirements of information transmission, processing, storage, display, recording, control and the like, and is the primary link for realizing automatic detection and automatic control.
The patent with application number CN200710200453.9 discloses an audio device, which includes a playing device and an earphone. The headset includes a position sensor for sensing a change in position of the headset. The playing device comprises a position processing module, a control module and a power management module. The position processing module receives the sensing signal output by the position sensor and calculates the position variation of the earphone according to the sensing signal. The control module controls the power management module according to the position variation of the earphone to enable the power management module to stop supplying power to the audio equipment. The audio equipment senses the position change of the earphone through the position sensor, the position processing module calculates the position change of the earphone according to the sensing signal, and after the user enters the sleep state, the control module can automatically close the audio equipment according to the position change of the earphone, so that the automatic closing function of the audio equipment is more humanized. However, the method for automatically turning off the audio device by using the position sensor is not accurate enough because the audio device can be turned off only when the position of the earphone changes due to user activities.
The invention patent with publication number US5146501 discloses an earphone for adjusting the volume by detecting the movement of the dancer's head with a posture sensitive potentiometer, which is not capable of automatically turning off the audio device after the user enters a sleep state, nor reducing the damage to the ears caused by listening to music during the sleep of the user.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a method, a system and an earphone for intelligently controlling multimedia playing, which can intelligently stop multimedia playing when a user enters a sleep state, reduce the harm of the multimedia played by the earphone to the ears of the user during sleep, improve the sleep quality of the user, prolong the standby time of a mobile terminal, and provide real-time health information to the user.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a method for intelligently controlling multimedia playing, which is characterized in that a sleep mode option is set on a mobile terminal, and a sensor for detecting pulse is arranged on an earphone; the method further comprises the following steps:
the sensor generates a signal every time the sensor detects a pulse and transmits the signal to the mobile terminal;
when the sleep mode is selected, the mobile terminal obtains the real-time heart rate of the user according to the pulse frequency detected by the sensor in unit time, and controls multimedia playing after determining that the user enters the sleep state according to the heart rate change of the user.
In the above scheme, the mobile terminal obtains the real-time heart rate of the user according to the pulse frequency detected by the sensor in unit time, and the method comprises the following steps: the mobile terminal generates one interruption every time the mobile terminal detects one signal sent by the sensor, counting processing is carried out in the interruption processing, the number of the signals transmitted by the sensor in unit time is counted, and the real-time heart rate of the user is obtained.
In the above scheme, the unit time is 20 seconds, 30 seconds or 1 minute.
In the above scheme, the determining that the user enters the sleep state according to the heart rate variation of the user is: setting a threshold value of heart rate change of a user at the mobile terminal, comparing the real-time heart rate of the user obtained each time with the real-time heart rate obtained last time when the mobile terminal plays multimedia, and determining that the user enters a sleep state when the real-time heart rate is greater than the threshold value.
In the above scheme, the method further comprises: setting a threshold setting option at a User Interface (UI) of the mobile terminal;
upon selection of the threshold setting, a threshold setting interface is provided to input a threshold for the user's heart rate variability.
In the above scheme, the method further comprises: setting a health mode option on a UI of the mobile terminal;
and when the user selects the health mode, the mobile terminal obtains the real-time heart rate of the user according to the pulse frequency detected by the sensor in unit time.
In the above scheme, the method further comprises: and under the condition that the user selects the health mode, displaying the heart rate of the user in real time on the multimedia playing interface.
The invention provides a system for intelligently controlling multimedia playing, which comprises: earphones and mobile terminals; wherein,
the earphone is provided with a sensor for detecting pulse, and the sensor generates a signal every time the sensor detects pulse and transmits the signal to the mobile terminal;
and the mobile terminal is used for setting a sleep mode option, acquiring the real-time heart rate of the user according to the pulse frequency detected by the sensor in unit time when the sleep mode is selected, determining that the user enters a sleep state according to the heart rate change of the user, and controlling multimedia playing.
In the above scheme, the earphone further comprises a signal transmission module for transmitting a signal generated after the sensor detects the pulse to the mobile terminal.
In the above solution, the mobile terminal includes: the device comprises a sleep mode module, a heart rate acquisition module, a judgment module and a play control module; wherein,
the sleep mode module is used for providing sleep mode options and informing the heart rate acquisition module and the judgment module when the sleep mode is selected;
the heart rate acquisition module is used for acquiring the real-time heart rate of the user according to the pulse frequency detected by the sensor in unit time;
the judging module is used for determining that the user enters a sleep state according to the heart rate change of the user and informing the playing control module;
and the playing control module is used for stopping the current multimedia playing after receiving the notification of the judging module.
In the above scheme, the determining module is specifically configured to compare the real-time heart rate of the user obtained by the heart rate obtaining module each time with the real-time heart rate obtained last time according to a set threshold value of heart rate variation of the user, and when the real-time heart rate is greater than the threshold value, the user is considered to enter a sleep state, and the playing control module is notified.
In the foregoing solution, the mobile terminal further includes: and the threshold setting module is used for providing a threshold setting option on a UI (user interface) of the mobile terminal, providing a threshold setting interface when the threshold setting is selected, and inputting the threshold of the heart rate change of the user.
In the foregoing solution, the mobile terminal further includes: a health mode module and a display module; wherein,
the health mode module is used for providing health mode options and informing the heart rate acquisition module and the display module when the health mode is selected;
and the display module is used for displaying the real-time heart rate obtained by the heart rate obtaining module on the multimedia playing interface.
The invention provides a headset, comprising: a sensor and a signal transmission module; wherein,
a sensor for generating a signal every time a pulse is detected;
and the signal transmission module is used for transmitting the signal generated after the sensor detects the pulse to the mobile terminal.
The invention provides a method, a system and an earphone for intelligently controlling multimedia playing.A sensor for detecting pulse is arranged on the earphone, and the sensor generates a signal and transmits the signal to a mobile terminal every time the sensor detects the pulse; setting a sleep mode option at the mobile terminal, when the sleep mode is selected, the mobile terminal obtains the real-time heart rate of the user according to the pulse frequency detected by the sensor in unit time, and controls the multimedia playing of the mobile terminal after determining that the user enters the sleep state according to the heart rate change of the user before and after sleeping; so, can stop multimedia playing when the user gets into the sleep state accurate intelligence, earphone broadcast multimedia is to the injury of people's ear when reducing the sleep, improves user's sleep quality, prolongs mobile terminal's standby time, can also provide healthy information to the user real-time simultaneously.
Detailed Description
The basic idea of the invention is: a sensor for detecting pulse is arranged on the earphone, and the sensor generates a signal every time the sensor detects pulse and transmits the signal to the mobile terminal; setting a sleep mode option at the mobile terminal, when the sleep mode is selected, the mobile terminal obtains the real-time heart rate of the user according to the pulse frequency detected by the sensor in unit time, and controls the multimedia playing of the mobile terminal after determining that the user enters the sleep state according to the heart rate change of the user before and after sleeping;
the mobile terminal comprises a mobile phone, an MP4, a notebook computer and the like; the multimedia play comprises audio and/or video play.
The invention is further described in detail below with reference to the figures and the specific embodiments.
As shown in fig. 1, the method for intelligently controlling multimedia playing provided by the present invention includes the following steps:
step 101: a sensor for detecting pulse is arranged on the earphone, and the sensor generates a signal every time the sensor detects pulse and transmits the signal to the mobile terminal;
specifically, a sensor for detecting the pulse is arranged in the earphone to measure the pulse of the ear part of the user, and the pulse of the ear part is generally slight, so that the sensor can more accurately obtain pulse information, the sensor can be arranged at a place close to the ear of the user, such as behind the auricle and the like, and in addition, a fixing device can be added to ensure that the sensor can be always in contact with the pulse of the ear part; when the sensor works, a signal is generated every time the sensor detects pulse, and the signal is transmitted to the mobile terminal; the signal is transmitted to the mobile terminal, generally through a signal line.
Step 102: setting a sleep mode option at the mobile terminal, and when the sleep mode is selected, the mobile terminal obtains the real-time heart rate of the user according to the pulse frequency detected by the sensor in unit time;
specifically, a sleep mode option is set in a UI of the mobile terminal, when a user selects a sleep mode, the mobile terminal generates an interrupt every time the mobile terminal detects a signal sent by the sensor, counting is performed in the interrupt processing, namely a counter is increased by 1, the number of signals transmitted by the sensor in unit time is counted to obtain the real-time heart rate of the user, and the counting is performed again every time the counting is performed, namely the counter returns to zero; the unit time may be 20 seconds, 30 seconds, 1 minute, or the like;
the method further comprises the following steps: setting a health mode option on a UI of the mobile terminal, and when the user selects the health mode, obtaining the real-time heart rate of the user by the mobile terminal according to the pulse frequency detected by the sensor in unit time;
in the above, the signal sent by the sensor detected by the mobile terminal may be detected by an earphone key detection circuit or a dedicated signal detection circuit, where the dedicated signal detection circuit is a detection circuit specially configured for the signal sent by the sensor, and this circuit for detecting the signal belongs to the prior art and is not described herein again; when the earphone key detection circuit detects a signal sent by the sensor, whether the current mode is a sleep mode or a health mode can be judged, and when the current mode is the sleep mode or the health mode, the normal earphone key interruption processing is switched to the counting processing; when the earphone is not in the sleep mode or the health mode, the interrupt processing generated by the key detection circuit is switched back to the normal earphone key interrupt processing;
step 103: under the condition of selecting the sleep mode, the mobile terminal controls the multimedia playing of the mobile terminal after determining that the user enters the sleep state according to the heart rate change of the user before and after sleeping;
specifically, a user sets a threshold value of heart rate change before and after the user sleeps at the mobile terminal according to a real-time heart rate obtained by moving the terminal back and forth after sleeping, when the mobile terminal plays multimedia, the real-time heart rate of the user obtained each time is compared with the real-time heart rate obtained last time, when the real-time heart rate is larger than the threshold value, the user is considered to enter a sleeping state, and the current multimedia playing is stopped;
the user sets a threshold value of heart rate change of the user before and after sleeping according to the real-time heart rate obtained by moving the terminal back and forth after sleeping by the user, and the threshold value is generally as follows: the mobile terminal records the real-time heart rate obtained by the user each time before and after sleeping, and the user determines the threshold value of the heart rate change before and after sleeping by searching the real-time heart rate recorded by the mobile terminal;
the method further comprises the following steps: setting a threshold setting option on a UI of the mobile terminal, and providing a threshold setting interface for inputting a threshold of heart rate change of a user before and after sleeping when the user selects threshold setting;
the method further comprises the following steps: and under the condition that the user selects the health mode, displaying the real-time heart rate of the user on a multimedia playing interface, so that the user can obtain the self body health condition while playing the multimedia.
In order to implement the above method, the present invention further provides a system for intelligently controlling multimedia playing, as shown in fig. 2, the system includes: an earphone 21, a mobile terminal 22; wherein,
an earphone 21 for setting a sensor for detecting a pulse, the sensor generating a signal every time the pulse is detected and transmitting the signal to the mobile terminal 22;
the sensor is arranged close to a place where the ear pulse of the user is strong, such as behind the auricle and the like, and can be a pressure sensor or an infrared sensor and the like;
the mobile terminal 22 is used for setting a sleep mode option, acquiring the real-time heart rate of the user according to the pulse frequency detected by the sensor in unit time when the sleep mode is selected, determining that the user enters a sleep state according to the heart rate change of the user before and after sleeping, and controlling the multimedia playing of the user;
further, the earphone 21 includes: a sensor 211, a signal transmission module 212; wherein,
a sensor 211 for generating a signal each time a pulse is detected;
and a signal transmission module 212 for transmitting the signal generated after the sensor 211 detects the pulse to the mobile terminal 22.
Further, the mobile terminal 22 includes: a sleep mode module 221, a heart rate acquisition module 222, a judgment module 223, and a play control module 224; wherein,
a sleep mode module 221, configured to provide a sleep mode option, and notify the heart rate obtaining module 222 and the determining module 223 when the sleep mode is selected;
a heart rate obtaining module 222, configured to obtain a real-time heart rate of the user according to the pulse frequency detected by the sensor 211 in unit time;
specifically, the heart rate obtaining module 222 generates an interrupt every time it detects a signal sent by the sensor 211, and performs counting processing in the interrupt processing, that is, adding 1 to a counter, and counting the number of signals transmitted by the sensor 211 in unit time to obtain the real-time heart rate of the user; the unit time may be 20 seconds, 30 seconds, 1 minute, or the like; the heart rate obtaining module 222 detects the signal sent by the sensor 211, and the signal sent by the sensor may be detected by an earphone key detection circuit or a dedicated signal detection circuit;
the judging module 223 is configured to determine that the user enters a sleep state according to the change of the heart rate of the user before and after sleeping, and notify the playing control module 224;
specifically, the determining module 223 compares the real-time heart rate of the user obtained by the heart rate obtaining module 222 each time with the last obtained real-time heart rate according to a set threshold of the heart rate change before and after the user sleeps, and when the real-time heart rate is greater than the threshold, the user is considered to enter a sleep state, and the playing control module 224 is notified; the threshold value of the heart rate change of the user before and after sleeping is the real-time heart rate obtained by the heart rate obtaining module 222 before and after sleeping of the user, and the threshold value of the heart rate change of the user before and after sleeping is set;
a playing control module 224, configured to stop the current multimedia playing after receiving the notification from the determining module 223;
the mobile terminal 22 further includes: a threshold setting module 225, configured to provide a threshold setting option on the UI of the mobile terminal 22, and when the threshold setting is selected, provide a threshold setting interface, configured to input a threshold of a heart rate change before and after a user sleeps;
the mobile terminal 22 further includes: a health mode module 226, a display module 227; wherein,
a health mode module 226 for providing a health mode option, notifying the heart rate acquisition module 222 and the display module 227 when the health mode is selected;
the display module 227 is configured to display the real-time heart rate obtained by the heart rate obtaining module 222 on a multimedia playing interface, so that the user obtains the physical health condition of the user while playing the multimedia.
Based on the above system, the present invention further provides an earphone 21, as shown in fig. 2, including: a sensor 211, a signal transmission module 212; wherein,
a sensor 211 for generating a signal each time a pulse is detected;
and a signal transmission module 212 for transmitting the signal generated after the sensor 211 detects the pulse to the mobile terminal 22.
By the method, the multimedia playing can be accurately and intelligently stopped when the user enters the sleep state, the harm of the played multimedia to the ears of the user during the sleep is reduced, the sleep quality of the user is improved, the standby time of the mobile terminal is prolonged, and meanwhile, the health information can be provided for the user in real time.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.