Smart home sleep scene execution method and device

Through the central device, IoT devices are controlled to adjust the operating status according to the user's rest time and sleep state, providing a personalized sleep aid environment, solving the problem of how to provide users with a better sleep environment and improving user experience.

CN119511742APending Publication Date: 2025-02-25HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311084813.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-25
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

How to provide users with a better sleep environment and schedule multiple IoT devices to realize an automated sleep aid solution for smart bedroom space.

Method used

The central device determines the user's rest time, enters the sleep area and enters the sleep state, and controls the IoT device to execute corresponding instructions according to the preset sleep assistance policy, and adjusts the device's operating status to provide a sleep aid environment.

Benefits of technology

It realizes that different sleep assistive services are provided to users according to their different statuses, improves user experience, and reduces users' dependence on sleep aid environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119511742A_ABST
    Figure CN119511742A_ABST
Patent Text Reader

Abstract

The invention provides a smart home sleep scene execution method and device. In the method, a central device determines that the current time reaches the rest time of a first user, and controls at least one first device to execute a corresponding instruction; the central device determines that the first user enters the first area, at least one second device is controlled to execute a corresponding instruction according to a preset sleep assistance strategy, and the sleep assistance strategy comprises instructions corresponding to the at least one second device; and the central device determines that the first user enters the sleep state, and controls the at least one second device to adjust the operation state to the corresponding preset state. According to the scheme, the central device can control the device to provide different sleep assisting services for the user according to different states of the user, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method and device for executing a smart home sleep scene. Background Art

[0002] As a basic application of the Internet of Things (IoT) technology, smart home has been widely promoted in scenarios such as life and entertainment, study and office, and various types of IoT devices have also been widely used.

[0003] With the development of whole-house intelligence, there may be multiple IoT devices in the space where users are located. Different IoT devices can provide different services to users. For example, IoT devices can include smart air conditioners, electric curtains, smart TVs, smart lamps, etc. IoT devices can establish connections with central devices and accept control from central devices. Central devices can control multiple IoT devices separately to change the operating status of IoT devices.

[0004] Sleep is an important part of every user's life. How to schedule multiple IoT devices to provide users with a better sleeping environment has become an urgent problem to be solved in the intelligentization of bedroom space. Summary of the invention

[0005] The present application provides a smart home sleep scene execution method and device to provide users with a flexible smart home sleep aid solution.

[0006] In the first aspect, the present application provides a method for executing a smart home sleep scene, which can be executed by a hub device. In this method, the hub device determines that the current time has reached the rest time of the first user, and controls at least one first device to execute a corresponding instruction; the hub device determines that the first user enters the first area, and controls at least one second device to execute a corresponding instruction according to a preset sleep assistance strategy, and the sleep assistance strategy includes instructions corresponding to the at least one second device; the hub device determines that the first user enters a sleep state, and controls the at least one second device to adjust the operating state to a corresponding preset state.

[0007] In the above method, the central device can determine that it is time for the first user to rest, and control at least one first device to execute corresponding instructions to remind the user to rest. When the central device determines that the first user has entered the first area, it can control at least one second device to provide the user with a sleep aid function according to the sleep aid strategy, and after the central device determines that the first user has entered a sleep state, it can control at least one second device to adjust to a corresponding preset state, thereby creating a natural environment for the user and preventing the user from becoming dependent on the sleep aid environment. Through this solution, the central device can provide users with different sleep aid services, such as sleep reminders or sleep aid services, according to the different states of the user, to enhance the user experience.

[0008] In one possible design, the at least one first device includes a device used by the first user during the rest time, and / or a device that is within a preset range of the first user during the rest time.

[0009] Through this design, the central device can remind the first user to take a break through the device used by the first user during the break time, and / or the device near the first user, so that the break reminder can be conveyed to the first user in time.

[0010] In one possible design, the controlling of at least one first device to execute corresponding instructions includes: sending rest reminder information to the at least one first device so that the at least one first device displays the rest reminder information; and / or sending a first control command to the at least one first device so that the at least one first device adjusts the operating state to the corresponding state, and the adjusted state of the at least one first device is an operating state for reminding the user to sleep.

[0011] Through this design, the central device can send rest reminder information to the first device to control the first device to display the rest reminder information, thereby reminding the user to rest; or the central device can send a first control command to the first device to adjust the first device to an operating state for reminding the user to sleep, thereby flexibly realizing the sleep reminder function in the smart home scenario.

[0012] In one possible design, controlling at least one second device to execute corresponding instructions according to a preset sleep assistance strategy includes: sending a second control command to the at least one second device so that the at least one second device adjusts its operating state to a corresponding state, and the adjusted state of the at least one second device is an operating state for providing sleep assistance to the user.

[0013] Through this design, the central device can send a second control command to the second device to adjust the second device to an operating state for providing sleep assistance to the user, provide a sleep-aiding environment for the user, assist the user to fall asleep, and improve the user experience.

[0014] In one possible design, controlling at least one second device to execute corresponding instructions according to a preset sleep assistance strategy includes: obtaining the sleeping state of the first user based on a preset period, determining the sleep assistance strategy corresponding to the sleeping state of the first user from multiple preset sleep assistance strategies according to the sleeping state of the first user, and controlling the at least one second device to execute corresponding instructions according to the sleep assistance strategy corresponding to the sleeping state of the first user.

[0015] Through this design, multiple sleep assistance strategies can be stored in the central device, and the central device can determine the sleep assistance strategy corresponding to the first user's sleeping state from multiple sleep assistance strategies based on the first user's sleeping state obtained in real time. The sleep assistance strategy determined in this way is more suitable for the first user, so that the central device can control the second device to provide the first user with a suitable sleep assistance function according to the determined sleep assistance strategy.

[0016] In one possible design, the sleeping state of the first user includes the time required for the first user to fall asleep; the longer the time required for the first user to fall asleep, the greater the number of the at least one second device in the sleep assistance strategy corresponding to the sleeping state of the first user, and / or the stronger the sleep assistance function of the instruction corresponding to the at least one second device in the sleep assistance strategy corresponding to the sleeping state of the first user.

[0017] Through this design, in the sleep assistance strategy provided by the present application, the longer the time required for the user to fall asleep, the greater the number of second devices in the sleep assistance strategy or the stronger the sleep assistance function of the instructions corresponding to the second devices, thereby providing users with sleep assistance functions of different programs according to their different sleeping states, and rationally utilizing various devices in the smart home scenario.

[0018] In one possible design, determining that the first user enters a sleep state and controlling the at least one second device to adjust the operating state to a corresponding preset state include: determining that the first user enters a sleep state and obtaining sleep quality information of the first user; when determining that the sleep quality of the first user is greater than a preset threshold based on the sleep quality information of the first user, controlling the at least one second device to adjust the operating state to the corresponding preset state.

[0019] Through this design, the central device can obtain the sleep quality information of the first user. When the sleep quality of the first user is greater than a preset threshold, it indicates that the first user has entered a relatively stable sleep state. At this time, the central device can control at least one second device to adjust to a corresponding preset state. The preset state of the second device can create an environment similar to the natural environment for the user, or the preset state can create a sleep environment that the user is accustomed to, thereby reducing the user's dependence on the sleep-aiding environment, which is conducive to the user to cultivate good sleep habits and improve the user experience.

[0020] In one possible design, after controlling the at least one second device to adjust the operating state to a corresponding preset state, the method further includes: when it is determined according to the sleep quality information of the first user that the sleep quality of the first user is reduced, controlling the at least one second device to execute corresponding instructions according to the preset sleep assistance strategy.

[0021] Through this design, the central device can continue to detect the user's sleep quality after adjusting at least one second device to a corresponding preset state. If it is determined based on the user's sleep quality information that the user's sleep quality has deteriorated, such as the user entering conscious light sleep from absolute deep sleep, the central device can again control at least one second device to change its operating state based on a preset sleep assistance strategy to continue to provide a sleep-aiding environment for the user.

[0022] In a second aspect, the present application further provides a device, the device comprising a plurality of functional modules; the plurality of functional modules interact with each other to implement the method performed by the hub device in the first aspect and its respective embodiments. The plurality of functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules can be arbitrarily combined or divided based on specific implementation.

[0023] In a third aspect, the present application also provides a device comprising at least one processor and at least one memory, wherein the at least one memory stores a program, and when the device is running, the at least one processor executes the method executed by the central device in the above-mentioned first aspect and its various embodiments.

[0024] In a fourth aspect, the present application further provides a readable storage medium, in which a program is stored. When the program is executed by a device, the device executes the method executed by the central device in any of the above aspects and its various embodiments.

[0025] In a fifth aspect, the present application also provides a chip, which is used to read the program stored in the memory and execute the method executed by the central device in any of the above aspects and its various embodiments.

[0026] In a sixth aspect, the present application also provides a chip system, which includes a processor for supporting a device to implement a method executed by a central device in any of the above aspects and its various embodiments. In one possible design, the chip system also includes a memory, which is used to store programs and data necessary for the device. The chip system can be composed of chips, or it can include chips and other discrete devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic diagram of a smart home scenario provided in an embodiment of the present application;

[0028] Figure 2 An architecture diagram of a smart home system provided in an embodiment of the present application;

[0029] Figure 3 A flowchart of a smart home sleep scene execution method provided in an embodiment of the present application;

[0030] Figure 4 A flowchart of a smart home sleep scene execution method provided in an embodiment of the present application;

[0031] Figure 5 A possible structural example diagram of a device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings. Among them, in the description of the embodiments of the present application, the terms "first" and "second" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0033] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.

[0034] The Internet of Things (IoT), which can be understood as "the Internet of Everything Connected", is a network extended and expanded on the basis of the Internet. It is a huge network formed by combining various information sensing devices with the network. It can realize the interconnection of people, machines and things at any time and any place.

[0035] Smart home is the basic application of the Internet of Things in the home. With the popularization of broadband services, smart products involve all aspects of users' lives. Figure 1 A schematic diagram of a smart home scenario provided in an embodiment of the present application. Figure 1 ,The scenario includes a gateway device, a hub device and at least one IoT device, such as Figure 1 The IoT devices shown in the figure can be smart curtains, smart lamps, aromatherapy machines, smart speakers, etc. The hub device and at least one IoT device can be connected to the gateway device to establish a network connection, and the hub device can be used to control at least one IoT device. In some embodiments, the gateway device can also serve as a hub device. In this embodiment, at least one IoT device can be connected to the gateway device and be controlled by the gateway device.

[0036] The gateway device may be a device with routing functions, such as a router or customer premise equipment (CPE). The hub device may integrate home business services to control at least one IoT device in the smart home scenario. The hub device may be a device that is permanently powered and resides in the home, such as a smart speaker, smart TV, smart routing device, set-top box, etc. IoT devices are electronic devices that can access the Internet. For example, IoT devices in a smart home scenario may include smartphones, smart TVs, smart air conditioners, etc.

[0037] exist Figure 1 In the smart home scene shown, the central device can store the setting parameters of multiple IoT devices corresponding to the sleep scene. The smart home system can include a sleep detection device. When the sleep detection device detects that the user is about to fall asleep, the central device can send control commands to each IoT device according to the setting parameters of multiple IoT devices corresponding to the stored sleep scene. For example, the central device can control the opening of smart curtains to cover windows, and the central device can also control the closing of smart lamps, thereby creating a more comfortable sleeping environment for users. However, this method can only adjust the operating status of multiple IoT devices when it detects that the user is about to fall asleep, and cannot adjust in real time according to the user's status, resulting in a poor user experience.

[0038] Based on the above problems, the present application provides a method for executing a smart home sleep scene. Figure 2This is an architecture diagram of a smart home system provided in an embodiment of the present application. Figure 2 In the embodiment of the present application, the smart home system may include a central device and multiple subsystems, wherein each subsystem includes at least one IoT device with different functions. In the embodiment of the present application, the smart home system including a cooling and heating fresh air subsystem, an audio-visual entertainment subsystem, a lighting subsystem, a sleep subsystem, an odor subsystem and a sunshade subsystem is introduced as an example. Figure 2 It is shown that the smart home system can include a cooling and heating subsystem, an audio-visual entertainment subsystem, a lighting subsystem, a sleep subsystem, a scent subsystem, and a sunshade subsystem. The cooling and heating subsystem can include, for example, a smart air conditioner, an air purifier, etc., the audio-visual entertainment subsystem can include, for example, a smart TV, a smart speaker, etc., the lighting subsystem can include multiple smart lamps, the sleep subsystem can include a smart mattress, a smart headrest, etc., the scent subsystem can include an aromatherapy machine, etc., and the sunshade subsystem can include smart curtains, etc. It should be noted that Figure 2 The smart home system shown is only an example and not a limitation. In practice, the smart home system may include more or fewer subsystems or devices. In addition, the subsystems in the smart home system may include devices or functional modules in the devices, which is not limited in the embodiments of the present application. For example, when the air purifier has an aromatherapy function, the cooling and heating fresh air subsystem may include the air purification function module of the air purifier, and the odor subsystem may include the aromatherapy function module of the air purifier.

[0039] refer to Figure 2 , the central device may include an account management module, an information push module, and a device control module; wherein the account management module is used to store user information, and the account management module may store information of different users respectively. For example, in the embodiment of the present application, the IoT device may obtain user habit information, such as the user's work and rest time; the IoT device may send the obtained user habit information to the central device, and the account management module of the central device may store the user habit information of each user. The information push module may be used to push information to the IoT device so that the IoT device can remind the user. For example, when the IoT device has a display screen, the IoT device may display a reminder message on the display screen after receiving the information pushed by the information push module; for another example, when the IoT device is a screenless device, the IoT device may remind the user by playing sound, controlling lighting, moving, etc. after receiving the information pushed by the information push module. The device control module is used to control the IoT devices in the smart home system. For example, the device control module may send control commands to the IoT device, and the IoT device may adjust the operating status according to the control commands.

[0040] The central device provided in the embodiment of the present application may also include a sleep assistance system, which includes a rest reminder module, a sleep detection module and a sleep assistance module. Among them, the sleep detection module can be used to detect the user's sleep state, and the user's sleep state may include, for example, preparing to sleep, starting to fall asleep, and entering sleep; the sleep detection module can obtain data from indoor radars, smart headrests, smart wearable devices and other devices to detect the user's physical signs, thereby analyzing the user's sleep state. The rest reminder module can be used to push rest reminder information to the IoT device used by the user or the IoT device around the user when it is determined that the user is in a state of preparing to sleep. The IoT device used by the user or the IoT device around the user can remind the user to rest after receiving the rest reminder information. The sleep assistance module can drive the device control module to control each subsystem to adjust the device operation state according to the analysis results of the user's sleep state obtained by the sleep detection module and the preset sleep assistance strategy, thereby providing different smart home services to the user when the user is in different sleep states.

[0041] The following is a further introduction to the smart home sleep scene execution method provided in the embodiment of the present application.

[0042] In the smart home sleep scene execution method provided in the embodiment of the present application, the central device can obtain the user's sleep state, and control the IoT device to execute instructions according to the user's sleep state and the preset sleep assistance strategy, so as to flexibly provide the user with sleep scenes in different sleep states. In the specific implementation, indoor radar, smart headrest, smart camera, smart wearable device, etc. can obtain the user's vital signs information, and send the obtained user's vital signs information to the central device. The central device can determine the user's sleep state according to the user's vital signs information. For example, in the embodiment of the present application, the user's sleep state may include the state of preparing to sleep, the state of starting to fall asleep, and the state of entering sleep. When the user is in different sleep states, the central device can provide the user with different sleep scene services, such as the central device can control the IoT device to remind the user to rest when the user is in the state of preparing to sleep; when the user is in the state of preparing to fall asleep, the central device can control the IoT device to create a sleep-aiding environment for the user; and when the user is in the state of entering sleep, the central device can control the IoT device to adjust back to the preset state according to the user's sleep quality information, such as the IoT device can create a natural environment for the user after adjusting to the preset state.

[0043] The following is an introduction to the smart home sleep scene execution method provided by the embodiment of the present application from the three sleep states of the user:

[0044] 1. The user is ready to sleep.

[0045] In an embodiment of the present application, the central device can analyze the user's work and rest habits based on the stored user habit information to determine the user's work and rest time, or the user can set the work and rest time on any device used by the user, and the device can send the work and rest time set by the user to the central device. When the central device determines that the current time has reached the user's rest time, it can be determined that the user is in a state of preparing to sleep, and the central device can control at least one first device to execute corresponding instructions, thereby controlling at least one first device to remind the user to rest. Among them, the first device can be a device used by the first user during the rest time, and / or a device within the preset range of the first user during the rest time.

[0046] It should be noted that, in the embodiment of the present application, at least one first device may correspond to different instructions respectively, and the central device may control any first device to execute the instruction corresponding to the first device; or when the device types of multiple first devices are the same, the instructions corresponding to the multiple first devices may be the same. For example, if the lamps in the bedroom, the living room, and the dining room are all lighting devices, then the instructions corresponding to the lamps in the bedroom, the living room, and the dining room may be the same. If they all correspond to the off instruction, the central device can control the lamps in the bedroom, the living room, and the dining room to turn off respectively.

[0047] In the embodiment of the present application, the instruction corresponding to the first device may be to display rest reminder information or adjust the device state to an operating state for reminding the user to sleep. Optionally, the central device may send rest reminder information to the first device, and the first device may display the rest reminder information; or the central device may send a first control command to the first device, and after the first device receives the first control command, it may adjust the device state to an operating state for reminding the user to sleep. For example, the central device may push rest reminder information to the IoT device that the user is using or the IoT device near the user, the central device may also control the smart lamp to turn on the sleep light, and the central device may control the smart speaker to play sleep-aiding music. Optionally, in the embodiment of the present application, the user may also set a sleep reminder method, such as adjusting lighting, turning off audio and video entertainment equipment, limiting the network speed of the device used by the user, recommending content that the user may not be interested in during sleep time, and applications that cannot be run during user-defined sleep time.

[0048] Optionally, refer to Figure 2In the smart home system shown, the hub device may include an account management module, which may store the work and rest time of multiple users, such as the work and rest time of multiple family members. The hub device may distinguish different users based on indoor radar and other devices, and when determining that the first user among multiple users is currently in a state of preparing to sleep, it may determine the device currently being used by the first user, or determine the device near the first user, and remind the user to rest through the device currently being used by the first user or the device near the first user.

[0049] In an embodiment of the present application, the hub device can store the attribute information of each IoT device. If the IoT device can be bound to a user, the hub device can store the corresponding relationship between the IoT device and the user. For example, an IoT device bound to a single user can be called a private device, such as a user's smartphone is a private device of the user; an IoT device bound to multiple users can be called a shared device of the multiple users; an IoT device not bound to any user can be called a public device, such as a smart TV in the living room is a public device. If the IoT device is a device with a fixed position, the hub device can also store the location information of the IoT device. If the IoT device is a device with a variable position, the IoT device can report its position to the hub device or the hub device can detect the location of the IoT device through other devices with detection functions (such as cameras, indoor radars, etc.). When determining the device currently being used by the first user, the hub device can determine the device in operation near the first user based on the location information of the first user and the location information of multiple IoT devices. If multiple devices near the first user are in operation, the hub device can determine the device used to remind the first user to take a break in the order of private devices, shared devices, and public devices.

[0050] For example, when the central device determines that the current time is the rest time of the first user, and the indoor radar detects that the first user is in the living room, the central device can control the smart curtains in the living room to cover the windows. When the first user enters the bedroom, the central device can control the smart curtains in the bedroom to cover the windows. The central device can also control the smart speaker to play sleep-aiding music and control the smart lamps to turn on the sleep light. For example, the sleep light can be warm light with a color temperature of 2000-3000K and a spectral wavelength of 550nm-680nm. The sleep light can promote the secretion of melatonin and improve human sleep disorders.

[0051] For another example, when the central device determines that the current time has reached the rest time of the first user, the indoor radar detects that the first user is in the living room, and the smart TV in the living room is in operation, the central device can push a rest reminder message to the smart TV, and the smart TV can display the reminder message to remind the user to rest on the display screen, and display a shutdown countdown, and automatically turn off the smart TV after the countdown ends.

[0052] For another example, when the central device determines that the current time is the first user's rest time and the indoor radar detects that the first user is working at the table, the central device can control the smart desk lamp on the table to gradually dim, thereby reminding the user to rest.

[0053] For another example, the central device determines that the current time has reached the rest time of the first user, and the first user's smartphone is in operation. The central device can receive information reported by the first user's smartphone to indicate that the first user's smartphone is currently running an application in the foreground, so as to determine that the first user's smartphone is in operation; or indoor radar and other detection devices can detect the positional relationship between the first user and the smartphone, and the central device can determine that the first user is using the smartphone based on the information detected by the indoor radar. The central device can push rest reminder information to the first user's smartphone, and after receiving the rest reminder information, the first user's smartphone can display the rest reminder information on the display screen. If after reminding the first user to rest many times, the central device determines that the first user has not rested based on the information obtained by the indoor radar detection, the central device can send a first control command to the first user's smartphone to control the first user's smartphone to limit the network speed, thereby urging the user to rest.

[0054] For another example, when the hub device determines that the current time has reached the rest time of the first user and the first user's smartphone is in operation, the hub device may send a first control command to the first user's smartphone, and the first user's smartphone may recommend content that the first user may not be interested in from the short video software, shopping software, social media, etc. browsed by the first user, thereby urging the user to stop operating the smartphone and take a rest.

[0055] 2. The user is ready to fall asleep.

[0056] In an embodiment of the present application, detection devices such as smart mattresses, smart headrests, and indoor radars can detect information such as the user's position and posture. The detection device sends the acquired first user information to the central device, and the sleep detection module in the central device can determine the user's sleep state based on the received first user information. In an optional implementation, the central device determines that the user has entered the first area based on the first user information acquired by the detection device, and the central device can determine that the user is in a state of preparing to fall asleep. For example, the first area can be the area where the bed in the bedroom is located, and for another example, the first area can be the area where furniture such as sofas and massage chairs where users may rest are located, which is not limited in the embodiment of the present application. When the user is in a state of preparing to fall asleep, the central device can detect the user's sleeping state based on a preset cycle, and select different sleep assistance strategies according to the user's sleeping state, thereby scheduling multiple IoT devices to provide a sleep-aiding environment for the user. Optionally, the central device can gradually enhance the sleep assistance function as the time required for the user to fall asleep increases.

[0057] For example, after the user goes to bed, the smart headrest can detect the user's sleeping state, such as the sleeping state can include the time required for the user to fall asleep. In implementation, the smart headrest can detect whether the user's brain waves have entered a semi-dormant state, thereby determining the time required for the user to fall asleep. The smart headrest can detect the user's brain waves based on a preset period, such as the smart headrest detects the user's brain waves once every 5 minutes, and determines whether it has entered a semi-dormant state based on the user's brain waves. The smart headrest can send the detection results to the central device, and the sleep detection module in the central device can determine the first sleep assistance strategy corresponding to the detection result from multiple candidate sleep assistance strategies based on the user's sleeping state sent by the smart headrest, and control at least one second device to execute the second preset instruction corresponding to at least one second device according to the first sleep assistance strategy, so that at least one second device can be scheduled to adjust the operating state to provide sleep assistance to the user, thereby creating a sleep-aiding environment for the user. Among them, at least one second device is a device related to the first sleep assistance strategy. Taking the first sleep assistance strategy of controlling the audio-visual entertainment subsystem to play white noise and controlling the lighting subsystem to emit melanin light as an example, at least one second device includes devices of the audio-visual entertainment subsystem and the lighting subsystem, and the at least one second device provides a sleep-aiding environment for the user according to the first sleep assistance strategy.

[0058] In the embodiment of the present application, the sleep assistance strategy may include preset instructions corresponding to the IoT device. For example, Table 1 is an example of a sleep assistance strategy provided in the embodiment of the present application.

[0059] Table 1 Sleep assistance strategies

[0060]

[0061] Among them, the white noise in Table 1 can be a uniform, stable sound with the same frequency (such as a frequency of 20-10KHZ), the melanin light can be warm light with a color temperature of 2000-3000K and a spectral wavelength of 550 nanometers to 680 nanometers, the sleep-aiding temperature can be, for example, 20-24 degrees, and the sleep-aiding humidity can be, for example, 50%-55%.

[0062] Referring to Table 1, when the user is ready to fall asleep, the smart headrest can detect the user's brain waves based on a preset cycle, such as detecting the user's brain waves 5 minutes after the user touches the smart headrest, and determining that the user has entered a semi-dormant state based on the user's brain waves. The smart headrest sends the detection results to the central device, and since the user has fallen asleep at this time, the central device can control the lighting subsystem to turn off the lighting.

[0063] For another example, the smart headrest detects the user's brain waves 5 minutes after the user touches the smart headrest, and determines that the user has not entered a semi-dormant state based on the user's brain waves. The smart headrest sends the detection results to the central device, which can control the audio-visual entertainment subsystem to play white noise, and control the lighting subsystem to emit melanin light. The smart headrest detects the user's brain waves again 10 minutes after the user touches the headrest, and determines that the user has not entered a semi-dormant state based on the user's brain waves. The smart headrest sends the detection results to the central device, which can control the audio-visual entertainment subsystem to play white noise, control the lighting subsystem to emit melanin light and turn off the lighting in a gradual mode within 5 minutes, and control the heating and cooling subsystem to adjust the temperature to a sleep-aiding temperature, and adjust the humidity value to a sleep-aiding humidity.

[0064] The execution methods of the sleep assistance strategies corresponding to the other sleep durations shown in Table 1 can be the above two examples, and the repeated parts will not be repeated.

[0065] It should be noted that the sleep assistance strategy shown in Table 1 is only an example and not a limitation. In specific implementations, different sleep assistance strategies can be set according to the type, quantity, and distribution of IoT devices, and users can also customize sleep assistance strategies.

[0066] 3. The user is in sleep mode.

[0067] In the embodiment of the present application, detection devices such as smart mattresses, smart headrests, and indoor radars can detect the user's sleep state and send the detection results to the central device. After determining that the user is in a state of entering sleep, the central device can control the IoT device to adjust the operating state to a preset state. Among them, the preset state can be the operating state of the device before adjusting the operating state of the device based on the sleep assistance strategy, such as the preset state can be the operating state of the device that can provide a sleep environment similar to the natural environment; the preset state can also be the operating state of the device that can provide the sleep environment that the user is accustomed to. In implementation, after determining that the user is in a sleep state, the central device can adjust each IoT device adjusted when the user is in a state of preparing to fall asleep to a preset state without continuously providing a sleep-aiding environment for the user or reducing the degree of providing a sleep-aiding environment for the user. In an optional implementation, the central device can gradually control multiple IoT devices to adjust to the corresponding preset state after determining that the user is in a sleep state, such as the central device can first control the lighting subsystem to turn off the lighting, and then control the cold and warm fresh air subsystem to adjust the temperature to room temperature. In another optional implementation, the central device can control the IoT device to gradually weaken the sleep assistance function, such as controlling the lighting subsystem to turn off the lighting in a gradual mode or to adjust to a preset lighting intensity in a gradual mode, controlling the cooling and heating fresh air subsystem to sample and gradually adjust to room temperature or a preset room temperature, etc. This design can reduce the user's dependence on the environment for sleep and help the user fall asleep naturally.

[0068] For example, after determining that the user is asleep, the central device can control the cooling and heating subsystem to adjust the temperature to normal room temperature and the humidity to normal indoor humidity. The central device can control the odor subsystem to turn off the aromatherapy machine and control the smart headrest to turn off the sleep-aiding massage. When the audio-visual entertainment subsystem plays white noise, as mentioned above, white noise is a uniform, stable sound of the same frequency (such as a frequency of 20-10KHZ). White noise can shield, weaken or disperse other interfering noises, so that the user can relax and fall asleep faster. After the user is asleep, the central device can control devices such as smart speakers to detect noise. When the noise is less than the preset threshold, the central device can control the audio-visual entertainment subsystem to stop playing white noise.

[0069] In an optional implementation, after determining that the user is in a sleeping state, the central device can determine the user's sleep quality information based on the user information detected by the detection devices such as the smart mattress, smart headrest, and indoor radar. For example, the user's sleep quality information can be a sleep index, such as the sleep index includes 0, 1, 2, 3, 4, and 5, where the larger the number, the worse the user's sleep quality, 0 means that the user is in absolute deep sleep, and 5 means that the user is in conscious light sleep. The central device can control multiple IoT devices to adjust back to the corresponding preset state when it is determined that the user's sleep quality is greater than a preset threshold, such as when the central device determines that the user's sleep index is less than a preset value, it controls multiple IoT devices to adjust back to the preset state, so as not to affect the user's sleep state. Optionally, the central device can detect the user's sleep quality information within the adjusted preset time period. If it is determined that the user's sleep quality is reduced according to the user's sleep quality information, such as the user enters conscious light sleep from absolute deep sleep, the central device can control multiple IoT devices to change the operating state based on the preset sleep assistance strategy to continue to provide a sleep-aiding environment for the user.

[0070] The following is based on Figure 2 The smart home system shown in the figure further introduces the smart home sleep scene execution method provided by the embodiment of the present application by taking an example. Figure 3 This is a flowchart of a smart home sleep scene execution method provided by an embodiment of the present application. Figure 3 , the method comprises the following steps:

[0071] S301: The sleep assistance module determines, based on the user's habit information, that the current time has reached the user's rest time, and the user is in a state of preparing for sleep.

[0072] S302: The sleep assistance module sends a first push request to the rest reminder module, and the rest reminder module receives the first push request.

[0073] The first push request is used to request the rest reminder module to trigger the information push module to push the rest reminder information to the device.

[0074] S303: The rest reminder module sends a second push request to the information push module according to a preset sleep reminder strategy, and the information push module receives the second push request.

[0075] The second push request is used to request the information push module to push rest reminder information to the device.

[0076] S304: The information push module sends first driving information to the lighting subsystem, and the lighting subsystem receives the first driving information.

[0077] The first driving information is used to instruct the lighting subsystem to provide a rest reminder for the user, such as the lighting subsystem dimming the lighting of the smart lamp.

[0078] S305: The information push module sends the second driving information to the sunshade subsystem, and the sunshade subsystem receives the second driving information.

[0079] The second driving information is used to instruct the sunshade subsystem to provide a rest reminder for the user, such as the sunshade subsystem controlling the closing of curtains.

[0080] S306: The information push module sends the third driving information to the audio-visual entertainment subsystem, and the audio-visual entertainment subsystem receives the third driving information.

[0081] The third driving information is used to instruct the audio-visual entertainment subsystem to provide a rest reminder for the user, such as the audio-visual entertainment subsystem controls the smart TV to display a rest reminder message and a shutdown countdown, and shuts down after the countdown ends. For another example, the audio-visual entertainment subsystem controls the smart speaker to play sleep-inducing music.

[0082] S307: The sleep subsystem sends the first user information to the sleep detection module, and the sleep detection module receives the first user information.

[0083] In the embodiment of the present application, the first user information may include information such as the user's location and the user's posture.

[0084] S308: The sleep detection module determines that the user is in a state of preparing to fall asleep according to the first user information sent by the sleep subsystem.

[0085] S309: The sleep detection module sends an assistance request to the sleep assistance module, and the sleep assistance module receives the assistance request.

[0086] The assistance request is used to request the sleep assistance module to provide sleep assistance to the user.

[0087] S310: The sleep assistance module determines a sleep assistance strategy according to the user's sleep state.

[0088] In some embodiments of the present application, the user's sleep state may include the time required for the user to fall asleep. The central device may store the correspondence between multiple sleep states and multiple sleep assistance strategies. The sleep assistance module may determine the sleep assistance strategy based on the user's sleep state. For details, please refer to the above embodiments and the sleep assistance strategies shown in Table 1, which will not be repeated here.

[0089] S311: The sleep assistance module sends a control request to the device control module according to the sleep assistance strategy, and the device control module receives the control request.

[0090] The control request is used to request the device control module to control each subsystem in the smart home system so that each subsystem can provide a sleep-aiding environment for the user.

[0091] S312: The device control module sends fourth driving information to the sleep subsystem, and the sleep subsystem receives the fourth driving information.

[0092] The fourth driving information is used to instruct the sleep subsystem to adjust the bedding, such as the sleep subsystem can adjust the mattress, or turn on the headrest massage.

[0093] S313: The device control module sends fifth driving information to the lighting subsystem, and the lighting subsystem receives the fifth driving information.

[0094] The fifth driving information is used to instruct the lighting subsystem to adjust the lighting. For example, the lighting subsystem may adjust the smart lamp to emit melanopic light.

[0095] S314: The device control module sends sixth driving information to the smell subsystem, and the smell subsystem receives the sixth driving information.

[0096] The sixth driving information is used to instruct the odor subsystem to release a sleep-aiding odor.

[0097] S315: The device control module sends the seventh driving information to the audio-visual entertainment subsystem, and the audio-visual entertainment subsystem receives the seventh driving information.

[0098] The seventh driving information is used to instruct the audio-visual entertainment subsystem to play sleep-aiding music. For example, the audio-visual entertainment subsystem can play white noise to reduce noise interference.

[0099] S316: The device control module sends the eighth driving information to the cooling, heating and fresh air subsystem, and the cooling, heating and fresh air subsystem receives the eighth driving information.

[0100] The eighth driving information is used to instruct the cooling and heating fresh air subsystem to adjust the temperature, humidity and negative oxygen ion content. For example, the best sleeping temperature is between 20-24 degrees, the best sleeping humidity is 50%-55%, and the negative oxygen ion content is 1000 / cm 3 It will improve insomnia and stabilize sleep. After receiving the eighth driving information, the cooling and heating fresh air subsystem can gradually adjust one or more of the temperature, humidity, and negative oxygen ion content to provide a sleep-aiding environment for users.

[0101] S317: The sleep subsystem sends the second user information to the sleep detection module, and the sleep detection module receives the second user information.

[0102] In an embodiment of the present application, the second user information may include the user's sleep status, and the user's sleep status may be whether the user has fallen asleep. For example, the sleep subsystem may detect the user's brain waves to determine whether the user has fallen asleep. The second user information may also include the user's sleep quality information, such as the user's sleep quality information may be a sleep index.

[0103] S318: The sleep detection module determines that the user is in a sleeping state according to the second user information sent by the sleep subsystem.

[0104] S319: The sleep detection module determines the user's sleep quality information according to the second user information.

[0105] S320: The sleep detection module sends the user's sleep quality information to the sleep assistance module, and the sleep assistance module receives the user's sleep quality information.

[0106] S321: The sleep assistance module determines to turn off or weaken the sleep assistance function according to the user's sleep quality information.

[0107] For example, when the sleep assistance module determines that the user's sleep quality is greater than a preset threshold based on the user's sleep quality information, it is determined that it is no longer necessary to continue to provide sleep assistance to the user, and the sleep assistance module can determine to turn off or weaken the sleep assistance function.

[0108] S322: The sleep assistance module sends a request to turn off / reduce the sleep assistance to the device control module, and the device control module receives the request to turn off / reduce the sleep assistance.

[0109] The sleep assistance shutdown request is used to request the device control module to control each subsystem to end or weaken the sleep assistance.

[0110] S323: The device control module sends ninth driving information to the sleep subsystem, and the sleep subsystem receives the ninth driving information.

[0111] The ninth driving information is used to instruct the sleep subsystem to adjust the bedding to a preset state, such as the sleep subsystem can turn off or weaken the headrest massage.

[0112] S324: The device control module sends the tenth driving information to the lighting subsystem, and the lighting subsystem receives the tenth driving information.

[0113] The tenth driving information is used to instruct the lighting subsystem to turn off the lighting.

[0114] S325: The device control module sends the eleventh driving information to the smell subsystem, and the smell subsystem receives the eleventh driving information.

[0115] The eleventh driving information is used to instruct the odor subsystem to stop releasing the sleep-aiding odor.

[0116] S326: The device control module sends the twelfth driving information to the audio-visual entertainment subsystem, and the audio-visual entertainment subsystem receives the twelfth driving information.

[0117] The twelfth driving information is used to instruct the audio-visual entertainment subsystem to stop playing the sleep-aiding music. For example, the audio-visual entertainment subsystem can gradually reduce the volume of the white noise until the white noise is stopped.

[0118] S327: The device control module sends the thirteenth driving information to the cooling, heating and fresh air subsystem, and the cooling, heating and fresh air subsystem receives the thirteenth driving information.

[0119] The thirteenth driving information is used to instruct the cooling and heating fresh air subsystem to adjust the temperature, humidity and negative oxygen ion content to preset values.

[0120] exist Figure 3 In the illustrated embodiment, the driving information sent by the device control module to each subsystem may be an implementation method of the rest reminder information or control command sent by the central device to the device in the above-mentioned embodiment of the present application. For example, the first driving information in S304 may be a control command, and the third driving information in S306 may be a rest reminder information, etc.

[0121] It should be noted that in Figure 3 In the illustrated embodiment, the sleep subsystem can obtain user information in real time. For example, the sleep subsystem can detect the user's location, the user's sleep quality information, etc. in real time. The sleep subsystem can send the user information obtained in real time to the sleep detection module, so that the sleep detection module can trigger the sleep assistance module to adjust the sleep assistance function at any time according to the user information, so as to provide different sleep assistance in time when the user is in different states, thereby improving the user experience.

[0122] In addition, it is understandable that when a subsystem in the smart home system receives a driving message, if the device or device function module in the subsystem is already in the operating state corresponding to the driving information, the subsystem may no longer execute the processing steps corresponding to the driving information. For example, in S314, when the odor subsystem receives the sixth driving information, the odor subsystem is already releasing a sleep-aiding odor, and the odor subsystem does not need to execute the step of turning on the aromatherapy again. For another example, in S316, when the cooling and heating fresh air subsystem receives the eighth driving information, it determines that the current room temperature has met the temperature that needs to be adjusted to as indicated by the eighth driving information, and the cooling and heating fresh air subsystem no longer needs to execute the step of adjusting the temperature.

[0123] It should be noted that Figure 3 The embodiment shown is only an example of the smart home sleep scene execution method provided by the embodiment of the present application and is not a limitation. In the specific implementation, each device / subsystem in the smart home system may execute more or fewer steps, and the embodiment of the present application does not limit this. Figure 3In the illustrated embodiment, the information push module may execute one or more steps in S304-S306, the device control module may execute one or more steps in S312-S316, and the device control module may execute one or more steps in S323-S327. The embodiment of the present application does not limit the execution order of S304-S306, the information push module may first execute any step in S304-S306, and then execute the remaining steps in sequence, or the information push module may execute S304-S306 at the same time; similarly, the embodiment of the present application does not limit the execution order of S312-S316 and the execution order of S323-S327.

[0124] Based on the same concept, an embodiment of the present application also provides a smart home sleep scene execution method, which can be executed by a central device. Figure 4 This is a flowchart of a smart home sleep scene execution method provided in an embodiment of the present application, refer to Figure 4 , the method comprises the following steps:

[0125] S401: The central device determines that the current time reaches the rest time of the first user, and controls at least one first device to execute a corresponding instruction.

[0126] S402: The central device determines that the first user enters the first area, and controls at least one second device to execute a corresponding instruction according to a preset sleep assistance strategy.

[0127] The sleep assistance strategy includes instructions corresponding to at least one second device.

[0128] S403: The central device determines that the first user enters the sleep state, and controls at least one second device to adjust the operating state to a corresponding preset state.

[0129] It should be noted that this application Figure 4 The smart home sleep scene execution method shown can be specifically implemented by referring to the above embodiments of the present application, and the repeated parts will not be repeated here.

[0130] It is understandable that in order to realize the functions of the central device in the above-mentioned embodiments, the central device includes hardware structures and / or software results corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and method steps of each example described in the embodiments disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.

[0131] Figure 5A possible structural example diagram of a device provided in an embodiment of the present application, the device can be used to implement the functions of the central device in the above embodiment, and can also be used to implement the functions of the electronic device in the above embodiment, and thus can also achieve the beneficial effects of the above embodiment.

[0132] refer to Figure 5 , the device 500 may include a processor 501, a memory 502, and a communication interface 503. The processor 501, the memory 502, and the communication interface 503 are coupled to each other. Optionally, the memory 502 may be used to store instructions executed by the processor 501 or to store input data required by the processor 501 to run the instructions or to store data generated after the processor 501 runs the instructions. The communication interface 503 may be a transceiver or an input-output interface.

[0133] Optional, see Figure 5 , the processor 501, the memory 502 and the communication interface 503 are connected to each other via a bus 504. The bus 504 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0134] When the device 500 is applied to a hub device, the processor 501 can be used to implement the processing function of the hub device in the above embodiment. The communication interface 503 can be used to implement the transceiver function of the hub device in the above embodiment.

[0135] It is understandable that the processor 501 in the embodiment of the present application can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor can be a microprocessor or any conventional processor.

[0136] This application Figure 5The memory 502 in the embodiment may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0137] Based on the above embodiments, the present application further provides a device, the device comprising multiple functional modules; the multiple functional modules interact with each other to implement the functions performed by the central device in each method described in the embodiments of the present application. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on the specific implementation.

[0138] Based on the above embodiments, the present application also provides a program product containing instructions, when the program product is run on a device or a computer, the device or the computer executes the methods described in the embodiments of the present application.

[0139] Based on the above embodiments, the present application also provides a readable storage medium, in which a program is stored. When the program is executed by a device or a computer, the device or the computer executes the methods described in the embodiments of the present application.

[0140] Based on the above embodiments, the present application also provides a chip, which is used to read the program stored in the memory to implement the methods described in the embodiments of the present application.

[0141] Based on the above embodiments, the present application provides a chip system, which includes a processor for supporting a device to implement the methods described in the embodiments of the present application. In one possible design, the chip system also includes a memory, which is used to store the necessary programs and data for the device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.

[0142] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware.

[0143] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and program products according to the present application. It should be understood that each flow and / or box in the flow chart and / or block diagram, as well as the combination of the flow chart and / or box in the flow chart and / or block diagram, can be implemented by program instructions.

[0144] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of protection of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for executing a smart home sleep scene, characterized in that: Applied to a hub device, the method comprises: Determining that the current time reaches the rest time of the first user, and controlling at least one first device to execute a corresponding instruction; Determining that the first user enters the first area, and controlling at least one second device to execute corresponding instructions according to a preset sleep assistance strategy, where the sleep assistance strategy includes instructions corresponding to the at least one second device respectively; It is determined that the first user enters a sleeping state, and the at least one second device is controlled to adjust the operating state to a corresponding preset state.

2. The method according to claim 1, characterized in that The at least one first device includes a device used by the first user during the rest time and / or a device located within a preset range of the first user during the rest time.

3. The method according to claim 1 or 2, characterized in that The controlling at least one first device to execute a corresponding instruction includes: sending rest reminder information to the at least one first device so that the at least one first device displays the rest reminder information; and / or, A first control command is sent to the at least one first device so that the at least one first device adjusts its operating state to a corresponding state, and the adjusted state of the at least one first device is an operating state for reminding the user to sleep.

4. The method according to any one of claims 1 to 3, characterized in that: Controlling at least one second device to execute a corresponding instruction according to a preset sleep assistance strategy includes: A second control command is sent to the at least one second device so that the at least one second device adjusts its operating state to a corresponding state, and the adjusted state of the at least one second device is an operating state for providing sleep assistance to the user.

5. The method according to any one of claims 1 to 4, characterized in that: The controlling at least one second device to execute a corresponding instruction according to a preset sleep assistance strategy includes: The sleeping state of the first user is obtained based on a preset period, a sleep assistance strategy corresponding to the sleeping state of the first user is determined from a plurality of preset sleep assistance strategies according to the sleeping state of the first user, and the at least one second device is controlled to execute corresponding instructions according to the sleep assistance strategy corresponding to the sleeping state of the first user.

6. The method according to claim 5, characterized in that The sleeping state of the first user includes the time required for the first user to fall asleep; the longer the time required for the first user to fall asleep, the greater the number of the at least one second device in the sleep assistance strategy corresponding to the sleeping state of the first user, and / or the stronger the sleep assistance function of the instruction corresponding to the at least one second device in the sleep assistance strategy corresponding to the sleeping state of the first user.

7. The method according to any one of claims 1 to 6, characterized in that: The determining that the first user enters a sleeping state and controlling the at least one second device to adjust the operating state to a corresponding preset state includes: Determining that the first user enters a sleeping state, and obtaining sleep quality information of the first user; When it is determined according to the sleep quality information of the first user that the sleep quality of the first user is greater than a preset threshold, the at least one second device is controlled to adjust the operating state to a corresponding preset state.

8. The method according to claim 7, characterized in that After controlling the at least one second device to adjust the operating state to a corresponding preset state, the method further includes: When it is determined according to the sleep quality information of the first user that the sleep quality of the first user is reduced, the at least one second device is controlled to execute a corresponding instruction according to the preset sleep assistance strategy.

9. A device, characterized in that: The system comprises at least one processor, wherein the at least one processor is coupled to at least one memory, and the at least one processor is used to read a program stored in the at least one memory to execute the method according to any one of claims 1 to 8.

10. A readable storage medium, characterized in that: The readable storage medium stores instructions, which, when executed on a device, enable the device to execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Smart soundbox control method in smart home scene

    CN107743289A

  • Multimedia playing system and method based on smart home

    CN113189884A

  • Control method and control device of smart home system and smart home system

    CN114740740A

  • Control method, device and equipment of intelligent air conditioner and storage medium

    CN116085964A