CN106814629B - Method and device for controlling smart home - Google Patents
Method and device for controlling smart home Download PDFInfo
- Publication number
- CN106814629B CN106814629B CN201510849722.9A CN201510849722A CN106814629B CN 106814629 B CN106814629 B CN 106814629B CN 201510849722 A CN201510849722 A CN 201510849722A CN 106814629 B CN106814629 B CN 106814629B
- Authority
- CN
- China
- Prior art keywords
- user
- operation control
- script file
- target operation
- controls
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000006399 behavior Effects 0.000 claims abstract description 14
- 238000012545 processing Methods 0.000 claims description 26
- 238000013507 mapping Methods 0.000 claims description 13
- 238000007781 pre-processing Methods 0.000 claims description 6
- 238000012544 monitoring process Methods 0.000 abstract description 10
- 238000005516 engineering process Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 10
- 238000012986 modification Methods 0.000 description 8
- 230000004048 modification Effects 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 238000002474 experimental method Methods 0.000 description 5
- 230000000007 visual effect Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000009529 body temperature measurement Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Manufacturing & Machinery (AREA)
- Quality & Reliability (AREA)
- Selective Calling Equipment (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention relates to an intelligent home technology, and discloses a method and a device for controlling an intelligent home, which are used for solving the problem that an application scene of the intelligent home cannot be customized in the prior art. The method comprises the following steps: presenting an operation interface to a user, wherein the operation interface comprises operation controls to be selected, determining target operation controls selected by the user according to operation behaviors of the user, determining an execution sequence among the target operation controls set by the user and an execution mode of each target operation control, and generating a corresponding script file; compiling and operating the script file, and controlling the smart home according to the content of the script file. Therefore, the user can flexibly configure the application scene of the intelligent home of the Internet of things by dragging the operation control presented in the configuration interface according to the use requirement of the user, the complexity of monitoring the intelligent home is greatly reduced, and the monitoring strength and flexibility of the intelligent home are improved.
Description
Technical Field
The invention relates to an intelligent home technology, in particular to a method and a device for controlling an intelligent home.
Background
The application of the Internet of things relates to the comprehensive application of professional knowledge such as electronics, automatic control, network communication, embedded development, computers and the like. The smart home is an important component of the development of social informatization as an implementation mode of family informatization. The urgency for developing the smart home industry is highlighted in view of personal, public service and government requirements. Under the large background that the country greatly promotes the integration of industrialization and informatization, the smart home can be a relatively realistic breakthrough in the development process of the Internet of things industry.
The application scenes of the existing Internet of things smart home are usually configured by manufacturers fixedly, and users can only use the fixed scenes and cannot generate customized scenes according to personalized requirements, so that further application of the smart home is limited.
Disclosure of Invention
The embodiment of the invention provides a method and a device for controlling an intelligent home, which are used for solving the problem that an application scene of the intelligent home cannot be customized in the prior art.
The embodiment of the invention provides the following specific technical scheme:
a method for controlling smart home, comprising:
presenting an operation interface to a user, wherein the operation interface comprises an operation control to be selected, and the operation control represents an intelligent home which can be controlled or represents a logic event for controlling the intelligent home;
determining target operation controls selected by a user according to operation behaviors of the user, determining an execution sequence among the target operation controls set by the user and an execution mode of each target operation control, and generating corresponding script files;
compiling and operating the script file, and controlling the smart home according to the content of the script file.
Preferably, according to the operation behavior of the user, determining the target operation control selected by the user, determining the execution sequence among the target operation controls set by the user and the execution mode of each target operation control, and generating a corresponding script file;
creating a script file, recording target operation controls selected by a user as process nodes in the script file, recording the connection sequence of the process nodes according to connecting lines set between the target operation controls by the user, and configuring the execution mode of each process node according to the instruction of the user;
and saving the script file.
Preferably, after saving the script file, the method further comprises:
and according to a preset standard, respectively auditing each recorded target operation control and a corresponding execution mode thereof and the connection relation between the target operation controls, and prompting a user to modify when determining that configuration content which does not accord with the preset standard exists.
Preferably, further comprising:
acquiring and loading a user-defined configuration file according to a user instruction, wherein at least identification information of an operation control defined by the user, the operation function and a control command corresponding to each operation function are recorded in the configuration file;
and adding an operation control corresponding to the configuration file in an operation interface.
Preferably, further:
in the preprocessing stage, setting corresponding self-defined identifications aiming at each operation control for representing the operable device respectively, and establishing a mapping relation between each self-defined identification and the equipment identification of the corresponding operation control;
when the script file is configured, recording user-defined identifications of all operation controls which represent the operable device and are selected by a user in the script file according to an instruction of the user;
and when the script file is operated, respectively acquiring the equipment identifier of the corresponding operation control according to each recorded user-defined identifier and the mapping relation, and calling the corresponding operation control according to each acquired equipment identifier.
An apparatus for controlling smart home, comprising:
the display unit is used for presenting an operation interface to a user, the operation interface comprises an operation control to be selected, and the operation control represents an intelligent home which can be controlled or represents a logic event for controlling the intelligent home;
the first processing unit is used for determining target operation controls selected by a user according to operation behaviors of the user, determining an execution sequence among the target operation controls set by the user and an execution mode of each target operation control, and generating a corresponding script file;
and the second processing unit is used for compiling and running the script file and controlling the intelligent home according to the content of the script file.
Preferably, the first processing unit is configured to determine, according to an operation behavior of a user, a target operation control selected by the user, and an execution sequence between target operation controls and an execution mode of each target operation control set by the user, and generate a corresponding script file;
creating a script file, recording target operation controls selected by a user as process nodes in the script file, recording the connection sequence of the process nodes according to connecting lines set between the target operation controls by the user, and configuring the execution mode of each process node according to the instruction of the user;
and saving the script file.
Preferably, after saving the script file, the first processing unit is further configured to:
and according to a preset standard, respectively auditing each recorded target operation control and a corresponding execution mode thereof and the connection relation between the target operation controls, and prompting a user to modify when determining that configuration content which does not accord with the preset standard exists.
Preferably, the first processing unit is further configured to:
the method comprises the steps of obtaining and loading a configuration file customized by a user according to an instruction of the user, wherein at least identification information of an operation control customized by the user, the operation function and a control command corresponding to each operation function are recorded in the configuration file, and the operation control corresponding to the configuration file is added in an operation interface.
Preferably, the first processing unit is further configured to:
in the preprocessing stage, setting corresponding self-defined identifications aiming at each operation control for representing the operable device respectively, and establishing a mapping relation between each self-defined identification and the equipment identification of the corresponding operation control; when the script file is configured, recording the user-defined identification of each operation control representing the operable device selected by the user in the script file according to the instruction of the user;
the second processing unit is further to:
and when the script file is operated, respectively acquiring the equipment identifier of the corresponding operation control according to each recorded user-defined identifier and the mapping relation, and calling the corresponding operation control according to each acquired equipment identifier.
In the embodiment of the invention, a control device presents an operation interface to a user, the operation interface comprises an operation control to be selected, the operation control represents an intelligent home which can be controlled or represents a logic event for controlling the intelligent home, then the control device determines a target operation control selected by the user according to the operation behavior of the user, determines an execution sequence among the target operation controls set by the user and an execution mode of each target operation control, and generates a corresponding script file; and finally, the control device compiles and runs the script file, and controls the intelligent home according to the content of the script file. Therefore, a visual configuration interface of the intelligent home application scene is provided for the user, the user can flexibly configure the intelligent home application scene of the internet of things by dragging the operation control presented in the configuration interface according to the use requirement of the user, the complexity of intelligent home monitoring is greatly reduced, and the monitoring strength and flexibility of the intelligent home are improved.
Drawings
FIG. 1 is a schematic flow chart of controlling a smart home in the practice of the present invention;
fig. 2 is a schematic diagram of a visual configuration interface of an intelligent home application scene in an embodiment of the present invention;
fig. 3 is a flow chart illustrating configuration of an application scenario of an intelligent home in an embodiment of the present invention;
fig. 4 is a functional structure diagram of a control device according to an embodiment of the present invention.
Detailed Description
The problem that the intelligent home application scene cannot be customized in the prior art is solved. In the embodiment of the invention, a novel intelligent home control platform is provided, a visual UI environment can be provided for a user through the platform, the user can select operation controls according to the actual requirements of the user, the logic association among the operation controls is set, and the operation attributes of the operation controls are set, so that the application scene of the intelligent home of the Internet of things can be conveniently configured, and the application scene can be conveniently operated in a simulated experiment environment and a real environment.
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, in the embodiment of the present invention, a process of controlling an intelligent home is as follows:
step 100: the control device presents an operation interface to a user, the operation interface comprises operation controls to be selected, and one operation control represents the controlled device or represents a logic event for realizing control.
For example, in one embodiment, the user may be presented with an operator interface as shown in FIG. 2, in which various types of operator controls are presented to the user.
The operation control component can be an operated device, such as an intelligent household intelligent remote control television, an intelligent remote control air conditioner, a remote control fan, an electric curtain and the like, or a temperature sensor, a humidity sensor, a pressure sensor, an acceleration sensor and the like for assisting the intelligent household, wherein generally one intelligent household corresponds to one sensor; the operation control may also be a logic event for implementing the operation, such as a start mark, an end mark, a condition judgment, a connection line, a loop operation, and the like.
Step 110: the control device determines the target operation controls selected by the user according to the operation behaviors of the user, determines the execution sequence among the target operation controls set by the user and the execution mode of each target operation control, and generates corresponding script files.
After the control device presents various operation controls to be selected, a user can select the required operation control according to the self requirement and drag the selected operation control to the middle blank area of the operation interface, and the control device forms a flow chart according to the requirement and sets the execution mode of each operation control. Specifically, when step 110 is executed, the control device may create a script file (e.g., a python script file), record the target operation control selected by the user as a process node in the script file, record a connection sequence between the process nodes according to a connection line set between the target operation controls by the user, configure an execution mode of each process node according to an instruction of the user, and finally store the script file.
For example, referring to fig. 2, the operation control selected by the user includes a "start flag", a "temperature sensor", an "end flag", a "conditional operation", an "intelligent remote control television", and a "motorized window curtain", where the execution mode corresponding to the "temperature sensor" is "temperature measurement after start", the execution mode corresponding to the "conditional operation" is "determining whether the temperature is greater than or equal to 30 degrees", and the operation is executed for 24 times in 24 hours with an interval of one hour between every two times; the execution mode corresponding to the setting of the intelligent remote control air conditioner is opened when the temperature is more than 30 ℃, and is closed when the temperature is not more than 30 ℃; the execution mode corresponding to the electric curtain is that the electric curtain is opened when the angle is not more than 30 degrees and is closed when the angle is more than 30 degrees. Thus, the entire flowchart is drawn, and the control device may generate a python script file (or other types of script files), and record each target operation control in the flowchart and the corresponding execution mode in the python script file.
Further, after the script file is saved, the control device may check each recorded target operation control and the corresponding execution mode thereof and the connection relationship between the target operation controls based on a preset standard, and prompt the user to modify when it is determined that the configuration content does not meet the preset standard exists.
For example, if the user directly connects the two target operation controls of the "motorized window shades" and the "intelligent remote-control air conditioners" together, the user determines that the operation cannot be performed, and gives a modification prompt.
Another example is: the user does not set the cycle number and cycle interval of the target operation control of which the temperature is greater than 30 degrees, and generally, the target operation control is not judged only once to realize the self-adaptive adjustment of the temperature, so that the setting is judged to be unreasonable, and a modification prompt is given.
The user can flexibly set according to the actual requirement of the user, and the detailed description is omitted.
Step 120: compiling and operating the script file, and controlling the smart home according to the content of the script file.
The control device compiles the generated script file and runs the compiled executable file, and therefore the intelligent home can be controlled in the intelligent home simulation environment and the real intelligent home environment according to the set flow content.
Based on the above embodiment, in practical applications, a user may add an operation control at any time according to a self-requirement, that is, a configuration file (e.g., an xml file) may be set according to the self-requirement, where at least identification information of an operation control (which may be an intelligent home, a sensor, or a logic event) defined by the user, an possessed operation function, a control command corresponding to each operation function, and the like are recorded in the configuration file, and the control device may read and load the configuration file defined by the user through a call interface according to an instruction of the user, and add the operation control (which may generate a corresponding icon) corresponding to the configuration file in an operation interface, so that the user may use the defined operation control when subsequently setting a flow chart. By adopting the mode, the user can add new smart homes, sensors and logic events at any time, thereby greatly improving the expandability of the system and being capable of more flexibly adapting to the requirements of the user.
Further, in order to facilitate user operation, in the preprocessing stage, corresponding custom identifiers (such as a living room air conditioner, a bedroom air conditioner, a living room air conditioner temperature sensor and the like) can be respectively set for each operation control representing the operable device, and a mapping relationship is established between each custom identifier and the corresponding equipment identifier of the operation control, so that a user can remember the name of the operation control according to own use habits and configure a flow chart conveniently; correspondingly, when the script file is configured, the control device records the user-defined identification of each operation control which is selected by the user and represents the operable device in the script file according to the instruction of the user, and when the script file is operated, the control device obtains the equipment identification of the corresponding operation control according to each recorded user-defined identification and the mapping relation, and then calls the corresponding operation control according to each obtained equipment identification.
Taking an operation control as an example, the smart home and the sensors are in one-to-one correspondence, that is, each smart home has a sensor bound to itself, in practical application, each sensor is assigned with a short address with the length of 2 bytes, the short address is a unique device identifier of the sensor, and in general, the script file controls the sensor through the device identifier, but because the short address of the sensor is not easy to identify and cannot well represent information such as functions, positions and the like of the sensor, a user can set a self-defined name (such as a character string) as identification information of the sensor through the corresponding sensor, such as a temperature sensor of a television in a bedroom. Correspondingly, the control device needs to bind the short address and the corresponding custom name of each sensor (i.e., establish a mapping relationship), so that the custom name of the sensor can be used when a user performs flow configuration in an operation interface, and the control device obtains the corresponding short address based on the custom name configured by the user when running a script file so as to determine which sensor needs to be controlled. Therefore, readability and maintainability of the script are improved, and the whole application scene self-defining process is more convenient and humanized.
Meanwhile, the short addresses distributed by the sensor in the simulated experiment environment and the real environment are the same, so that the script file automatically generated in the simulated experiment environment can be conveniently transplanted to the real environment to be executed, and cross-platform operation is realized. Therefore, after the user completes the experiment in the simulated experiment environment, the generated python script file can be directly executed in the real environment without any modification, and the method has good portability and is greatly convenient for the user to use.
The above-mentioned configuration of the custom name is also applicable to other types of operation control, and is only described by taking a sensor as an example.
The above embodiments are further described in detail by a specific application scenario.
In this embodiment, two hash tables (hashtables) are respectively designed, which are referred to as an hsCtinf table and an hsLineInf table, the hsCtinf table is used to store each operation control and description information (i.e., a specific execution mode) corresponding to the operation control, and the hsLineInf table is used to store a connection relationship between the operation controls. Specific examples are shown in tables 1 and 2.
TABLE 1
(design of the hsCtlInf Table)
Key | Value |
Tag for uniquely identifying each operation control | Description information of operation control |
TABLE 2
(design of hsLineInf Table)
Key | Value |
Tag for uniquely identifying each connection | Tag of two operation controls connected by connecting line |
As shown in fig. 1, when a user drags an operation control to a drawing area on the right side in a left list in an operation interface, a control device records a custom identifier (i.e., Tag mark) of operation control, generates an operation object, and adds the operation object to an hsCtlInf table; and the user connects the two operation controls through the connecting line with the arrow, and after the connection is completed, the control device adds the connecting line serving as an object into the hsLineInf table. Certainly, the user can customize multiple processes at the same time, and the related information is added to the hsCtlInf table and the hsLineInf table.
Referring to fig. 3, in the embodiment of the present invention, details of generating a customized smart home application scene by using the hsctlnf table and the hslinelnf table are as follows:
step 300: all StratCtls (i.e., start markers) are obtained by traversing the hsCtlInf table.
Step 310: a python script file is created and initialization information is set.
The initialization information may refer to the number of loop executions, loop intervals, etc. of this Python script file.
Step 320: one StartCtl is selected, and the execution mode of StartCrl is configured according to the initialization information.
When the smart home application scenes are configured, each scene must use a "StartCtl" as the beginning of the flowchart, and use an "overtctl" as the end of the flowchart, and add other operation controls between the two according to the configuration content of the user. At this time, the StartCtl may be regarded as the currently chosen operation control.
Step 330: and traversing the hsLineInf table, and selecting the next operation control connected with the currently selected operation control.
Specifically, the next operation control may be determined according to the identifier of the operation control recorded in the hsLineInf table, where the two ends of each connection line are connected to each other.
Step 340: and recording the execution mode configured corresponding to the next operation control in the phython script file.
The control device can set the execution mode corresponding to each operation control according to the configuration content of the user, for example, the monitoring condition information of the operation control of 'condition judgment' can be set, so that the real-time monitoring of a certain application scene is realized, and when the monitoring condition is met, other operation controls (such as an intelligent television) are controlled according to the setting of the user.
Step 350: judging whether an OverCtl (namely an end mark) is read or not; if yes, go to step 360; otherwise, return to step 330.
Preferably, a user can use a plurality of StartCtl and OverCtl in one phython script file to realize real-time monitoring of a plurality of application scenes, the implementation process of each application scene and the execution mode of the related operation control can be set independently, the implementation process is independent and not interfered with each other during operation, and the control requirements on the smart home in real life can be well met.
Step 360: is there a new StartCtl? If yes, go back to step 320; otherwise, the current flow is ended.
Based on the above embodiments, referring to fig. 4, in an embodiment of the present invention, a control device for implementing smart home control at least includes a display unit 40, a first processing unit 41, and a second processing unit 42, wherein,
the display unit 40 is used for presenting an operation interface to a user, the operation interface comprises an operation control to be selected, and the operation control represents an intelligent home which can be controlled or represents a logic event for controlling the intelligent home;
the first processing unit 41 is configured to determine, according to an operation behavior of a user, a target operation control selected by the user, determine an execution sequence between the target operation controls set by the user and an execution mode of each target operation control, and generate a corresponding script file;
and the second processing unit 42 is configured to compile and run the script file, and control the smart home according to the content of the script file.
Preferably, the first processing unit 40 is configured to determine, according to the operation behavior of the user, a target operation control selected by the user, and an execution sequence between target operation controls and an execution manner of each target operation control set by the user, and generate a corresponding script file;
creating a script file, recording target operation controls selected by a user as process nodes in the script file, recording the connection sequence of the process nodes according to connecting lines set between the target operation controls by the user, and configuring the execution mode of each process node according to the instruction of the user;
and saving the script file.
Preferably, after saving the script file, the first processing unit 41 is further configured to:
and according to a preset standard, checking each recorded target operation control and the corresponding execution mode thereof and the connection relation among the target operation controls, and prompting a user to modify when determining that the configuration content which does not accord with the preset standard exists.
Preferably, the first processing unit 41 is further configured to:
and acquiring and loading a user-defined configuration file according to a user instruction, wherein at least the identification information of the user-defined operation control, the operation functions and the control commands corresponding to the operation functions are recorded in the configuration file, and the operation control corresponding to the configuration file is added in an operation interface.
Preferably, the first processing unit 41 is further configured to:
in the preprocessing stage, setting corresponding self-defined identifications aiming at each operation control for representing the operable device respectively, and establishing a mapping relation between each self-defined identification and the equipment identification of the corresponding operation control; when the script file is configured, recording the user-defined identification of each operation control representing the operable device selected by the user in the script file according to the instruction of the user;
the second processing unit 42 is further configured to:
and when the script file is operated, acquiring the equipment identifier of the corresponding operation control according to each recorded user-defined identifier and the mapping relation, and calling the corresponding operation control according to each acquired equipment identifier.
In summary, in the embodiment of the present invention, the control device presents an operation interface to the user, where the operation interface includes an operation control to be selected, the operation control represents an intelligent home that can be controlled or represents a logic event for controlling the intelligent home, and then, the control device determines, according to an operation behavior of the user, a target operation control selected by the user, determines an execution sequence between the target operation controls set by the user and an execution manner of each target operation control, and generates a corresponding script file; and finally, the control device compiles and runs the script file, and controls the intelligent home according to the content of the script file. Therefore, a visual configuration interface of the intelligent home application scene is provided for the user, the user can flexibly configure the intelligent home application scene of the internet of things by dragging the operation control presented in the configuration interface according to the use requirement of the user, the complexity of intelligent home monitoring is greatly reduced, and the monitoring strength and flexibility of the intelligent home are improved.
On the other hand, the embodiment of the invention also provides a compiling function, the control device can assist the user in checking errors in the configured flow chart, provide help information, enable the user to easily realize the configuration of the intelligent home application scene, and the user can save the intelligent home application scene which is not configured yet and can open the continuous configuration again when needed.
Furthermore, the scheme provided by the embodiment of the invention has good expandability, and the interface is provided to allow the user to add the self-defined operation control, so that the user can self-define a new intelligent home application scene, and the control mode of the intelligent home is greatly enriched. Preferably, the invention is implemented with full names, and the configured flow chart can adopt a universal protocol when the user configures the intelligent home application scene, so that various intelligent home application scenes can be completed through one set of universal protocol, thereby facilitating the user operation.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as an apparatus, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of apparatus, devices (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.
Claims (10)
1. A method for controlling smart home is characterized by comprising the following steps:
presenting an operation interface to a user, wherein the operation interface comprises an operation control to be selected, and the operation control represents an intelligent home which can be controlled or represents a logic event for controlling the intelligent home;
determining target operation controls selected by a user according to operation behaviors of the user, determining an execution sequence among the target operation controls set by the user and an execution mode of each target operation control, generating corresponding script files, setting corresponding custom identifiers for each operation control representing an operable device in a preprocessing stage, and establishing a mapping relation between each custom identifier and an equipment identifier of the corresponding operation control, wherein the custom identifiers are set by the user according to own use habits;
compiling and operating the script file, and controlling the smart home according to the content of the script file.
2. The method of claim 1, wherein the target operation controls selected by the user are determined according to the operation behaviors of the user, the execution sequence among the target operation controls set by the user and the execution mode of each target operation control are determined, and corresponding script files are generated;
creating a script file, recording target operation controls selected by a user as process nodes in the script file, recording the connection sequence of the process nodes according to connecting lines set between the target operation controls by the user, and configuring the execution mode of each process node according to the instruction of the user;
and saving the script file.
3. The method of claim 1, wherein after saving the script file, further comprising:
and according to a preset standard, respectively auditing each recorded target operation control and a corresponding execution mode thereof and the connection relation between the target operation controls, and prompting a user to modify when determining that configuration content which does not accord with the preset standard exists.
4. The method of claim 1, 2, or 3, further comprising:
acquiring and loading a user-defined configuration file according to a user instruction, wherein at least identification information of an operation control defined by the user, the operation function and a control command corresponding to each operation function are recorded in the configuration file;
and adding an operation control corresponding to the configuration file in an operation interface.
5. The method of claim 1, 2 or 3, further comprising:
when the script file is configured, recording user-defined identifications of all operation controls which represent the operable device and are selected by a user in the script file according to an instruction of the user;
and when the script file is operated, respectively acquiring the equipment identifier of the corresponding operation control according to each recorded user-defined identifier and the mapping relation, and calling the corresponding operation control according to each acquired equipment identifier.
6. The utility model provides a control smart home's device which characterized in that includes:
the display unit is used for presenting an operation interface to a user, the operation interface comprises an operation control to be selected, and the operation control represents an intelligent home which can be controlled or represents a logic event for controlling the intelligent home;
the first processing unit is used for determining target operation controls selected by a user according to operation behaviors of the user, determining an execution sequence among the target operation controls set by the user and an execution mode of each target operation control, generating corresponding script files, setting corresponding custom identifiers for each operation control representing the operable device in a preprocessing stage, and establishing a mapping relation between each custom identifier and the equipment identifier of the corresponding operation control; when the script file is configured, recording user-defined identifications, which are selected by a user and used for representing each operation control of the operable device, in the script file according to an instruction of the user, wherein the user-defined identifications are set by the user according to the use habit of the user;
and the second processing unit is used for compiling and running the script file and controlling the intelligent home according to the content of the script file.
7. The apparatus according to claim 6, wherein the first processing unit is configured to, when determining, according to the operation behavior of the user, a target operation control selected by the user, and determining an execution order between the target operation controls and an execution manner of each target operation control set by the user, and generating a corresponding script file;
creating a script file, recording target operation controls selected by a user as process nodes in the script file, recording the connection sequence of the process nodes according to connecting lines set between the target operation controls by the user, and configuring the execution mode of each process node according to the instruction of the user;
and saving the script file.
8. The apparatus of claim 6, wherein after saving the script file, the first processing unit is further to:
and according to a preset standard, respectively auditing each recorded target operation control and a corresponding execution mode thereof and the connection relation between the target operation controls, and prompting a user to modify when determining that configuration content which does not accord with the preset standard exists.
9. The apparatus as recited in claim 6, 7 or 8, said first processing unit to further:
the method comprises the steps of obtaining and loading a configuration file customized by a user according to an instruction of the user, wherein at least identification information of an operation control customized by the user, the operation function and a control command corresponding to each operation function are recorded in the configuration file, and the operation control corresponding to the configuration file is added in an operation interface.
10. The apparatus of claim 6, 7 or 8,
the second processing unit is further to:
and when the script file is operated, respectively acquiring the equipment identifier of the corresponding operation control according to each recorded user-defined identifier and the mapping relation, and calling the corresponding operation control according to each acquired equipment identifier.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510849722.9A CN106814629B (en) | 2015-11-27 | 2015-11-27 | Method and device for controlling smart home |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510849722.9A CN106814629B (en) | 2015-11-27 | 2015-11-27 | Method and device for controlling smart home |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106814629A CN106814629A (en) | 2017-06-09 |
CN106814629B true CN106814629B (en) | 2021-03-12 |
Family
ID=59103507
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510849722.9A Active CN106814629B (en) | 2015-11-27 | 2015-11-27 | Method and device for controlling smart home |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106814629B (en) |
Families Citing this family (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107577719A (en) * | 2017-08-11 | 2018-01-12 | 杭州电魂网络科技股份有限公司 | A kind of intelligent nested type function control method and device |
CN109507893B (en) * | 2017-09-14 | 2021-10-29 | 宁波方太厨具有限公司 | Self-learning alarm control method for intelligent household equipment |
CN107991895B (en) * | 2017-11-28 | 2021-09-07 | 深圳市东微智能科技股份有限公司 | Multi-system control method and device, computer equipment and storage medium |
CN108170512A (en) * | 2017-12-27 | 2018-06-15 | 德阳源创能源科技有限公司 | Script drives analysis method and device |
CN110231959A (en) * | 2018-03-06 | 2019-09-13 | 优酷网络技术(北京)有限公司 | A kind of synchronous method of manipulation instruction, system and control centre |
CN108628602A (en) * | 2018-05-10 | 2018-10-09 | 武汉思美特云智慧科技有限公司 | Implementation method of customized smart home APP |
CN109445785A (en) * | 2018-10-11 | 2019-03-08 | 平安科技(深圳)有限公司 | Workflow tool creation method, device and computer storage medium |
CN109541950A (en) * | 2018-11-16 | 2019-03-29 | 格力电器(武汉)有限公司 | Control method, device and equipment of intelligent household equipment |
CN109765793B (en) * | 2018-12-07 | 2022-04-12 | 深圳绿米联创科技有限公司 | Equipment state display method and device, terminal and storage medium |
CN109634596B (en) * | 2018-12-11 | 2021-10-22 | 清华大学 | Flowchart-based visual programming tool |
CN110071921B (en) * | 2019-04-19 | 2022-01-18 | 广东中安金狮科创有限公司 | Internet of things platform access method, device, computer readable storage medium and system |
CN111865634B (en) * | 2019-04-29 | 2022-03-11 | 西门子(中国)有限公司 | Method and apparatus for generating a configuration file of a site in an Internet of Things system |
CN111970314A (en) * | 2019-05-20 | 2020-11-20 | 京东方科技集团股份有限公司 | Method and device for creating action resource, electronic equipment and storage medium |
CN110177033B (en) * | 2019-05-21 | 2021-08-31 | 四川虹美智能科技有限公司 | Method and terminal for controlling household appliances based on Internet of things and Internet of things system |
CN110225246B (en) * | 2019-05-28 | 2021-07-20 | 北京字节跳动网络技术有限公司 | Event script generation method and device, electronic equipment and computer readable storage medium |
CN111452042B (en) * | 2020-03-25 | 2021-09-03 | 慧灵科技(深圳)有限公司 | Control method and system of mechanical arm and control terminal |
CN112413847B (en) * | 2020-11-20 | 2022-03-18 | 珠海格力电器股份有限公司 | Function customizing method, device, system and storage medium |
CN113076093B (en) * | 2021-02-26 | 2022-11-11 | 厦门科灿信息技术有限公司 | Power monitoring system configuration method and device and terminal |
CN114356448A (en) * | 2021-12-28 | 2022-04-15 | 北京光启元数字科技有限公司 | Object control method, device, equipment and medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102880158A (en) * | 2012-10-23 | 2013-01-16 | 北京林业大学 | Remote wireless intelligent home control system |
CN103136406A (en) * | 2011-12-03 | 2013-06-05 | 南京南瑞继保电气有限公司 | Method for automatic generation of function code for simulation through visualization application program |
WO2013130532A1 (en) * | 2012-02-29 | 2013-09-06 | Fisher Controls International Llc | Scheduling actions in a field device |
CN103870260A (en) * | 2012-12-14 | 2014-06-18 | 腾讯科技(深圳)有限公司 | Method and system for service interface development |
CN103984626A (en) * | 2014-05-13 | 2014-08-13 | 华为技术有限公司 | Method and device for generating test-case script |
CN103984246A (en) * | 2014-04-14 | 2014-08-13 | 美的集团股份有限公司 | Household appliance with executable script and control method thereof |
CN104536397A (en) * | 2014-12-09 | 2015-04-22 | 中国电子科技集团公司第十五研究所 | 3D virtual smart home interaction method |
CN104698950A (en) * | 2015-03-25 | 2015-06-10 | 广州视源电子科技股份有限公司 | Peripheral device control method, microcontroller, upper computer and system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102034289B (en) * | 2010-12-15 | 2013-03-27 | 广州致远电子股份有限公司 | Graphical programmable security linkage system |
US9183163B2 (en) * | 2012-06-27 | 2015-11-10 | Ubiquiti Networks, Inc. | Method and apparatus for distributed control of an interfacing-device network |
US9772612B2 (en) * | 2013-12-11 | 2017-09-26 | Echostar Technologies International Corporation | Home monitoring and control |
-
2015
- 2015-11-27 CN CN201510849722.9A patent/CN106814629B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103136406A (en) * | 2011-12-03 | 2013-06-05 | 南京南瑞继保电气有限公司 | Method for automatic generation of function code for simulation through visualization application program |
WO2013130532A1 (en) * | 2012-02-29 | 2013-09-06 | Fisher Controls International Llc | Scheduling actions in a field device |
CN102880158A (en) * | 2012-10-23 | 2013-01-16 | 北京林业大学 | Remote wireless intelligent home control system |
CN103870260A (en) * | 2012-12-14 | 2014-06-18 | 腾讯科技(深圳)有限公司 | Method and system for service interface development |
CN103984246A (en) * | 2014-04-14 | 2014-08-13 | 美的集团股份有限公司 | Household appliance with executable script and control method thereof |
CN103984626A (en) * | 2014-05-13 | 2014-08-13 | 华为技术有限公司 | Method and device for generating test-case script |
CN104536397A (en) * | 2014-12-09 | 2015-04-22 | 中国电子科技集团公司第十五研究所 | 3D virtual smart home interaction method |
CN104698950A (en) * | 2015-03-25 | 2015-06-10 | 广州视源电子科技股份有限公司 | Peripheral device control method, microcontroller, upper computer and system |
Also Published As
Publication number | Publication date |
---|---|
CN106814629A (en) | 2017-06-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106814629B (en) | Method and device for controlling smart home | |
US20180341241A1 (en) | Cloud-Based Integration Rule Engine to Enable Plug and Play Device for Building Automation Systems | |
CN110955420B (en) | User-defined equipment control method, device, equipment and readable medium | |
US20150371532A1 (en) | System and method for applying over the air updates to a universal remote control device | |
EP3142005A1 (en) | Method for creating context-aware application and user terminal | |
CN111200545A (en) | Intelligent device access method and device | |
US20170131688A1 (en) | Adaptive control and management for electronic device | |
CN112305924B (en) | Control method and device of household appliance, electronic equipment and storage medium | |
CN114358326A (en) | Household appliance fault processing method, terminal and readable storage medium | |
CN107479531A (en) | The access device communication protocol frame format information of Embedded PLC remotely determines method | |
CN109218085A (en) | Equipment automatization and scene configuration management method, device and mobile terminal | |
US20220035617A1 (en) | A system and method for producing an update report | |
CN105335431A (en) | Interface file processing method and apparatus and control message processing method and apparatus | |
CN107015831A (en) | A kind of client updating management method upgraded based on server end and system | |
US20180365789A1 (en) | Device management apparatus, device management method, and non-transitory computer readable storage medium | |
CN114385287A (en) | Display content determining method and device, electronic equipment and storage medium | |
CN103246605A (en) | Method and system for collocating remote controller key values based on xml (extensive markup language) | |
CN117555810B (en) | Virtual debugging method, device, equipment and storage medium of Internet of things application | |
CN103336710A (en) | Method and system for constructing virtual equipment widget | |
CN105094722A (en) | Control method and control device thereof for supporting attribute display of multi-screen system | |
CN112738775B (en) | Centralized control equipment and topology method, system and equipment thereof | |
RU2294015C2 (en) | Method for automatic modeling of system for controlling process and system for controlling process | |
CN112526936A (en) | Parameter control method, parameter control equipment and system | |
KR20160052027A (en) | Control map based diagram generating method and apparatus thereof | |
CN115622829A (en) | Smart home Internet of things interaction platform building method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230117 Address after: 100085 1st floor, building 1, yard 5, Shangdi East Road, Haidian District, Beijing Patentee after: DATANG MOBILE COMMUNICATIONS EQUIPMENT Co.,Ltd. Patentee after: CITIC Mobile Communication Technology Co.,Ltd. Address before: 100083 No. 29, Haidian District, Beijing, Xueyuan Road Patentee before: DATANG MOBILE COMMUNICATIONS EQUIPMENT Co.,Ltd. |
|
TR01 | Transfer of patent right |