Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the application provides a control method, a system and a controller of an intelligent household curtain based on the internet of things.
In a first aspect, the application provides a control method for an intelligent household curtain based on the internet of things, and the method includes: acquiring first state information of a curtain at a first moment and first information of a user; determining second information of the user at a second moment according to the first information of the user; judging whether the second information is matched with the first state information of the curtain or not; if the curtain is matched with the curtain, the state of the curtain is kept unchanged; or if the curtain state information is not matched with the first state information, determining second state information of the curtain corresponding to the second information, and switching the state of the curtain from the first state information to the second state information.
By adopting the implementation mode, whether the current curtain state is matched with the second information is determined according to the current information of the user and the second information at the next moment. The curtain opening and closing device has the advantages that the curtain opening and closing is related to the requirements of the user, when the user needs to open or close the curtain at the next moment, the requirements of the user can be determined in advance, and the curtain opening and closing is matched with the actual requirements of the user.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the obtaining first information of a user includes: determining a time range for acquiring the first information; and acquiring the first information in different acquisition modes according to the behavior information of the user in different time ranges.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the time range includes a first time range before the user sleeps to get up in the morning in the evening and a second time range except the first time range.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the acquiring the first information in different acquisition manners according to behavior information of a user in different time ranges includes: if the first time range is within the first time range, collecting the user biological electric wave as the first information by adopting a human body wearable device; or if the user behavior is in the second time range, a camera is adopted to collect the user behavior as the first information.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, if the first information is a user biological wave and a user is sleeping, determining second information of the user at a second time according to the first information of the user includes: reference electric waves which are collected in advance and used in the first time range of user history sleep and before wake-up; comparing the user biological electric wave in the first information with the reference electric wave to determine the electric wave variation trend; determining second information corresponding to the user biological electric wave at a second moment according to the change trend, wherein the second information comprises: the user is asleep, experiencing a malfunction during sleep and the user is in an awake-to-sleep state.
With reference to the third possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, if the first information is a user behavior and a user walks indoors, determining second information of the user at a second time according to the first information of the user includes: determining historical user behavior of a user, comprising: a first user action requiring shade closing and a second user action not requiring shade closing; comparing the user behavior in the first information with historical user behavior; and determining second information corresponding to the user behavior of the user behavior at a second moment in the first information according to the comparison result.
With reference to the fourth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, if the first state information is that a curtain is closed and a user is in an early sleep-wake state, determining second state information of a curtain corresponding to the second information includes: and determining the stage opening of the curtain, and controlling the curtain to be opened at a preset speed according to the stage opening until the user gets up.
With reference to the sixth possible implementation manner of the first aspect, in a seventh possible implementation manner of the first aspect, the method further includes controlling the window screening to be closed simultaneously when the window covering is controlled to be opened according to the step opening.
In a second aspect, the application provides a control system of smart home curtain based on internet of things, the system includes: the acquisition module is used for acquiring first state information of the curtain at a first moment and first information of a user; the determining module is used for determining second information of the user at a second moment according to the first information of the user; the judging module is used for judging whether the second information is matched with the first state information of the curtain or not; the first processing module is used for keeping the state of the curtain unchanged if the curtain is matched with the first processing module; or, the second processing module is configured to determine second state information of the window curtain corresponding to the second information if the window curtain state information is not matched with the first state information, and switch the state of the window curtain from the first state information to the second state information.
In a third aspect, an embodiment of the present application provides a controller, including: a processor; a memory for storing computer executable instructions; when the processor executes the computer-executable instructions, the processor executes the method for controlling the smart home curtain based on the internet of things according to the first aspect or any one of the possible implementation manners of the first aspect.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic flow chart of a control method of an intelligent home curtain based on the internet of things provided in the embodiment of the present application, and referring to fig. 1, the control method of the intelligent home curtain based on the internet of things provided in the embodiment of the present application includes the following steps.
S101, first state information of the curtain at a first moment and first information of a user are obtained.
Fig. 2 is a system construction for supporting a smart home curtain provided by the embodiment, and the system construction includes a terminal, a curtain controller, a human wearable device, and a camera, where the terminal is in communication connection with the curtain controller, the human wearable device, and the camera, respectively.
The curtain is used in daily home for multiple purposes, but the use time is divided into night sleeping time and user indoor activity time. Therefore, when determining the first information of the user, first acquiring a time range of the first time, including: the user sleeps to a first time range before getting up in the morning in the evening and a second time range other than the first time range.
In the first time frame, the user generally sleeps without excessive activity. At the moment, the human body wearable device is adopted to collect the biological electric wave of the user as first information. For example, brain wave information is collected during a user's sleep, and the brain wave information of a person may reflect various states of the user during sleep.
The second time range is the indoor activity time of the user, and the user can walk or have other behavior actions indoors in the time range. The most intuitive acquisition method for behavior is video acquisition.
No matter the user biological electric wave that wearable equipment gathered, still the user action data of video collection can all transmit for the terminal, carry out the judgement on next step in the terminal.
S102, determining second information of the user at a second moment according to the first information of the user.
In this embodiment, the time range for determining the first information includes the first time range and the second time range, and thus there are two cases for determining the second information.
In the first case, if the first time range is in the first time range, the first information is the user biological wave, and the user is sleeping. The key to the determination of the second information at the second time from the first information is to determine in advance the biological wave information of various states of the user's sleep time in the evening. In the embodiment, the reference electric waves of the user history in the first time range of sleeping and before waking are collected in advance; comparing the user biological electric wave in the first information with the reference electric wave to determine the electric wave variation trend; determining second information corresponding to the user biological electric wave at a second moment according to the change trend, wherein the second information comprises: the user is asleep, experiencing a malfunction during sleep and the user is in an awake-to-sleep state.
Specifically, if the electric wave variation tendency of the first information is kept coincident with the sleep bioelectric wave in the reference electric wave, it is determined that the user is in sleep. If the electric wave variation trend of the first information changes within a short time and then tends to the biological electric wave in sleep, the user makes a transaction in sleep, such as the user sleeping normally at night, turning over the body in the middle of sleeping, getting up in the middle of sleeping for a short time. If the electric wave variation tendency of the first information approaches the biological electric wave before waking in the reference electric wave, the user is in the wake-up-to-sleep state.
The second is that in a second time range, the first information is the user behavior, and the user walks indoors. Determining user behaviors corresponding to second information of a future first time period according to the user behaviors corresponding to the first information of the user, wherein the historical user behaviors of the user need to be determined, and the historical behavior data comprises first user behaviors needing to close the curtain and second user behaviors needing not to close the curtain.
The user walks indoors, no specific requirements are made on opening and closing of the curtain, and if the user behavior at the second moment is judged according to the walking direction and position of the user at the first moment. For example, the user walks indoors, goes into the bedroom at the next time, opens the wardrobe in the bedroom, and the user may need to change clothes and close the curtain. The user walks indoors, walks into the bedroom at the next moment, and lies on the bed, and at the moment, the user may need to have a short rest, and the curtain needs to be closed.
S103, judging whether the second information is matched with the first state information of the curtain or not.
And S102, when the second information of the user at the second moment is determined, determining whether the second information is matched with the current curtain state according to the requirement of the user of the second information. If the shade is open, a second message at a second time is to close the shade or to maintain the series of shades open. Similarly, if the window covering is in a closed position, it is determined whether the window covering is being held or opened at the second time.
And S104, if the curtain is matched with the curtain, keeping the state of the curtain unchanged.
If the user is in the sleep state, the user still keeps the sleep state or the abnormal movement occurs in the sleep state at the second moment, and the curtain state is kept unchanged. If the user walks indoors, if the curtain is required to be closed by the action of the user at the second moment, and the curtain is also in a closed state, the state of the curtain can be kept unchanged.
That is, whether the window covering is opened or closed, if it is determined at the second time that the user's demand is consistent with the current state of the window covering, the state of the window covering may be maintained.
S105, if the curtain state information is not matched with the first state information, determining second state information of the curtain corresponding to the second information, and switching the state of the curtain from the first state information to the second state information.
In contrast to the above, if the user walks indoors while the window covering is open, the state of the window covering needs to be switched if it is determined that the user's possible behavior requirement at the next time is to close the window covering. The curtain is closed when the user is sleeping, so that the closed curtain needs to be controlled to be in an open state as long as the user is in an early wake-up state.
When people wake up from sleep, although the curtain needs to be opened, certain requirements are made on the light intensity, for example, the light is not too strong. Therefore, the stage opening degree of the curtain needs to be determined, and the curtain is controlled to be opened at a preset speed according to the stage opening degree until a user gets up. When the curtain is controlled to be opened according to the stage opening degree, the window screen is controlled to be closed at the same time. Thus, the light after getting up is ensured, and the privacy of the user just getting up can also be ensured.
It should be noted that the situation that the user needs to open or close the window covering given in different time ranges in the present embodiment is not limited to the example in the above-mentioned embodiment. The control method in the embodiment can realize flexible control of the curtain according to the requirements of users. Besides the above-mentioned opening and closing of the curtain and opening of the curtain, the curtain can be opened partially.
Known from the above embodiments, the present embodiment provides a control method for an intelligent home curtain based on the internet of things, and determines whether the current curtain state matches with second information according to current information of a user and the second information at the next moment. The curtain opening and closing device has the advantages that the curtain opening and closing is related to the requirements of the user, when the user needs to open or close the curtain at the next moment, the requirements of the user can be determined in advance, and the curtain opening and closing is matched with the actual requirements of the user.
Corresponding to the control method of the smart home curtain based on the internet of things provided in the foregoing embodiment, the present application also provides an embodiment of a control system of the smart home curtain based on the internet of things, and referring to fig. 3, the control system 20 of the smart home curtain based on the internet of things includes: the device comprises anacquisition module 201, adetermination module 202, ajudgment module 203, afirst processing module 204 and asecond processing module 205.
The obtainingmodule 201 is configured to obtain first state information of a curtain at a first time and first information of a user.
Determining a time range for acquiring the first information, wherein the time range comprises a first time range before the user sleeps to get up in the morning in the evening and a second time range except the first time range.
Acquiring the first information in different acquisition modes according to behavior information of a user in different time ranges, and acquiring biological electric waves of the user as the first information by adopting human body wearable equipment if the first information is in a first time range; or if the user behavior is in the second time range, a camera is adopted to collect the user behavior as the first information.
The determiningmodule 202 is configured to determine, according to the first information of the user, second information of the user at a second time.
If the first information is the user biological electric wave, and the user is sleeping. Reference electric waves which are collected in advance and used in the first time range of user history sleep and before wake-up; comparing the user biological electric wave in the first information with the reference electric wave to determine the electric wave variation trend; determining second information corresponding to the user biological electric wave at a second moment according to the change trend, wherein the second information comprises: the user is asleep, experiencing a malfunction during sleep and the user is in an awake-to-sleep state.
And if the first information is the user behavior, and the user walks indoors. A first user action requiring shade closing and a second user action not requiring shade closing; comparing the user behavior in the first information with historical user behavior; and determining second information corresponding to the user behavior of the user behavior at a second moment in the first information according to the comparison result.
And the judgingmodule 203 is used for judging whether the second information is matched with the first state information of the curtain.
And thefirst processing module 204 is used for keeping the state of the window curtain unchanged if the window curtains are matched.
And thesecond processing module 205 is configured to determine second state information of the window curtain corresponding to the second information if the window curtain state information is not matched with the first state information, and switch the state of the window curtain from the first state information to the second state information.
And if the first state information is that the curtain is closed, the user is in an early wake-up state. And determining the stage opening of the curtain, and controlling the curtain to be opened at a preset speed according to the stage opening until the user gets up. When the curtain is controlled to be opened according to the stage opening degree, the window screen is controlled to be closed at the same time.
The present application also provides an apparatus, referring to fig. 4, the terminal 30 includes: aprocessor 301, a memory 302, and acommunication interface 303.
In fig. 4, theprocessor 301, the memory 302, and thecommunication interface 303 may be connected to each other by a bus; the bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
Theprocessor 301 generally controls the overall functions of the terminal 30, such as starting the terminal 30, and acquiring first state information of the window covering and first information of the user after the device is started; determining second information of the user in a future first time period according to the first information of the user; judging whether the second information is matched with the first state information of the curtain or not; if the curtain is matched with the curtain, the state of the curtain is kept unchanged; or if the curtain state information is not matched with the first state information, determining second state information of the curtain corresponding to the second information, and switching the state of the curtain from the first state information to the second state information.
Further, theprocessor 301 may be a general-purpose processor, such as a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP. The processor may also be a Microprocessor (MCU). The processor may also include a hardware chip. The hardware chips may be Application Specific Integrated Circuits (ASICs), Programmable Logic Devices (PLDs), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a Field Programmable Gate Array (FPGA), or the like.
The memory 302 is configured to store computer-executable instructions to support the operation of the terminal 30 data. Thememory 301 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
After the terminal 30 is started, theprocessor 301 and the memory 302 are powered on, and theprocessor 301 reads and executes the computer executable instructions stored in the memory 302 to complete all or part of the steps in the control method embodiment of the smart home curtain based on the internet of things.
Thecommunication interface 303 is used for the terminal 30 to transmit data, for example, to enable data communication with wearable sensors, cameras, and window covering terminals. Thecommunication interface 303 includes a wired communication interface, and may also include a wireless communication interface. The wired communication interface comprises a USB interface, a Micro USB interface and an Ethernet interface. The wireless communication interface may be a WLAN interface, a cellular network communication interface, a combination thereof, or the like.
In an exemplary embodiment, the terminal 30 provided by the embodiments of the present application further includes a power supply component that provides power to the various components of the terminal 30. The power components may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal 30.
A communications component configured to facilitate communications between the terminal 30 and other devices in a wired or wireless manner. The terminal 30 may access a wireless network based on a communication standard, such as WiFi, 4G or 5G, or a combination thereof. The communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. The communication component also includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
The same and similar parts among the various embodiments in the specification of the present application may be referred to each other. Especially, for the system and terminal embodiments, since the method therein is basically similar to the method embodiments, the description is relatively simple, and the relevant points can be referred to the description in the method embodiments.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.