Multimedia playing system and method based on smart home
Technical Field
The invention belongs to the technical field of intelligent home furnishing, and particularly relates to a multimedia playing system and method based on the intelligent home furnishing.
Background
The intelligent home is a management system of home facilities and family schedule affairs, which is constructed by using a home as a platform and utilizing a comprehensive wiring technology, a network communication technology, a safety precaution technology, an automatic control technology and an audio and video technology, and can improve the home safety, convenience and comfortableness.
In intelligent house, the music that intelligence audio amplifier wanted to listen (like speech control) owing to start, close and the selection that can be convenient oneself, more and more users have increased this equipment at home. Before sleeping, many users can choose to use the smart sound box to play music to relax themselves, but some users forget to set the turn-off time of the smart sound box before sleeping, which not only wastes electric energy, but also the played music can wake the user in a shallow sleep period of the sleep cycle.
In order to solve the problem, patent publication No. CN107484068A discloses a household smart sound box and a control method thereof, which determine whether a user is in a sleep state by acquiring sound and light information in a current scene of the user, and further control an on-off state of the smart sound box connected to the user. However, the scheme of the application is not suitable for many users, firstly, some users have a phenomenon of snoring when sleeping, and the snoring sound is not small, and the application can judge the users as not sleeping, so that music is continuously played; secondly, to the user that needs music to help sleeping, the user leaves the room for a period of time (like going to the toilet and the time is longer), and this scheme can be acquiescently for the user has already gone into sleep and close the music, and the user back of returning needs to open intelligent audio amplifier again and selects the music that is fit for helping sleeping, influences user's efficiency of falling asleep.
Therefore, a multimedia playing system and method based on smart home are needed, which can improve the sleep efficiency of users without wasting electric energy.
Disclosure of Invention
The invention aims to provide a multimedia playing system based on smart home and a method thereof, which can improve the sleep-in efficiency of a user without wasting electric energy.
The basic scheme provided by the invention is as follows:
the multimedia playing system based on the smart home comprises a sound box end, a user end and a control end;
the control end is used for storing the sleep time; the user side is used for indoor positioning and sending the indoor positioning to the control side, and is also used for acquiring physical sign data of the user and sending the physical sign data to the control side; the control end is used for judging whether the user is in the bedroom when the sleeping time is up, and if so, controlling the sound box end to send out a sleep prompt and play the sleep-aiding music after a preset time length;
the volume gear of the sleep-aiding music is stored in the control terminal; the control end is also used for analyzing the physical sign data and the positioning of the user when the sound box end plays the sleep-aiding music, if the user does not leave the bedroom for the first time and the physical sign data is normal, the control end controls the volume of the sound box end to be reduced by one gear, and if the current volume is the lowest gear, the sound box end is controlled to be closed; the control end is also used for controlling the volume of the sound box end to be restored to the previous gear and timing again when the abnormal fluctuation of the physical sign data of the user occurs after the volume is reduced and the user does not leave the bedroom;
the control end is also used for playing the sleep-aiding music by the sound box end and controlling the sound box end to pause playing the music when the user leaves the bedroom, and is also used for analyzing the leaving time of the user when the user returns to the bedroom, if the leaving time is less than the second duration, the control end controls the volume of the sound box end to rise by one gear and then continues playing the music and retiming, and if the leaving time is more than or equal to the second duration, the control end controls the volume of the sound box end to recover the initial volume and then continues playing the music and retiming.
Basic scheme theory of operation and beneficial effect:
by using the system, after the user records the sleeping time (such as 11 o' clock at night) in the control terminal, when the sleeping time is up, the control terminal can judge whether the user is in a bedroom according to the positioning uploaded by the user terminal, if so, the control terminal controls the sound box terminal to send out the sleep prompt, and the user can adjust the self state to prepare for rest. After the preset time length, the control end plays the sleep-aiding music, such as the sleep-aiding white noise, to help the user to sleep.
When the music of helping sleep is played, if the user lasts for first duration and does not leave bedroom and sign data normal, it is good to explain the user's current state of sleeping of falling asleep, can close the white noise gradually, consequently, the volume of control end control stereo set end descends a shelves, if current volume is the lowest shelves then control the audio amplifier end and close, this kind of volume reduces the mode of closing again gradually, can let the user keep good state of falling asleep all the time. If the sign data of the user is abnormally fluctuated after the volume is reduced and the user does not leave the bedroom, the volume reduction of the white noise breaks the sleep-aiding effect, the user needs the white noise with relatively large volume to assist sleep, and therefore the control end controls the volume to be restored to the first gear and times again to meet the sleep-aiding requirement of the user.
If the user leaves the bedroom when playing the sleep-aiding music, the user is indicated to possibly go out to drink water or go to the toilet, and the control end controls the sound box end to pause playing the music to save electric energy due to the fact that specific time is not determined. When the user returns to the bedroom, the controller also analyzes the leaving time of the user, if the leaving time is less than the second duration, the user is only temporarily left, the body state of the user is still close to the sleeping state before leaving, but the user can be more awake before leaving due to walking back and forth, so that the control end controls the volume of the sound box end to be increased by one gear, then the music is continuously played and the time is re-timed, and the white noise is more suitable for the current sleeping aid requirement of the user. If the leaving time is longer than or equal to the second time length, the user leaves for a longer time, the person is awake, and the sleep-aiding period required for falling asleep again is longer, so that the control end controls the volume of the sound end to recover the initial volume, then the music is played again and the time is counted again, and the sleep-aiding requirement of the user is met.
By using the system, the control end can automatically adjust the sleep-aiding music according to the current real-time state of the user so as to ensure the sleep-aiding efficiency of the user.
In conclusion, the system can improve the sleep efficiency of the user while not wasting electric energy.
Further, the control end is also used for recording the abnormal fluctuation and the volume gear before the reduction when the physical sign data of the user has abnormal fluctuation after the volume reduction and the user does not leave the bedroom; and the control end is also used for carrying out abnormal fluctuation analysis, and if the abnormal fluctuation frequency of a certain volume gear in X days exceeds Y times, the control end increases the white noise playing time of the volume gear by Z minutes.
If the abnormal fluctuation times of a certain volume gear in X days exceed Y times, the volume gear is special for the user, and the normal volume reduction rule does not help other users to fall asleep as well, so that the controller increases the white noise playing time of the volume gear by Z minutes, and the sleeping effect of the user is ensured by increasing the special volume time.
Furthermore, the controller is also used for reducing the playing time of the white noise lower than the volume gear by one N when the playing time of the white noise of the certain volume gear is increased by Z minutes.
Because the users are special, the white noise below the special volume gear has smaller sleep-aiding effect and more auditory transition effect, and therefore, the playing time of the white noise below the volume gear is shortened by one N by the controller. The total playing time of the white noise can be reasonably shortened, the sound box end is closed in advance, and resources are reasonably utilized.
Further, the control end is also used for carrying out sleep quality analysis according to the physical sign data of the user.
The user can know the sleep condition conveniently.
The system further comprises a management terminal used for uploading and modifying the sleep time to the control terminal.
Some users can not rest on time every day due to work or life, and under the condition, the users can meet the sleep aiding requirements of the users by modifying the sleep time through the management terminal.
Further, the vital sign data includes heart rate and blood pressure.
Further, the user side is intelligent bracelet.
The invention also provides a multimedia playing method based on the smart home, and the multimedia playing system based on the smart home is used.
Drawings
Fig. 1 is a logic block diagram of a first embodiment of the invention.
Detailed Description
The following is further detailed by the specific embodiments:
example one
As shown in fig. 1, the multimedia playing system based on smart home includes a speaker end, a user end, a control end, and a management end. Wherein, the control end adopt current intelligent house integrated controller can, the user side is intelligent bracelet, and the audio amplifier end is intelligent audio amplifier, and the management end is for loading the smart mobile phone that corresponds the APP.
The management terminal is used for uploading and modifying the sleep time to the control terminal. The control end is used for storing the sleep time; the user side is used for indoor positioning and sending the indoor positioning to the control side. The user side carries out the mode of indoor location, and available indoor WIFI location or indoor bluetooth location are all prior art, and it is no longer repeated here. In this embodiment, the user side adopts indoor bluetooth positioning. The user side is also used for collecting the physical sign data of the user and sending the physical sign data to the control side. In particular, the vital sign data includes heart rate and blood pressure.
The control end is used for judging whether the user is in the bedroom when the sleeping time is up, and if so, the sound box end is controlled to send out a sleep prompt and play the sleep-aiding music after a preset time length. The control end stores a volume gear of the sleep-aiding music, the control end is also used for analyzing the physical sign data and positioning of the user when the sound box end plays the sleep-aiding music, if the user does not leave the bedroom for the first time and the physical sign data are normal, the control end controls the volume of the sound box end to be decreased by one gear, and if the current volume is the lowest gear, the sound box end is controlled to be closed; the control end is also used for controlling the volume of the sound box end to be restored to the previous gear and timing again when the abnormal fluctuation of the physical sign data of the user occurs after the volume is reduced and the user does not leave the bedroom;
the control end is also used for playing the sleep-aiding music by the sound box end and controlling the sound box end to pause playing the music when the user leaves the bedroom, and is also used for analyzing the leaving time of the user when the user returns to the bedroom, if the leaving time is less than the second duration, the control end controls the volume of the sound box end to rise by one gear and then continues playing the music and retiming, and if the leaving time is more than or equal to the second duration, the control end controls the volume of the sound box end to recover the initial volume and then continues playing the music and retiming.
The control end is also used for carrying out sleep quality analysis according to the physical sign data of the user.
The specific implementation process is as follows:
when the sleeping time (such as 11 o' clock in the evening) is reached, the control end can judge whether the user is in the bedroom or not according to the positioning uploaded by the user end, if so, the control end controls the sound box end to send out a sleep prompt, and the user can adjust the state of the user to prepare for rest. After the preset time length, the control end plays the sleep-aiding music, such as the sleep-aiding white noise, to help the user to sleep.
When the music of helping sleep is played, if the user lasts for first duration and does not leave bedroom and sign data normal, it is good to explain the user's current state of sleeping of falling asleep, can close the white noise gradually, consequently, the volume of control end control stereo set end descends a shelves, if current volume is the lowest shelves then control the audio amplifier end and close, this kind of volume reduces the mode of closing again gradually, can let the user keep good state of falling asleep all the time. If the sign data of the user is abnormally fluctuated after the volume is reduced and the user does not leave the bedroom, the volume reduction of the white noise breaks the sleep-aiding effect, the user needs the white noise with relatively large volume to assist sleep, and therefore the control end controls the volume to be restored to the first gear and times again to meet the sleep-aiding requirement of the user.
If the user leaves the bedroom when playing the sleep-aiding music, the user is indicated to possibly go out to drink water or go to the toilet, and the control end controls the sound box end to pause playing the music to save electric energy due to the fact that specific time is not determined. When the user returns to the bedroom, the controller also analyzes the leaving time of the user, if the leaving time is less than the second duration, the user is only temporarily left, the body state of the user is still close to the sleeping state before leaving, but the user can be more awake before leaving due to walking back and forth, so that the control end controls the volume of the sound box end to be increased by one gear, then the music is continuously played and the time is re-timed, and the white noise is more suitable for the current sleeping aid requirement of the user. If the leaving time is longer than or equal to the second time length, the user leaves for a longer time, the person is awake, and the sleep-aiding period required for falling asleep again is longer, so that the control end controls the volume of the sound end to recover the initial volume, then the music is played again and the time is counted again, and the sleep-aiding requirement of the user is met.
Because the control end can carry out sleep quality analysis according to the sign data of the user, the user can know the sleep condition of the user according to the sleep quality analysis.
The invention also provides a multimedia playing method based on the smart home, and the multimedia playing system based on the smart home is used.
Example two
Different from the first embodiment, in the present embodiment, the control end is further configured to record the abnormal fluctuation and the volume gear before the decrease when the sign data of the user has abnormal fluctuation after the decrease in volume and the user does not leave the bedroom; and the control end is also used for carrying out abnormal fluctuation analysis, and if the abnormal fluctuation frequency of a certain volume gear in X days exceeds Y times, the control end increases the white noise playing time of the volume gear by Z minutes. The controller is also used for reducing the playing time of the white noise lower than a certain volume gear by one N when the playing time of the white noise of the certain volume gear is increased by Z minutes. X, Y, Z and N, can be set by those skilled in the art according to the living area and the physical condition of the user.
If the abnormal fluctuation times of a certain volume gear in X days exceed Y times, the volume gear is special for the user, and the normal volume reduction rule does not help other users to fall asleep as well, so that the controller increases the white noise playing time of the volume gear by Z minutes, and the sleeping effect of the user is ensured by increasing the special volume time.
Meanwhile, because the users are special, the white noise lower than the special volume gear has smaller sleep-aiding effect, and more is auditory transition effect, therefore, the playing time of the white noise lower than the volume gear is reduced by one N by the controller. The total playing time of the white noise can be reasonably shortened, the sound box end is closed in advance, and resources are reasonably utilized.
The foregoing is merely an example of the present invention, and common general knowledge in the field of known specific structures and characteristics is not described herein in any greater extent than that known in the art at the filing date or prior to the priority date of the application, so that those skilled in the art can now appreciate that all of the above-described techniques in this field and have the ability to apply routine experimentation before this date can be combined with one or more of the present teachings to complete and implement the present invention, and that certain typical known structures or known methods do not pose any impediments to the implementation of the present invention by those skilled in the art. It should be noted that, for those skilled in the art, without departing from the structure of the present invention, several changes and modifications can be made, which should also be regarded as the protection scope of the present invention, and these will not affect the effect of the implementation of the present invention and the practicability of the patent. The scope of the claims of the present application shall be determined by the contents of the claims, and the description of the embodiments and the like in the specification shall be used to explain the contents of the claims.