Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a schematic flow chart of a light control method according to an embodiment of the present invention, and as shown in fig. 1, the light control method includes:
s101: and acquiring the walking data of the user through the intelligent carpet.
With the continuous progress of the intelligent home technology and the improvement of the living standard of the user, more and more household appliances can realize intelligent operation. At present, in the control process of light in a household, a user needs to control the on and off of the light through a remote control device, a voice control device or a light switch device.
In the embodiment of the invention, the walking data of the user can be acquired through the intelligent carpet, and the light is controlled to be turned on and off.
Alternatively, a plurality of contact sensors may be provided in a home carpet, the plurality of contact sensors being arranged to form a contact sensor matrix, and the user walking data being acquired by the contact sensor matrix.
The user walking data can be acquired through the contact sensor matrix by adopting the related technology, and the details are not repeated herein.
In embodiments of the present invention, the user walking data may be data of the user's sole surface, or sole surface, such as position data, foot orientation data, and walking direction data, in particular.
Specifically, the user can open the convenient control function of light in advance, and when the user walked on intelligent carpet, the contact sensor matrix in the intelligent carpet acquireed user's positional data, foot orientation data to and walking direction data, open the control of perhaps closing light in the family through user walking data in order to realize.
S102: and acquiring the walking information of the user according to the walking data of the user, and judging whether the walking information of the user is preset walking information.
In an embodiment of the present invention, the walking information of the user may be identified by a type of the walking information of the user, for example, entrance walking information, exit walking information, or still walking information. In an embodiment of the invention, the walking information of the user is obtained through the position data, the foot orientation data and the walking direction data of the user, which are obtained through the contact sensor matrix in the intelligent carpet.
In an embodiment of the present invention, the preset walking information may be preset by an intelligent carpet built-in program. The preset walking information can be identified by the type of the preset walking information, for example, the preset walking information is door entering walking information and door exiting walking information, and specifically, the control instructions corresponding to different types of the preset walking information can be preset by an intelligent carpet built-in program.
For example, if the user's walking information is entrance walking information or exit walking information, and the preset walking information is entrance walking information and exit walking information, the user's walking information is the preset walking information, and when the user's walking information is static walking information, the user's walking information is not the preset walking information.
Optionally, acquiring walking information of the user according to the walking data of the user, and determining whether the walking information of the user is preset walking information, including: acquiring the type of the walking information of the user according to the position data, the foot orientation data and the walking direction data in the walking data of the user; and judging whether the walking information of the user is preset walking information or not according to the type of the walking information of the user.
S103: and if the walking information of the user is preset walking information, generating a corresponding control instruction according to the walking information of the user, and controlling the light in the family according to the corresponding control instruction.
In the embodiment of the invention, when the walking information of the user is the preset walking information, the type of the preset walking information corresponding to the walking information of the user needs to be judged so as to trigger the intelligent carpet to generate the control instruction corresponding to the type of the preset walking information.
For example, if the walking information of the user is the entrance walking information, and the preset walking information is the entrance walking information and the exit walking information, the type of the preset walking information corresponding to the walking information of the user is the entrance walking information, and a control instruction corresponding to the entrance walking information is generated to control the light in the family.
Optionally, if the walking information of the user is preset walking information, generating a corresponding control instruction according to the walking information of the user, including: acquiring the type of preset walking information corresponding to the walking information of the user according to the type of the walking information of the user, wherein the type of the preset walking information comprises entrance walking information and exit walking information; and generating a corresponding control instruction according to the corresponding relation between the type of the preset walking information and the control instruction.
In this embodiment, through the walking information that obtains the user according to user walking data, when user's walking information is preset walking information, generate corresponding control command according to user's walking information to light in controlling the family according to corresponding control command, can realize the intelligent control of light in the family, effectively promote user's use and experience.
Fig. 2 is a schematic flow chart of a light control method according to another embodiment of the present invention, and as shown in fig. 2, step S102 in the embodiment shown in fig. 1 includes the following steps:
s201: and acquiring the type of the walking information of the user according to the position data, the foot orientation data and the walking direction data in the walking data of the user.
In an embodiment of the present invention, the walking information of the user may be identified by a type of the walking information of the user, for example, entrance walking information, exit walking information, or still walking information. In an embodiment of the present invention, the type of the walking information of the user may be obtained through the position data, the foot orientation data, and the walking direction data of the user, which are obtained by the contact sensor matrix in the smart carpet.
In the step, the walking information of the user is identified by the intelligent carpet according to the type of the walking information of the user by acquiring the type of the walking information of the user, so that linkage of the control effect of the intelligent carpet and the light is supported, and the intelligent control effect of the intelligent carpet is improved.
S202: and judging whether the walking information of the user is preset walking information or not according to the type of the walking information of the user.
In an embodiment of the present invention, the preset walking information may be preset by an intelligent carpet built-in program. The preset walking information can be identified by the type of the preset walking information, for example, the preset walking information is door entering walking information and door exiting walking information, and specifically, the control instructions corresponding to different types of the preset walking information can be preset by an intelligent carpet built-in program.
For example, if the user's walking information is entrance walking information or exit walking information, and the preset walking information is entrance walking information and exit walking information, the user's walking information is the preset walking information, and when the user's walking information is static walking information, the user's walking information is not the preset walking information.
In the step, the walking information of the user is compared with the preset walking information according to the type of the walking information of the user, so that the intelligent control effect of the intelligent carpet is improved.
In this embodiment, through the type that acquires user's walking information, realize that intelligent carpet is according to the type sign user's of user's walking information to support the linkage of the control effect of intelligent carpet and light, promote the intelligent control effect of intelligent carpet, realize comparing user's walking information and preset walking information through the type according to user's walking information, further promote the intelligent control effect of intelligent carpet.
Fig. 3 is a schematic flow chart of a light control method according to another embodiment of the present invention, and as shown in fig. 3, step S103 in the embodiment shown in fig. 1 includes the following steps:
s301: and acquiring the type of preset walking information corresponding to the walking information of the user according to the type of the walking information of the user, wherein the type of the preset walking information comprises entrance walking information and exit walking information.
In the embodiment of the invention, when the walking information of the user is the preset walking information, the type of the preset walking information corresponding to the walking information of the user needs to be acquired so as to trigger the intelligent carpet to generate the control instruction corresponding to the type of the preset walking information.
For example, if the walking information of the user is the entrance walking information, and the preset walking information is the entrance walking information and the exit walking information, the type of the preset walking information corresponding to the walking information of the user is the entrance walking information.
In this step, through obtaining the type of the preset walking information corresponding to the walking information of the user, the intelligent carpet can be triggered to generate different control instructions according to the walking information of different users, and linkage of the control effect of the intelligent carpet and the light is achieved.
S302: and generating a corresponding control instruction according to the corresponding relation between the type of the preset walking information and the control instruction.
The corresponding relation between the type of the preset walking information and the control instruction is preset by an intelligent carpet built-in program.
For example, if the walking information of the user is the entrance walking information, and the preset walking information is the entrance walking information and the exit walking information, the type of the preset walking information corresponding to the walking information of the user is the entrance walking information, and the intelligent carpet generates a control instruction corresponding to the entrance walking information to control the light in the home.
Optionally, generating a corresponding control instruction according to a correspondence between the type of the preset walking information and the control instruction, including: if the type of the preset walking information corresponding to the walking information of the user is door entering walking information, generating a first control instruction corresponding to the door entering walking information, wherein the first control instruction is used for controlling the opening of light in a family; and if the type of the preset walking information corresponding to the walking information of the user is the outgoing walking information, generating a second control instruction corresponding to the outgoing walking information, wherein the second control instruction is used for controlling the light in the family to be turned off.
In this step, when the type of the preset walking information that the walking information of the user corresponds is the entering walking information, the light in the family is controlled to be turned on, and when the type of the preset walking information that the walking information of the user corresponds is the exiting walking information, the light in the family is controlled to be turned off, so that the control of turning on and turning off the light in the family through the walking data of the user is realized, the intelligent control of the light in the family through the intelligent carpet is realized, and the use experience of the user is effectively improved.
In this embodiment, through the type of acquireing the preset walking information that corresponds with user's walking information, can trigger intelligent carpet and generate different control command according to user's walking information of difference, realize the linkage of the control effect of intelligent carpet and light. When the type of the walking information of predetermineeing that corresponds at user's walking information is for entering the walking information, light among the control family is opened, when the type of the walking information of predetermineeing that corresponds at user's walking information is for going out the walking information, light among the control family is closed, and the control of opening and closing is carried out to light among the family through user walking data, realizes the intelligent control of light among the intelligent carpet to the family, effectively promotes user's use and experiences.
Fig. 4 is a schematic structural diagram of a lighting control device according to another embodiment of the present invention, and as shown in fig. 4, the lighting control device includes:
the smart carpet 40, which includes a contact sensor 401, a determination module 402, and a control module 403, wherein,
and a contact sensor 401 for acquiring walking data of the user.
The determining module 402 is configured to obtain walking information of the user according to the walking data of the user, and determine whether the walking information of the user is preset walking information.
Optionally, the determining module 402 is specifically configured to: acquiring the type of the walking information of the user according to the position data, the foot orientation data and the walking direction data in the walking data of the user; and judging whether the walking information of the user is preset walking information or not according to the type of the walking information of the user.
And the control module 403 is configured to generate a corresponding control instruction according to the walking information of the user when the walking information of the user is the preset walking information, and control the light in the family according to the corresponding control instruction.
Optionally, the control module 403 is specifically configured to: acquiring the type of preset walking information corresponding to the walking information of the user according to the type of the walking information of the user, wherein the type of the preset walking information comprises entrance walking information and exit walking information; and generating a corresponding control instruction according to the corresponding relation between the type of the preset walking information and the control instruction.
Optionally, the control module 403 is further specifically configured to: if the type of the preset walking information corresponding to the walking information of the user is door entering walking information, generating a first control instruction corresponding to the door entering walking information, wherein the first control instruction is used for controlling the opening of light in a family; and if the type of the preset walking information corresponding to the walking information of the user is the outgoing walking information, generating a second control instruction corresponding to the outgoing walking information, wherein the second control instruction is used for controlling the light in the family to be turned off.
It should be noted that the foregoing explanation of the embodiment of the light control method is also applicable to the light control device of the embodiment, and the implementation principle is similar, and is not described herein again.
In this embodiment, through the walking information that obtains the user according to user walking data, when user's walking information is preset walking information, generate corresponding control command according to user's walking information to light in controlling the family according to corresponding control command, can realize the intelligent control of light in the family, effectively promote user's use and experience.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.