Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Referring to Fig. 1, is the schematic flow sheet of the first embodiment of the control method of indoor equipment of the present invention, and the described method of the embodiment of the present invention can be applicable in the terminal device such as mobile phone, panel computer, concrete, and in embodiments of the present invention, described method comprises:
S101: when audio-video document broadcast event being detected, gathers heartbeat data.
When handset earphone slot plugged earphone being detected or the application program of audio and video playing file detected, subscriber terminal equipment gathers human heartbeat's data.Concrete, the palmic rate inductor collection user heartbeat data being arranged at the terminal devices such as mobile phone can be adopted.This palmic rate inductor can be integrated in handset earphone position, at plugged earphone and after collecting human heartbeat's data by the connection of earphone and mobile phone by this heartbeat data real-time Transmission to mobile phone, and analyze the situation of change of described heartbeat data.
S102: if the heartbeat data collected meets shut-off rule, controls to close the indoor equipment of specifying.
Described indoor equipment can comprise playing device, as mobile phone, panel computer etc.In the process analyzing described heartbeat data, if the heartbeat data collected meets shut-off rule, then can represent that active user is absorbed in sleep state, now mobile phone controls to cut out the song of current broadcasting or the video of viewing in playing device automatically.The palmic rate of Real-time Obtaining is comprised in described heartbeat data.
Under described shut-off rule, when analyzing when plugged earphone the heartbeat data collected, if detect, the palmic rate in this heartbeat data remains within the scope of default palmic rate in preset time range, then can determine that user is absorbed in sleep state, now mobile phone controls to cut out the song of current broadcasting or the video of viewing.Concrete, the time range preset can be fixedly installed or be arranged voluntarily by user, being ten minutes, when in ten minutes, the palmic rate of user remains within the scope of default palmic rate, can determining that user is absorbed in sleep state as being fixedly installed.This palmic rate scope preset can be that user pre-sets as the case may be, as 55 to 70 times per minute.
If the heartbeat data collected is for empty, namely when this palmic rate inductor does not collect any heartbeat data, can represent and not have plugged earphone or user correctly not to put on earphone, then call front-facing camera identification optical data, when this optical data does not change within a certain period of time, namely can represent that eyeball is not moved, can illustrate that user is absorbed in sleep state, now close the broadcasting of current audio-video document.Concrete, an analysis time can be preset, if the optical data recognized within the analysis time of presetting does not change, then close the video of the current song listened to or viewing.
Described indoor equipment can also comprise interior illuminator, as electric light etc.When user also falls asleep with mobile phone to play music or viewing video at night, the light that bedroom lighting device brings not only causes the waste of household electricity, and have impact on sleep quality to a certain extent.Therefore, detecting that user is absorbed in sleep state and after closing the broadcasting of current audio-video document, can arranges the power supply of automatic close chamber interior lighting device.In specific embodiment, can by presetting a light sensing time, such as at 8 in evening to morning five point, the closedown of automatic control room interior lighting device in the light sensing time range preset.When judge obtain current time preset the light sensing time in time, gather the intensity of light of interior illuminator, if the indoor light intensity detected is higher than the intensity threshold preset, can illustrate when front lighting device is in opening, now launching the wireless control signal for closing described lighting device to the switchgear of specifying, controlling described lighting device powered-down.Concrete, light sensor can be set in the terminal devices such as mobile phone and gather the intensity of light of interior illuminator, described default intensity threshold can arrange and fixed storage in light sensor.
Implement the embodiment of the present invention automatically to determine whether to close the indoor equipment of specifying based on the heartbeat data of the user collected, meet the robotization of closing indoor equipment, intelligent demand, and save the software and hardware process resource of equipment, save terminal energy consumption, and the sleep quality of user can be improved to a certain extent.
Referring to Fig. 2, is the schematic flow sheet of the second embodiment of the control method of indoor equipment of the present invention, and the described method of the embodiment of the present invention can be applicable in the terminal device such as mobile phone, panel computer, and in embodiments of the present invention concrete, described method comprises:
S201: when audio-video document broadcast event being detected, gathers heartbeat data.
When handset earphone slot plugged earphone being detected or the application program of audio and video playing file detected, subscriber terminal equipment gathers human heartbeat's data.Concrete, the palmic rate inductor collection user heartbeat data being arranged at the terminal devices such as mobile phone can be adopted.This palmic rate inductor can be integrated in handset earphone position, at plugged earphone and after collecting human heartbeat's data by the connection of earphone and mobile phone by this heartbeat data real-time Transmission to mobile phone, and analyze the situation of change of described heartbeat data.
S202: if the heartbeat data collected meets shut-off rule, controls the broadcasting of closing current audio-video document in playing device.
In the process analyzing described heartbeat data, if the heartbeat data collected meets shut-off rule, then represent that active user is absorbed in sleep state, now mobile phone controls to cut out playing device as the song of broadcasting current in the terminal devices such as mobile phone or the video of viewing automatically.The palmic rate of Real-time Obtaining is comprised in described heartbeat data.
S203: judge current time whether within the light sensing time of presetting.
When user is at night with mobile phone to play music or viewing video, usually open the power supply of bedroom lighting device, if now user falls asleep, the light that the lighting device that bedroom is opened brings not only causes the waste of household electricity, and have impact on sleep quality to a certain extent.Therefore, can when night, detecting that user is absorbed in sleep state and after closing the broadcasting of current audio-video document, arranges the automatic powered-down of lighting device.In specific embodiment, can by presetting a light sensing time, such as at 8 in evening to morning five point, in the light sensing time range preset, automatically control the closedown of household electrical source.Obtain current time if judge not within the light sensing time of presetting, the control to interior illuminator can not be carried out.
S204: the intensity of light gathering interior illuminator, in sensing chamber, whether light intensity is higher than the intensity threshold preset.
When judged result is yes, namely judge to obtain current time within the light sensing time of presetting time, gather the intensity of light of interior illuminator, concrete, the light sensor that the terminal devices such as mobile phone are set can be adopted to gather this intensity of light.Described light sensor is integrated in interior of mobile phone.Concrete judge whether lighting device is in opening can by drawing with the contrast of the intensity threshold pre-set, if the indoor light intensity detected is higher than the intensity threshold preset, then can represent that current lighting device is in opening.Described default intensity threshold can arrange and fixed storage in light sensor.If the indoor light intensity detected higher than the intensity threshold preset, then can not carry out the control to interior illuminator.
S205: when the intensity of light collected is higher than the intensity threshold preset, launches wireless control signal to the switchgear of specifying, control the power supply of close chamber's interior lighting device.
When the intensity of light collected is higher than the intensity threshold preset, can illustrates when front lighting device is in opening, now launch the wireless control signal for closing described lighting device to the switchgear of specifying, controlling described lighting device powered-down.Concrete, can in advance at interior of mobile phone integrated radio modules, and at the switchgear integrated wireless signal receiver of family's lighting device, the wireless module of described wireless signal receiver and mobile phone matches, when the intensity of light judging to gather is higher than the intensity threshold preset, the wireless module of mobile phone launches wireless control signal to the switchgear of domestic lighting device, the switchgear of described lighting device after receiving the wireless signal that mobile phone sends, automation controlled illuminating apparatus powered-down.
Implement the embodiment of the present invention and can automatically determine whether the broadcasting of closing current audio-video document based on the heartbeat data of the user collected, meet the robotization to the broadcasting of closing audio-video document, intelligent demand, and save the software and hardware process resource of terminal, save terminal energy consumption, the sleep quality of user can be improved to a certain extent.Further, the lighting device can opened in close chamber further after the broadcasting of cutting out current audio-video document, has better saved electricity consumption.
Further alternative, refer to Fig. 3 below, composition graphs 2, it is wherein a kind of method flow schematic diagram of closing the method for the broadcasting of current audio-video document based on heartbeat data of the present invention, concrete, the described method of the embodiment of the present invention may correspond to the S202 in the corresponding embodiment of above-mentioned Fig. 2, and described method comprises:
S301: the heartbeat data collected described in analysis.
When collecting heartbeat data, whether the heartbeat data collected described in analysis meets shut-off rule, if meet this shut-off rule, then closes the broadcasting of current audio-video document; Otherwise, represent that user is listening to music or viewing video, be not absorbed in sleep state, do not deal with.
S302: the palmic rate in heartbeat data remains on default palmic rate scope in preset time range if detect, then determine that the heartbeat data collected meets shut-off rule, close the broadcasting of current audio-video document.
Under described shut-off rule, when analyzing the heartbeat data collected, if detect, the palmic rate in this heartbeat data remains on default palmic rate scope in preset time range, then can determine that user is absorbed in sleep state, now playing device such as mobile phone controls to cut out the music of current broadcasting or the video of viewing.Concrete, the time range preset can be fixedly installed or be arranged voluntarily by user, being ten minutes, when in ten minutes, the palmic rate of user remains within the scope of default palmic rate, can determining that user is absorbed in sleep state as being fixedly installed.This palmic rate scope preset can be that user pre-sets as the case may be, as 55 to 70 times per minute.
Implement the embodiment of the present invention and can learn according to the heartbeat data obtained that user is absorbed in sleep state and closes the broadcasting of current audio-video document intelligently, save the software and hardware process resource of terminal, save terminal energy consumption, and the sleep quality of user can be improved to a certain extent.
Refer to Fig. 4 below, be the schematic flow sheet of the 3rd embodiment of the control method of indoor equipment of the present invention, comprise:
S401: if described in the heartbeat data that collects for empty, then call front-facing camera identification optical data.
When analyzing the heartbeat data collected, if the heartbeat data collected is for empty, when namely not collecting any heartbeat data, front-facing camera identification optical data can be called.
S402: when described optical data does not change within the analysis time of presetting, controls the broadcasting of closing current audio-video document.
At the heartbeat data collected for empty and when calling front-facing camera identification optical data, if this optical data does not change within analysis time, namely can represent that eyeball is not moved, can illustrate that user is absorbed in sleep state, now close the broadcasting of current audio-video document.Concrete, can preset an analysis time, default analysis time can be fixedly installed by mobile phone, such as 15 minutes.If the optical data recognized in 15 minutes does not change, then close the video of the current song listened to or viewing.
Implement the embodiment of the present invention and can judge whether user is absorbed in sleep state according to the optical data obtained, and the broadcasting of current audio-video document is closed intelligently when judgement user is absorbed in sleep state, save the software and hardware process resource of terminal, save terminal energy consumption, and improve the sleep quality of user to a certain extent.
Refer to Fig. 5, be the structure composition schematic diagram of the embodiment of a kind of control device of the present invention, the described device of the embodiment of the present invention can be arranged in the terminal device such as mobile phone, panel computer, and in embodiments of the present invention concrete, described device comprises:
Detection module 10, for when audio-video document broadcast event being detected, gathers heartbeat data.
When handset earphone slot plugged earphone being detected or the application program of audio and video playing file detected, detection module 10 gathers human heartbeat's data, and detection module 10 analyzes the situation of change of described heartbeat data.
Closing module 20, for when the heartbeat data that detection module 10 collects meets shut-off rule, controls to close the indoor equipment of specifying.
In the process analyzing described heartbeat data, if the heartbeat data collected meets shut-off rule, then can represent that active user is absorbed in sleep state, now closing module 20 controls to close the music of current broadcasting or the video of viewing.The palmic rate of Real-time Obtaining is comprised in described heartbeat data.
Identification module 30, for when described in the heartbeat data that collects for time empty, call front-facing camera identification optical data.
When the heartbeat data that the analysis of described detection module 10 collects, if the heartbeat data collected is for empty, when namely not collecting any heartbeat data, then identification module 30 controls to identify optical data.
Control module 40, for when described optical data does not change within the analysis time of presetting, closes the broadcasting of current audio-video document.
At the heartbeat data that detection module 10 collects for empty and when calling front-facing camera identification optical data, if this optical data does not change within analysis time, namely can represent that eyeball is not moved, can illustrate that user is absorbed in sleep state, now close the broadcasting of current audio-video document in playing device.Concrete, can preset an analysis time, default analysis time can be fixedly installed by mobile phone, such as 15 minutes.If the optical data recognized in 15 minutes does not change, then close the video of the current song listened to or viewing.
As the optional embodiment of one, described closing module 20 can specifically comprise:
FCU file control unit 21, during for meeting shut-off rule when the heartbeat data collected, controls the broadcasting of closing current audio-video document in playing device.
In the process analyzing described heartbeat data, if the heartbeat data collected meets shut-off rule, then represent that active user is absorbed in sleep state, now FCU file control unit 21 controls to close the song of current broadcasting or the video of viewing.
Time judging unit 22, for judging current time whether within the light sensing time of presetting.
When user is at night with mobile phone to play music or viewing video, usually open the power supply of bedroom lighting device, if now user falls asleep, the light that bedroom lighting device brings not only causes the waste of household electricity, and have impact on the sleep quality of user to a certain extent.Therefore, can when night, confirm that user is absorbed in sleep state and after closed the broadcasting of current audio-video document by closing module 20, arranges the automatic powered-down of lighting device at detection module 10.In specific embodiment, can by presetting a light sensing time, such as at 8 in evening to morning five point, in the light sensing time range preset, automatically control the closedown of household electrical source.
Power control unit 23, during for judging that when described time judging unit 22 current time is within the light sensing time of presetting, gather the intensity of light of interior illuminator, when the intensity of light collected is higher than the intensity threshold preset, control the power supply of closing described interior illuminator.
When described time judging unit 22 judges to show that current time is in Preset Time, and when the light light intensity detected is higher than the threshold value preset, power control unit 23 controls the power supply of close chamber's interior lighting device.Described default intensity threshold can arrange and fixed storage in power control unit 23.
Further alternative, Fig. 6 is wherein a kind of structure composition schematic diagram of the FCU file control unit 21 in Fig. 5 of the present invention, comprising:
Data analysis subelement 211, for the heartbeat data collected described in analyzing.
When described detection module 10 collects heartbeat data, data analysis subelement 211 analyze described in the heartbeat data that collects whether meet shut-off rule, if meet this shut-off rule, then close the broadcasting of the current audio-video document of playing device such as mobile phone; Otherwise, represent that user is listening to music or viewing video, do not deal with.
Closing of a file subelement 212, when palmic rate for detecting in described heartbeat data when detection module 10 remains on default palmic rate scope in preset time range, determine that the heartbeat data collected meets shut-off rule, close the broadcasting of current audio-video document.
Under described shut-off rule, when the heartbeat data that detection module 10 analysis collects, if detect, the palmic rate in this heartbeat data remains on default palmic rate scope in preset time range, then can determine that user is absorbed in sleep state, now closing of a file subelement 212 controls to close the song of current broadcasting or the video of viewing.Concrete, the time range preset can be fixedly installed or be arranged voluntarily by user, being ten minutes, when in ten minutes, the palmic rate of user remains within the scope of default palmic rate, can determining that user is absorbed in sleep state as being fixedly installed.This palmic rate scope preset can be that user pre-sets as the case may be, as 55 to 70 times per minute.
Further alternative, Fig. 7 is wherein a kind of structure composition schematic diagram of the power control unit 23 in Fig. 5, and in specific embodiment, described power control unit 23 specifically comprises:
Light detection sub-unit 231, for gathering the intensity of light of interior illuminator, in sensing chamber, whether light intensity is higher than the intensity threshold preset.
When time judging unit 22 judge obtain current time preset the light sensing time in time, light detection sub-unit 231 gathers the intensity of light of interior illuminator.Concrete judge whether lighting device is in opening can by drawing with the contrast of the intensity threshold pre-set, if the indoor light intensity detected is higher than the intensity threshold preset, then can represent that current lighting device is in opening.
Power-off subelement 232, for when the intensity of light collected is higher than the intensity threshold preset, launching the wireless control signal for closing described interior illuminator to the switchgear of specifying, controlling the power supply of closing described interior illuminator.
When light detection sub-unit 231 detects the intensity of light of collection higher than the intensity threshold preset, can illustrate when front lighting device is in opening, now power-off subelement 232 is to the wireless control signal of switchgear transmitting for closing described lighting device of specifying, and controls the power supply of closing described interior illuminator.Described switchgear of specifying comprises the switchgear of pulpit interior lighting device.Concrete, can in advance at interior of mobile phone integrated radio modules, and at the switchgear integrated wireless signal receiver of family's lighting device, the wireless module of described wireless signal receiver and mobile phone matches, when light detection sub-unit 231 detects the intensity of light of collection higher than the intensity threshold preset, the wireless module of mobile phone launches wireless control signal to the switchgear of domestic lighting device, the switchgear of described lighting device is after the wireless signal receiving mobile phone transmission, and power-off subelement 232 controls lighting device powered-down.
Implement the embodiment of the present invention and can automatically determine whether the broadcasting of closing current audio-video document based on the heartbeat data of the user collected, meet the robotization to the broadcasting of closing audio-video document, intelligent demand, and save the software and hardware process resource of terminal, save terminal energy consumption, the sleep quality of user can be improved to a certain extent.Further, the power supply of the lighting device can opened in further close chamber after the broadcasting of closing current audio-video document, further saves household electricity.
Step in all embodiment methods of the present invention can be carried out order according to actual needs and be adjusted, merges and delete.
Module in all embodiment device of the present invention or unit can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosed is present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.