WO2016070823A1 - Instruction processing method and device - Google Patents
Instruction processing method and device Download PDFInfo
- Publication number
- WO2016070823A1 WO2016070823A1 PCT/CN2015/093858 CN2015093858W WO2016070823A1 WO 2016070823 A1 WO2016070823 A1 WO 2016070823A1 CN 2015093858 W CN2015093858 W CN 2015093858W WO 2016070823 A1 WO2016070823 A1 WO 2016070823A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- instruction
- predetermined rule
- execution
- condition
- learning control
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 14
- 238000000034 method Methods 0.000 claims abstract description 48
- 238000012544 monitoring process Methods 0.000 claims abstract description 21
- 230000004044 response Effects 0.000 claims description 48
- 238000012986 modification Methods 0.000 claims description 35
- 230000004048 modification Effects 0.000 claims description 35
- 238000012545 processing Methods 0.000 claims description 19
- 230000007613 environmental effect Effects 0.000 claims description 15
- 238000012790 confirmation Methods 0.000 claims description 8
- 238000005516 engineering process Methods 0.000 abstract description 5
- 238000012937 correction Methods 0.000 description 55
- 238000004891 communication Methods 0.000 description 24
- 238000010586 diagram Methods 0.000 description 20
- 238000004458 analytical method Methods 0.000 description 10
- 238000005457 optimization Methods 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 238000012549 training Methods 0.000 description 6
- 230000006399 behavior Effects 0.000 description 5
- 238000007726 management method Methods 0.000 description 5
- 230000002093 peripheral effect Effects 0.000 description 5
- 238000013480 data collection Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 4
- 238000007405 data analysis Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 238000004378 air conditioning Methods 0.000 description 2
- 230000006698 induction Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003542 behavioural effect Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 239000000779 smoke Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000004083 survival effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Definitions
- the present invention relates to the field of communications, and in particular to an instruction processing method and apparatus.
- a smart home system includes a smart gateway device and a peripheral controlled terminal, and a platform device deployed on the network side.
- the intelligent gateway device manages and controls peripheral controlled terminals such as cameras, security sensors, white goods, etc. through wireless protocols such as Zigbee and WIreless-Fidelity (WLAN).
- WLAN wireless protocols
- the intelligent gateway accesses the external network platform through the Internet interface, and uniformly manages the home user information and control command forwarding through the network platform, thereby realizing the remote control of the smart home system based on the mobile terminal, for example, controlling the home appliance lighting system through the smart phone.
- the switch, the security system is disarmed, and the home security alarm is obtained.
- the operation mode of the smart home system is mainly passively accepting the manual control of the user, or controlling according to the personalized pre-configured data of the user.
- the manual control mode after the user returns home, the security system is manually disarmed through the remote controller or the smart phone; after the user leaves the home, the security system is manually armed through the smart phone.
- User personalized pre-configuration mode set the time schedule for the air-conditioning cycle to be turned on, or pre-configure the relationship between the infrared detector and the camera perspective.
- the pre-configuration method may not meet the user's flexibility requirements and lose the use value in actual use. .
- the present invention provides an instruction processing method and apparatus to at least solve the problem that the related art cannot flexibly control the operation mode of the smart home system.
- an instruction processing method comprising: monitoring a condition for triggering execution of an instruction; and controlling execution of the instruction if the condition meets a predetermined rule, wherein the predetermined rule At least the learning of the corresponding condition when the instruction is executed one or more times is obtained.
- controlling the execution of the instruction includes: when the condition meets the predetermined rule, modifying the predetermined rule; and receiving the prompt for the modification Responding to: controlling execution of the instruction according to the response, wherein the instruction is executed in a case where the predetermined rule is not revised according to the response confirmation; in a case where the predetermined rule is revised according to the response confirmation And executing the instruction if the condition meets the revised predetermined rule.
- the response is used to indicate at least one of: the instruction is not executed for the case that the condition meets the predetermined rule for the time; the predetermined rule is cancelled; after the instruction is executed, no longer And modifying the predetermined rule; after the executing the instruction, the condition prompts the modification when the condition meets the predetermined rule or the revised predetermined rule.
- performing the modification prompt on the predetermined rule includes: determining, according to a pre-configured option, whether the modification prompt is performed on the predetermined rule, and if the determination result is yes, performing the modification prompt; If the determination result is no, controlling the execution of the instruction includes: executing the instruction.
- the predetermined rule is stored locally or from other network elements.
- the predetermined rule includes at least one of: time, account information, user location information, environment information, status information of a device that executes the instruction, or an instruction that has been sent to the device, where the account information Used to identify the device.
- the monitoring of the condition for triggering the execution instruction comprises: monitoring the condition for triggering the execution instruction according to a preset policy; or, after receiving the operation instruction, monitoring the condition for triggering the execution instruction.
- the method further includes: sending the corresponding condition when the instruction is executed one or more times to another network element, where the other network element is once Or learning the corresponding condition when the instruction is executed multiple times to obtain the network element of the predetermined rule; or learning the corresponding condition when the instruction is executed one or more times locally to obtain the predetermined rule.
- learning the corresponding condition when the instruction is executed one or more times to obtain the predetermined rule comprises: obtaining the predetermined by combining or inducting the same or similarity in the condition corresponding to the instruction multiple times. rule.
- another instruction processing method including: receiving a condition corresponding to one or more executions of an instruction; learning the condition to obtain a predetermined rule, wherein the predetermined rule The subject for instructing to receive the predetermined rule controls execution of the instruction if the condition meets the predetermined rule; transmitting the predetermined rule.
- the predetermined rule includes at least one of: time, account information, user location information, environment information, status information of a device that executes the instruction, or an instruction that has been sent to the device, where the account information Used to identify the device.
- learning the condition to obtain the predetermined rule comprises: obtaining the predetermined rule by combining or inducting the same or similarities in the conditions corresponding to the instruction multiple times.
- an instruction processing apparatus includes: a monitoring module configured to monitor a condition for triggering an execution instruction; and a control module configured to control the condition if the condition meets a predetermined rule Execution of an instruction, wherein the predetermined rule is obtained by learning at least a condition corresponding to one or more executions of the instruction.
- control module includes: a prompting unit, configured to: when the condition meets the predetermined rule, Determining a predetermined rule to perform a modification prompt; the receiving unit is configured to receive a response to the modification prompt; the first execution unit is configured to control execution of the instruction according to the response, wherein the non-revision is confirmed according to the response In the case of the predetermined rule, the instruction is executed; the second execution unit is configured to, in the case of confirming the predetermined rule according to the response confirmation, in a case where the condition meets the revised predetermined rule, Execute the instructions.
- a prompting unit configured to: when the condition meets the predetermined rule, Determining a predetermined rule to perform a modification prompt
- the receiving unit is configured to receive a response to the modification prompt
- the first execution unit is configured to control execution of the instruction according to the response, wherein the non-revision is confirmed according to the response
- the instruction is executed
- the second execution unit is configured to, in the case of confirming the predetermined rule according to the response confirmation, in
- the response is used to indicate at least one of: the instruction is not executed for the case that the condition meets the predetermined rule for the time; the predetermined rule is cancelled; after the instruction is executed, no longer And modifying the predetermined rule; after the executing the instruction, the condition prompts the modification when the condition meets the predetermined rule or the revised predetermined rule.
- the prompting unit is further configured to determine, according to the pre-configured option, whether to perform the modification prompt on the predetermined rule, and if the determination result is yes, perform the modification prompt; In the event of no, controlling the execution of the instructions includes executing the instructions.
- the predetermined rule is stored locally or from other network elements.
- the predetermined rule includes at least one of: time, account information, user location information, environment information, status information of a device that executes the instruction, or an instruction that has been sent to the device, where the account information Used to identify the device.
- the monitoring module is further configured to monitor the condition that triggers the execution instruction according to a preset policy; or, after receiving the operation instruction, monitor the condition that triggers the execution instruction.
- the device further includes: a sending module, configured to send a corresponding condition when the instruction is executed one or more times to another network element, where the other network element is configured to perform the one or more times
- the network element of the predetermined rule is learned by the condition corresponding to the instruction; the learning module is configured to learn the condition corresponding to the one or more executions of the instruction locally to obtain the predetermined rule.
- the learning module is further configured to obtain the predetermined rule by merging or summarizing the same or similarities in the conditions corresponding to the execution of the instruction multiple times.
- there is still another instruction processing apparatus including: a receiving module configured to receive a condition corresponding to one or more executions of an instruction; and a learning module configured to learn the condition Obtaining a predetermined rule, wherein the predetermined rule is used to indicate that the subject receiving the predetermined rule controls execution of the instruction if the condition meets the predetermined rule; and the sending module is configured to send the predetermined rule.
- the predetermined rule includes at least one of: time, account information, user location information, environment information, status information of a device that executes the instruction, or an instruction that has been sent to the device, where the account information Used to identify the device.
- the learning module is further configured to obtain the predetermined rule by merging or summarizing the same or similarities in the conditions corresponding to the execution of the instruction multiple times.
- the condition for triggering the execution of the instruction is monitored; and when the condition meets the predetermined rule, the control is performed.
- the execution of the instruction, wherein the predetermined rule is obtained by learning at least the condition corresponding to one or more executions of the above instruction.
- FIG. 1 is a flow chart of an instruction processing method according to an embodiment of the present invention.
- FIG. 2 is a block diagram showing the structure of an instruction processing apparatus according to an embodiment of the present invention.
- FIG. 3 is a block diagram 1 of a structure of an instruction processing apparatus according to an embodiment of the present invention.
- FIG. 4 is a block diagram 2 of a structure of an instruction processing apparatus according to an embodiment of the present invention.
- FIG. 5 is a flowchart 1 of an instruction processing method according to an embodiment of the present invention.
- FIG. 6 is a structural block diagram 3 of an instruction processing apparatus according to an embodiment of the present invention.
- FIG. 7 is a flow chart of a smart home control method according to an embodiment of the present invention.
- FIG. 8 is a flowchart of a learning control instruction learning method in a smart home control method according to an embodiment of the present invention.
- FIG. 9 is a schematic diagram of a smart gateway related unit according to an embodiment of the present invention.
- FIG. 10 is a schematic diagram of a network platform related unit according to an embodiment of the present invention.
- FIG. 11 is a schematic diagram of a smart home network according to an embodiment of the present invention.
- Figure 12 is an interaction timing diagram in accordance with an embodiment of the present invention.
- FIG. 1 is a flowchart of an instruction processing method according to an embodiment of the present invention. As shown in FIG. 1, the flow includes the following steps:
- Step S102 monitoring conditions for triggering execution of the instruction
- Step S104 in the case that the condition meets the predetermined rule, the execution of the instruction is obtained, wherein the predetermined rule is obtained by learning at least the condition corresponding to the execution of the instruction one or more times.
- the corresponding condition is learned to obtain a predetermined rule.
- the execution of the control instruction is performed by passively accepting the manual control of the user or performing the control according to the user's personalized pre-configured data, and the above steps may be automatically performed.
- the learning reservation rule reduces the manual participation of the user, thereby solving the problem that the related technology cannot flexibly control the operation mode of the smart home system, thereby realizing the flexible control of the operation mode of the smart home system, simplifying the operation and improving the user.
- the learning reservation rule reduces the manual participation of the user, thereby solving the problem that the related technology cannot flexibly control the operation mode of the smart home system, thereby realizing the flexible control of the operation mode of the smart home system, simplifying the operation and improving the user. Experience.
- the predetermined rules learned above may have some problems with the user's request.
- the predetermined rule when the condition meets the predetermined rule, the predetermined rule is modified, by which the user can modify the predetermined rule; then, receiving a response to the modification prompt; and according to the response control instruction Execution, wherein the instruction is executed in the case where the predetermined rule is not revised according to the response confirmation; in the case where the predetermined rule is revised according to the response confirmation, the instruction is executed if the condition meets the revised predetermined rule.
- the user when the monitored condition satisfies the trigger condition of the execution instruction, the user is prompted whether to modify the trigger condition for executing the instruction, and when the user indicates that the trigger condition for executing the instruction is not modified, the instruction is directly executed, and the user instructs the modification to execute the instruction.
- the trigger condition of the instruction When the trigger condition of the instruction is received, the user's revision of the trigger condition for executing the instruction is received, and the condition is monitored here, and the condition is executed when the condition monitored again meets the trigger condition for executing the revised instruction.
- the above response to the revised prompt may have multiple manifestations, that is, the response may also reflect other functions that the user wishes to perform.
- the response may be used to indicate at least one of the following: If the condition meets the predetermined rule, the instruction is not executed; the predetermined rule is cancelled; after the instruction is executed, the predetermined rule is no longer modified; after the instruction is executed, the monitored condition meets the predetermined rule or revised each time Suggestions for modification when scheduling rules.
- the user can flexibly control the execution of the instructions by different settings of the response to the revision prompt.
- the generation of the predetermined rule may be obtained by learning the corresponding condition when the instruction is executed multiple times. Therefore, the generated predetermined rule is relatively stable, and the user can trust the predetermined rule. In another case, the user may also choose not to trust the predetermined rule, but need to view the rules to facilitate the modification.
- a configurable option can be added to allow the user to select whether or not to modify the predetermined rules generated by the learning. For example, it is determined whether to modify the predetermined rule according to the pre-configured option. If the determination result is yes, the modification prompt is performed; if the determination result is negative, the execution of the control instruction includes: directly executing the instruction. With this added configuration option, the user's choices can be made more flexible and the user experience can be improved.
- the foregoing embodiment or the optional implementation manner may be performed in a gateway device or on a smart device connected to the gateway.
- the learned predetermined rule saved in the gateway may be different. Smart device. If executed on the smart device, the learned predetermined rules saved in the smart device may be only for themselves, or may be for other smart devices or gateways. Considering the storage space of the gateway and the smart device, these learned rules can also be saved on other network elements and obtained from other network elements when needed.
- the gateway and smart device in this paragraph are merely examples, and the above embodiments or alternative embodiments may be executed on any device.
- the processing power of the gateway or smart device can be considered, and it can be performed on these devices if its processing capability allows.
- the execution of the predetermined rules on which device can be performed can take into account the network conditions and/or device processing conditions before making a selection.
- the at least two devices can exchange the predetermined rules learned by each.
- the predetermined rule may include a plurality of information, which may be set according to different needs.
- the predetermined rule may include at least one of the following: time, account information, user location information, environment information, Status information of the device that executed the instruction or an instruction that has been sent to the device, wherein the account information is used to identify the device, if a predetermined rule for multiple smart devices is saved on one device (eg, a gateway), This account information is needed to distinguish which device the rule is for. If a device's predetermined rules are only for itself, then the account information is not needed.
- the monitoring trigger execution instruction involved in the foregoing step S102 may be active monitoring or passive monitoring.
- the condition for triggering the execution instruction is monitored according to a preset policy; or, after receiving the operation instruction, monitoring The condition that triggers the execution of the instruction.
- the generation of the predetermined rules can also be accomplished in a number of ways.
- the predetermined rules are obtained by merging or summarizing the same or similarities in the conditions corresponding to the multiple execution instructions. For example, consider using some existing fuzzy algorithms to merge or generalize.
- an instruction processing device is further provided, which is used to implement the above-mentioned embodiments and optional embodiments, and has not been described again.
- the term “module” may implement a combination of software and/or hardware of a predetermined function.
- the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- the apparatus includes: a monitoring module 22 configured to monitor a condition for triggering an execution instruction; and a control module 24 configured to meet the predetermined condition
- the execution of the instruction is controlled, wherein the predetermined rule is obtained by learning at least one or more conditions corresponding to the execution of the instruction.
- the control module 24 includes: a prompting unit 242, configured to modify a predetermined rule when the condition meets the predetermined rule;
- the receiving unit 244 is configured to receive a response to the modification prompt;
- the first execution unit 246 is configured to control execution of the instruction according to the response, wherein the instruction is executed if it is confirmed according to the response that the predetermined rule is not revised;
- the second execution unit 248 is arranged to execute the instruction in the case where the condition conforms to the revised predetermined rule in the case of confirming the revision of the predetermined rule according to the response.
- the response is for indicating at least one of: for the case that the condition meets the predetermined rule, the instruction is not executed; the predetermined rule is cancelled; after the instruction is executed, the predetermined rule is no longer A modification prompt is made; after the instruction is executed, the modification prompt is performed each time the condition meets the predetermined rule or the revised predetermined rule.
- the prompting unit 242 is further configured to determine whether to perform the modification prompt on the predetermined rule according to the pre-configured option, and if the determination result is yes, perform the modification prompt; if the determination result is no In the case of controlling the execution of the instruction, the execution of the instruction is performed.
- the predetermined rules are stored locally or from other network elements.
- the predetermined rule includes at least one of: time, account information, user location information, environment information, status information of a device that executes the instruction, or an instruction that has been sent to the device, wherein the account information Used to identify the device.
- the monitoring module 22 is further configured to monitor the condition that triggers the execution of the instruction in accordance with a predetermined policy; or, after receiving the operational instruction, monitor the condition that triggered the execution of the instruction.
- the apparatus further includes: a sending module 26 configured to send a corresponding condition when one or more times of executing the instruction to another network. a unit, wherein the other network element is a network element that learns the condition corresponding to one or more executions of the instruction to obtain the predetermined rule; and the learning module 28 is configured to perform a condition corresponding to the local execution of the instruction one or more times. Learn to get the predetermined rules.
- the learning module 28 is further arranged to derive a predetermined rule by merging or summarizing the same or similarities in the conditions corresponding to the execution of the instruction multiple times.
- FIG. 5 is a flowchart 1 of an instruction processing method according to an embodiment of the present invention. As shown in FIG. 5, the flow includes the following steps:
- Step S502 receiving a condition corresponding to one or more executions of the instruction
- Step S504 learning the condition to obtain a predetermined rule, where the predetermined rule is used to indicate that the subject receiving the predetermined rule controls execution of the instruction if the condition meets the predetermined rule;
- Step S506 sending a predetermined rule.
- the subject instructing to receive the predetermined rule controls the execution of the instruction if the condition meets the predetermined rule, and then the subject receiving the predetermined rule can flexibly control the instruction, and the execution of the instruction is mainly passive compared to the related art.
- the above steps solve the problem that the related technology cannot flexibly control the operation mode of the smart home system, thereby realizing the flexible control of the operation mode of the smart home system. , simplifying the operation and improving the user experience.
- the predetermined rule may include a plurality of information, and in another alternative embodiment, the predetermined rule includes at least one of: time, account information, user location information, environmental information, status information of a device that executes the instruction, or has been directed to the device The sent command, wherein the account information is used to identify the device.
- the generation of the predetermined rule may also be implemented in a plurality of manners.
- learning the condition to obtain the predetermined rule includes: obtaining, by combining or inducting the same or similarities in the conditions corresponding to the execution of the instruction multiple times. Schedule rules.
- the apparatus includes: a receiving module 62 configured to receive a condition corresponding to one or more executions of an instruction; and a learning module 64, setting The predetermined rule is obtained by learning the condition, wherein the predetermined rule is used to indicate that the subject receiving the predetermined rule controls the execution of the instruction if the condition meets the predetermined rule; and the sending module 66 is configured to send the predetermined rule.
- the predetermined rule includes at least one of: time, account information, user location information, environment information, status information of a device that executes the instruction, or an instruction that has been sent to the device, wherein the account information Used to identify the device.
- the learning module 62 is further configured to derive the predetermined rule by merging or summarizing the same or similarities in the conditions corresponding to the execution of the instruction multiple times.
- the following alternative embodiment is an illustration of a smart home system.
- the optional embodiment provides a smart home system control method, which implements a control method combining automatic learning of the system and active intervention by the user.
- the intelligent gateway collects and analyzes the user's usage habits and operation instructions to form a learning control instruction knowledge base; the intelligent gateway uses the learning control instruction knowledge base to predict the planned execution according to the current environmental context information during operation.
- the instruction sends a learning control instruction correction request to the user, and the intelligent gateway acquires and analyzes the learning control instruction correction response, and completes the control of the planned execution instruction and the optimization of the learning control instruction knowledge base according to the analysis result.
- FIG. 7 is a flow chart of a smart home control method according to an embodiment of the present invention
- FIG. 7 provides a smart home control method, which is applied to a smart home system, where the system includes at least a smart gateway device and a learning control instruction knowledge base, and the above learning control
- the instruction knowledge base includes at least one learning control instruction, where the learning control instruction includes a learning control instruction triggering condition, a corresponding planned execution instruction, and a modified parameter option set, wherein the learning control instruction triggering condition includes at least one attribute and a corresponding attribute value, as shown in the figure.
- the method includes the following steps:
- Step S702 the intelligent gateway monitors environment context information.
- Step S704 the intelligent gateway determines whether the environment context information matches the learning control instruction triggering condition, and when yes, step S706 is performed; otherwise, step S702 is performed;
- Step S706 The smart gateway sends a learning control instruction correction request to the user through the human-machine interface.
- Step S708 the intelligent gateway acquires and analyzes the learning control instruction correction response, and optimizes the learning control instruction or the control plan execution instruction according to the analysis result.
- the modified parameter option set includes but is not limited to: sending a learning control instruction correction request: YES/NO (NO: no transmission, YES: transmission); when the transmission learning control instruction correction request is YES, the above modified parameter option set
- the method further includes: accepting the learning control instruction execution and canceling the subsequent correction request or accepting the learning control instruction execution (and subsequently sending the correction request each time) or prohibiting the execution of the learning control instruction or canceling the learning control instruction or the optimization learning control instruction triggering condition , including the attribute and attribute value corresponding to the triggering condition of the learning control instruction;
- the environment context information includes at least an attribute included in a learning control instruction triggering condition
- the smart gateway may directly execute the plan execution instruction in the learning control instruction by determining that the sending the learning control instruction correction request option is NO;
- the manual interface in step S706 includes, but is not limited to, a display screen of a PC, a smart phone, or an electrical device;
- the foregoing learning control instruction correction request in step S706 includes the foregoing modified parameter option set
- the result option included in the learning control instruction correction response and the parameter option in the learning control instruction correction request correspond to each other.
- the learning control instruction correction response includes, but is not limited to, accepting the learning control instruction execution and canceling the subsequent modification request or accepting the learning control instruction execution (and subsequently sending the correction request each time) or prohibiting the execution of the learning control instruction or Deactivating the learning control instruction or optimizing the learning control instruction triggering condition, including the attribute and the attribute value corresponding to the triggering condition of the learning control instruction;
- the control of the plan execution instruction refers to that the smart gateway extracts a plan execution instruction from the matched learning control instruction according to the environment context information, and controls the system to execute the plan execution instruction;
- the optimized learning control instruction is The intelligent gateway corrects the result option included in the response according to the learning control instruction, modifies the attribute and the attribute value included in the triggering condition of the learning control instruction corresponding to the learning control instruction, and updates the learning control instruction knowledge base;
- the learning control instruction knowledge base is downloaded from the network platform by the smart gateway, and stored in a local system of the smart gateway, where the version of the knowledge base is maintained by the network platform;
- the learning control instruction triggering condition may be defined by a quintuple ⁇ T, U, L, E, P>, including five attributes and corresponding attribute values, wherein the attribute T represents time, and the attribute U represents user account information.
- the attribute L represents user location information
- the attribute E represents home environment information (temperature, humidity, illuminance, noise, etc.)
- the attribute P indicates that operation instruction information or system internal state information has occurred;
- the trigger condition quintuple has at least attribute values One is not null (Null).
- plan execution instruction is defined by a tuple ⁇ S>, where S represents a plan execution instruction, including at least one executable instruction information;
- the above learning control instruction includes a learning control instruction trigger condition and a planned execution instruction, which are defined by a binary group ⁇ I, S>, wherein I represents the above learning control instruction trigger condition quintuple information ⁇ T, U, L, E, P >, S represents the above plan execution instruction;
- the method for tracking the environment context information by the smart gateway includes active acquisition and passive acquisition, and the active acquisition refers to the intelligent gateway actively acquiring the environment from the internal system operation of the intelligent gateway, the external controlled device or the network platform according to the system setting policy.
- Context information; passive acquisition refers to passively receiving user's operation instructions and passively receiving information data reported by an externally controlled device;
- the above-mentioned plan execution instruction is pre-configured in the system, and according to the pre-configured plan execution instruction, the system automatically learns the user behavior habits, acquires the learning control instruction trigger condition matching the above-mentioned plan execution instruction, thereby determining the learning control instruction set and learning.
- Control instruction knowledge base
- FIG. 8 is a flowchart of a learning control instruction learning method in a smart home control method according to an embodiment of the present invention.
- the learning control instruction learning step is as shown in FIG.
- Step S802 the smart gateway continuously acquires all environment context information related to the learning control instruction, and saves the information to the system;
- Step S804 when the smart gateway detects that the pre-configured plan execution instruction occurs, according to the characteristics of the system setting and the plan execution instruction, the environment context information during the period when the plan execution instruction occurs or occurs before is generated from the system;
- Step S806 the smart gateway uploads the planned execution instruction and related environment context information to the network platform
- Step S808 the network platform analyzes the environment context information, and determines that the learning control instruction trigger condition quintuple information corresponding to the plan execution instruction is combined into a candidate learning control instruction, and is stored in the candidate learning control instruction table;
- Step S810 the network platform collects the candidate learning control instructions for a period of time, and analyzes each candidate learning control instruction table. When the frequency and number of occurrences of the candidate learning control instruction of a certain characteristic or a certain characteristic satisfy a certain ratio and a threshold, Then, the candidate learning control instruction is determined as a training control instruction that is successfully trained, and is combined and stored in the learning control instruction knowledge base.
- the above intelligent control method adopts a fuzzy theory analysis and control method
- the uplink port of the smart gateway is connected to the network platform, and the connection manner includes but is not limited to Ethernet, WiFi, Passive Optical Network (PON), and third generation mobile communication system (3G). / fourth generation mobile communication system (4G);
- the smart gateway is connected to one or more controlled devices by means of wired communication or wireless communication, and the intelligent gateway acquires relevant information data from the controlled device or receives control instructions of the user to implement control of the controlled device;
- the wired communication mode between the gateway and the controlled terminal includes but is not limited to five types of network cables, coaxial cables, power lines, telephone lines, etc.; the wireless communication methods of the above intelligent gateway and the controlled terminal include but are not limited to Zigbee, wifi, Bluetooth low power consumption. (Bluetooth low energy, referred to as BLE), radio frequency (Radio Frequency, referred to as RF);
- the controlled device includes, but is not limited to, an Internet Protocol (IP) camera, a security detector terminal, a home medical terminal, a home appliance automation and energy control terminal, a smart home appliance, etc. .
- IP Internet Protocol
- FIG. 9 is a schematic diagram of the relevant unit of the intelligent gateway according to the embodiment of the present invention, and the processing unit included in the intelligent gateway As shown in Figure 9, it includes:
- the storage unit 901 is configured to: save environment context information acquired by the smart gateway; and set to save the learning control instruction knowledge base;
- the data collection unit 902 the intelligent gateway continuously acquires the environment context information related to the learning control instruction and saves it to the system; when the smart gateway detects that the pre-configured plan execution instruction occurs, according to the characteristics of the system setting and the planned execution instruction, Obtaining environmental context information from the system when the planned execution instruction occurs or a period of time before the occurrence; the intelligent gateway uploads the planned execution instruction and related environment context information to the network platform;
- the intelligent control unit 903 queries the learning control instruction knowledge base, and compares the matching degree between the attribute and the attribute value and the environmental context information of the learning control instruction triggering condition included in the knowledge base; when a learning control instruction triggers the condition When the environment context information is matched, the intelligent gateway sends a learning control instruction correction request to the user through the human-machine interface, and the correction request includes a correction parameter option set; the intelligent gateway corrects the response according to the learning control instruction, and completes the control of the planned execution instruction. And the optimization of the learning control instruction knowledge base described above.
- the optimization of the learning control instruction knowledge base refers to: the intelligent gateway corrects the result option included in the response according to the learning control instruction, and modifies the attribute included in the triggering condition of the learning control instruction corresponding to the learning control instruction. Attribute value and update the learning control instruction knowledge base;
- the communication unit 904 transmitting the environment context information and the corresponding plan execution instruction to the network platform according to the execution result of the data collection unit; receiving the control message of the intelligent control unit, and controlling the peripheral controlled terminal and the network platform;
- the communication manner between the uplink and the controlled interface of the smart gateway includes but is not limited to five types of network cables, a coaxial cable, a power line, a telephone line, a Zigbee, a wifi, a BLE, an RF, and the like;
- the uplink port of the smart gateway is connected to the network platform, and the connection manner includes but is not limited to Ethernet, WiFi, PON, and mobile 3G/4G;
- FIG. 10 is a schematic diagram of a related unit of the network platform according to an embodiment of the present invention.
- a schematic diagram of a processing unit is shown in FIG. 10, including:
- the storage unit 1001 is configured to: save a plan execution instruction uploaded by the smart gateway and related environment context information; set to save a candidate learning control instruction table; and set to save the learning control instruction knowledge base;
- the learning unit 1002 the network platform analyzes the environment context information, and determines the learning control instruction trigger condition quintuple information corresponding to the plan execution instruction, and combines them into a candidate learning control instruction, and stores them in the candidate learning control instruction table;
- the network platform collects the candidate learning control instruction for a period of time, and analyzes the candidate learning control instruction table. When the probability or the number of occurrences of a candidate learning control instruction is greater than a certain ratio or threshold, determining the candidate learning control instruction as training Successful learning control instructions are stored in the learning control instruction knowledge base. Complete the update of the knowledge base according to the knowledge base adjustment request transmitted by the intelligent gateway;
- the communication unit 1003 sends a learning control instruction knowledge base to the smart gateway according to the processing result of the learning unit; and is configured to receive the plan execution instruction and related environment context information uploaded by the smart gateway; and receive the knowledge base update sent by the smart gateway device.
- the optional embodiment is illustrated by a typical smart home system.
- the system includes a smart home network platform (hereinafter referred to as a network platform) deployed in the network, an intelligent gateway deployed in the owner's home, and a plurality of door and window magnetic detectors and infrared detection. , intelligent switch panel, smart socket, infrared forwarding controller (can control the on/off of white goods such as water heaters and air conditioners) Wait.
- the intelligent gateway accesses the home wireless router through the wired mode and accesses the network platform through the resident network; the sensors such as the door and window magnetic, infrared detector, and infrared forwarding controller are wirelessly connected to the intelligent gateway through the RF433Mhz; the owner carries the dedicated RF433Mhz
- the wireless remote control device can communicate with the intelligent gateway through the wireless remote controller, and can complete the arming and disarming of the smart home security system at home, or the owner remotely controls the opening of the home air conditioner through the smart phone-specific application (Application, referred to as APP). / Turn off, or control the lighting in your home through the smart switch panel.
- FIG. 11 is a schematic diagram of a smart home network according to an embodiment of the present invention, with reference to a smart home system network diagram 11.
- the following is an example of turning on the air conditioner.
- system pre-configuration plan execution instruction S1 "turn on the air conditioner", so that the system performs the learning process in a targeted and efficient manner.
- the intelligent gateway and the network platform first collect the behavior data of the owner through a long period of operation (default 30 days), and perform data analysis, and finally obtain the learning control instruction related to the plan execution instruction.
- Implementation steps include:
- Step S11 The above-mentioned intelligent gateway periodically acquires all the environment context information related to the learning control instruction, and saves it to the system.
- the environment context information related to S1 “turning on the air conditioner” includes at least “turning on the air conditioner through the remote controller” Time, the temperature at home when the air conditioner is turned on”; after the intelligent gateway obtains the above environmental context information, it is saved in the intelligent gateway through the storage unit;
- Step S12 When the smart gateway detects that a predefined plan execution instruction occurs, according to the characteristics of the system setting and the planned execution instruction, the environment context information of the system execution instruction is generated or occurs for a period of time before the occurrence of the planned execution instruction;
- the environment context information is extracted from the "time when the air conditioner is turned on by the remote controller and the temperature at the home when the air conditioner is turned on”.
- five groups are listed, and the data is "18:00, 33", “18:06, 34", “18:09, 32", “17:56, 35", "23:03,34";
- Step S13 The smart gateway uploads the plan execution instruction and the related environment context information to the network platform.
- the smart gateway acquires an environment context that is pre-configured for 30 days in a long period of time. Upload information to the web platform;
- Step S14 The network platform analyzes the environment context information, and determines that the learning control instruction trigger condition quintuple information corresponding to the plan execution instruction is combined into a candidate learning control instruction, and is stored in the candidate learning control instruction table;
- the candidate learning control instruction is expressed as follows:
- Table 1-1 Schematic diagram of candidate learning control instructions
- Step S15 The network platform collects the candidate learning control instructions for a period of time, and analyzes each candidate learning control instruction table, when the probability, the number of times, or the interval characteristics of a candidate learning control instruction meets a certain ratio, threshold, or interval. And determining, the candidate learning control instruction is a training control instruction that is successfully trained, and is combined and stored in the learning control instruction knowledge base.
- the method of fuzzy theory analysis is adopted, and the network platform analyzes and merges into a learning control instruction:
- the knowledge base including the above learning control instruction is uniformly stored in the network platform.
- the maintenance update of the knowledge base is completed by the network platform.
- the intelligent gateway is based on the network.
- the update notification of the platform automatically downloads the latest knowledge base bound to the above intelligent gateway from the network platform;
- FIG. 12 is an interaction sequence diagram according to an embodiment of the present invention. The implementation details of the foregoing intelligent control method are as shown in FIG. 12, and include:
- Step S1202 The smart gateway monitors the home environment context information.
- the environment context information related to the attribute included in the learning control instruction trigger condition includes “the current time of the system, the owner wireless remote control ID number, and the current temperature of the home”. Etc; the intelligent gateway periodically detects the above information;
- the environment context information is the temperature 33 degrees, the owner's remote controller ID and the system current time, satisfying the learning control command triggering condition corresponding to the S3 "turn on the air conditioner" execution instruction, so the result is a match, step S1206 is performed;
- Step S1206 The smart gateway sends a learning control instruction correction request to the user through the human machine interface
- the artificial interface is a smart phone; the owner has installed the APP software of the smart home system on the smart phone, and the smart phone communicates with the intelligent gateway through the 3G mode; optionally, the man-machine is completed.
- the smart gateway detects the selection of the transmission learning control instruction correction request in the correction parameter option set, and determines that it is YES, so the learning control instruction correction request message is sent to the smart phone APP through the customized Internet protocol;
- the learning control instruction correction request includes a correction parameter option set; wherein the correction parameter option set includes: sending a learning control instruction correction request: YES (NO: no transmission, YES: transmission); when sending the learning control instruction correction request is YES
- Step S1208 The intelligent gateway acquires and analyzes the learning control instruction correction response, and optimizes the learning control instruction or the control plan execution instruction according to the analysis result.
- the result option included in the learning control instruction correction response and the parameter option in the learning control instruction correction request correspond to each other, and when the user smartphone APP receives the learning control instruction correction request, the mobile phone APP displays the mobile phone screen.
- the parameter selection in the control command correction request is provided for the user to make a selection or adjustment.
- the current plan execution instruction also satisfies the new learning control instruction trigger condition, so the system executes the plan execution instruction.
- the method for tracking and detecting the environment context information by the smart gateway includes active acquisition and passive acquisition, and the active acquisition refers to the intelligent gateway running from the internal system of the intelligent gateway according to the system setting policy.
- the externally controlled device or the network platform actively obtains the environment context information;
- the passive acquisition refers to passively receiving the user's operation instruction and passively receiving the information data reported by the externally controlled device, and the acquired environmental context information includes but is not limited to time information and users.
- Account information, user location information, temperature, humidity, illuminance, noise, room in the home environment The internal air indicator and the user control appliance switch message, the security cloth disarming message, the alarm release message, the camera video control message, the motion detection message actively reported by the camera, the triggered alarm message of the active magnetic report of the door magnetic field, and the triggering alarm triggered by the infrared detector actively reporting The message, the smoke detector actively reports the triggering alarm message, etc.;
- the intelligent control method uses a fuzzy theory analysis and control method
- the uplink port of the smart gateway is connected to the network platform, and the connection manner includes but is not limited to Ethernet, WiFi, PON, and mobile 3G/4G;
- the smart gateway is connected to one or more controlled devices by means of wired communication or wireless communication, and the intelligent gateway acquires relevant information data from the controlled device or receives control instructions of the user to implement control of the controlled device;
- the wired communication mode between the gateway and the controlled terminal includes but is not limited to five types of network cables, coaxial cables, power lines, telephone lines, etc.; the wireless communication methods of the smart gateway and the controlled terminal include but are not limited to Zigbee, wifi, BLE, RF;
- the controlled device includes a smart panel, a smart socket or an infrared remote control transponder, a temperature sensor, and the like.
- An intelligent gateway used in a smart home system is connected to one or more controlled devices by means of wired communication or wireless communication, and the intelligent gateway obtains relevant information feedback from the controlled device.
- the user or the user receives the control command to control the controlled device.
- the smart gateway uplink is connected to the network platform by wired communication or wireless communication.
- the smart gateway features include:
- the storage unit is configured to save the environment context information acquired by the intelligent gateway; and is configured to save the learning control instruction knowledge base; in the optional embodiment, the intelligent gateway tracks and detects the environmental context information related to the S1 “turning on the air conditioner”, and data (only List the data submitted in this embodiment) as "18:00, 33", “18:06, 34", “18:09, 32", "17:56, 35", "23:03,34"; After the learning control instruction knowledge base is successfully trained, the storage unit will permanently store the knowledge base in a flash table (flash) through a data table or a configuration form.
- the knowledge base includes a learning control instruction.
- the data collection unit (corresponding to the above-mentioned monitoring module 22): the intelligent gateway continuously acquires the environment context information related to the learning control instruction and saves it to the system; when the intelligent gateway detects that the pre-configured plan execution instruction occurs, according to the system setting and planning Executing the characteristics of the instruction, obtaining environment context information from the system when the planned execution instruction occurs or a period of time before the occurrence; the intelligent gateway uploads the planned execution instruction and related environment context information to the network platform;
- An intelligent control unit (corresponding to the above-mentioned control module 24): the intelligent gateway queries the learning control instruction knowledge base, and compares the matching degree between the attribute and the attribute value of the learning control instruction triggering condition included in the knowledge base and the environment context information; When the triggering condition of the learning control instruction matches the environmental context information, the intelligent gateway sends a learning control instruction correction request to the user through the human-machine interface, where the correction request includes a modified parameter option set; the intelligent gateway corrects the response according to the learning control instruction.
- the control of the above-mentioned plan execution instruction and the optimization of the above-mentioned learning control instruction knowledge base are completed.
- the optimization of the learning control instruction knowledge base in the intelligent control unit refers to that the intelligent gateway modifies the result option included in the response control command according to the learning control instruction, and modifies the genus included in the triggering condition of the learning control instruction corresponding to the learning control instruction.
- the attribute value, and update the learning control instruction knowledge base; in this embodiment, the control unit execution manner refer to steps S1204, S1206, S1208 in this embodiment;
- the communication unit sends the environment context information and the corresponding plan execution instruction to the network platform according to the execution result of the data collection unit; receives the control message of the intelligent control unit, and controls the peripheral controlled terminal and the network platform;
- the communication manner between the uplink and the controlled interface of the smart gateway includes but is not limited to five types of network cables, coaxial cables, power lines, telephone lines, Zigbee, wifi, BLE, RF, and the like;
- the uplink port of the smart gateway is connected to the network platform, and the connection manner includes but is not limited to Ethernet, WiFi, PON, and mobile 3G/4G;
- a network platform is applied in a smart home system.
- the network platform is connected to the intelligent gateway to implement management and management command transmission of the intelligent gateway and the user.
- the main features include:
- a storage unit configured to save a plan execution instruction uploaded by the smart gateway and related environment context information; set to save a candidate learning control instruction table; and set to save the learning control instruction knowledge base ;
- a learning unit (corresponding to the learning module 64): the network platform analyzes the environment context information, and determines a learning control instruction trigger condition quintuple information corresponding to the plan execution instruction, and combines them into a candidate learning control instruction, and stores the In the candidate learning control instruction list; the network platform collects the candidate learning control instructions for a period of time, and analyzes the candidate learning control instruction table, and determines when the probability or the number of occurrences of a candidate learning control instruction is greater than a certain ratio or threshold.
- the candidate learning control instruction is a training control instruction that is successfully trained, and is stored in the learning control instruction knowledge base.
- the communication unit (corresponding to the learning module 66) sends a learning control instruction knowledge base to the smart gateway, and is configured to receive the plan execution instruction and related environment context information uploaded by the smart gateway.
- the owner is in a home activity state from 18:30 to 22:00 in the evening, and the security system generally works in the disarmed mode.
- the wireless remote control When the owner starts to sleep at 22:00, usually use the wireless remote control to switch the system working mode to sleep mode, that is, the boundary sensor such as door and window magnetic and infrared detectors is in the armed state, the system automatically turns off the lights in the home to protect the owner during the night break. Property security.
- the intelligent gateway and the network platform first collect the behavior habit data of the owner through a period of operation, and perform data analysis, and finally obtain the learning control instructions related to the three plan execution instructions, and the implementation steps include:
- Step S21 The above-mentioned intelligent gateway periodically acquires all the environment context information related to the learning control instruction, and saves it to the system.
- the environment context information related to the S2 “sleep mode” includes at least the “time of the sleep mode trigger, The wireless remote controller identifier (Identity, abbreviated as ID) number; the smart gateway obtains the above environment context information, and saves it in the smart gateway through the storage unit;
- Step S22 When the smart gateway detects that a predefined plan execution instruction occurs, according to the characteristics of the system setting and the plan execution instruction, the environment context information of the system execution instruction is generated or occurs for a period of time before the occurrence of the planned execution instruction;
- the smart gateway detects that the S2 "sleep mode" occurs the "sleep mode trigger time and the wireless remote controller ID number" are extracted from the environment context information.
- five groups are listed, and the data is "22: 10, yk010101", “22:01, yk010101", “23:50, yk010101", "22:04, yk010101", "22:00, yk010101”;
- Step S23 The smart gateway uploads the planned execution instruction and the related environment context information to the network platform.
- the smart gateway acquires a long period of time (this time can be pre-configured for 30 days or longer).
- the environment context information is uploaded to the network platform;
- Step S24 The network platform analyzes the environment context information, and determines that the learning control instruction trigger condition quintuple information corresponding to the plan execution instruction is combined into a candidate learning control instruction, and is stored in the candidate learning control instruction table;
- the candidate learning control instruction is expressed as follows:
- Step S25 The network platform collects the candidate learning control instructions for a period of time, and analyzes each candidate learning control instruction table, when the probability, the number of times, or the interval characteristics of a candidate learning control instruction meets a certain ratio, threshold, or interval. And determining, the candidate learning control instruction is a training control instruction that is successfully trained, and is combined and stored in the learning control instruction knowledge base.
- the method of fuzzy theory analysis is adopted, and after the network platform analyzes, the induction is merged into one learning control instruction:
- the knowledge base including the above learning control instruction is uniformly stored in the network platform.
- the maintenance update of the knowledge base is completed by the network platform.
- the intelligent gateway is based on the network.
- the update notification of the platform automatically downloads the latest knowledge base bound to the above intelligent gateway from the network platform;
- Step S211 The smart gateway monitors the home environment context information.
- the environment context information related to the attribute included in the learning control instruction triggering condition includes “the current time of the system, the owner wireless remote controller ID number”; the intelligent gateway is from the above hypothetical scenario.
- the obtained environmental context information includes "system current time”;
- the environment context information is the owner's remote controller ID and the system time T (the current time when the gateway collects the environment context information), and satisfies the learning control instruction triggering condition corresponding to the S2 “sleep mode” plan execution instruction, so the present embodiment The situation is a match, so step S213 is performed, otherwise step S211 is performed;
- Step S213 The smart gateway sends a learning control instruction correction request to the user through the human-machine interface.
- the manual interface is a smart phone; the smart phone installs the APP software corresponding to the embodiment, and implements the smart gateway through WIFI or 3G.
- Step S214 The intelligent gateway acquires and analyzes the learning control instruction correction response, and optimizes the learning control instruction or the control plan execution instruction according to the analysis result.
- the smart gateway prohibits the execution of the "sleep mode" instruction.
- the reason for the prohibition may be that the owner needs to rest later, but the current prohibition does not affect the execution of the subsequent sleep mode learning control instruction.
- Embodiments of the intelligent gateway and network platform refer to the above-described alternative embodiments.
- the following takes the opening of the security system as an example.
- the owner carries the wireless remote controller with the wireless remote control, and the remote controller supports two-way communication, that is, receiving the wireless cycle survival detection message sent by the intelligent gateway within the coverage of the wireless radio, and replying
- the intelligent gateway through this two-way detection mechanism, can determine the location of the owner at home or about to arrive home.
- the owner gets off work (assuming the owner arrives at home at 18:30 pm)
- the system is first disarmed, and then the entrance door is opened and the home is entered. Disarming first
- the reason for opening the entrance door is to prevent false alarms of the door magnetic detector that triggers the entrance door in the "disarming home" mode.
- the system also implements a delayed alarm mechanism in the off-home mode, that is, the owner triggers After the gate detector of the entrance door, the upcoming alarm can be cancelled within the delay time set by the system (usually 20 seconds).
- the intelligent gateway and the network platform first collect the behavior habit data of the owner through a period of operation, and perform data analysis, and finally obtain the learning control instruction of the S3, and the implementation steps include:
- Step S31 The above-mentioned intelligent gateway periodically acquires all the environment context information related to the learning control instruction, and saves it to the system.
- the environment context information related to S1 “system disarming” includes at least “the wireless remote controller of the service is The time detected by the intelligent gateway, the ID number of the wireless remote controller, and the time when the system is disarmed and triggered; after the intelligent gateway obtains the above environmental context information, it is saved in the intelligent gateway through the storage unit;
- Step S32 When the smart gateway detects that a predefined plan execution instruction occurs, according to the characteristics of the system setting and the planned execution instruction, the environment context information of the system execution instruction when the planned execution instruction occurs or occurs before the occurrence occurs; In the example, when the intelligent gateway is detected that S1 “system disarming” occurs, the time when the owner's wireless remote controller is detected by the intelligent gateway, the ID number of the wireless remote controller, and the time when the system is disarmed is extracted from the environment context information.
- Step S33 The smart gateway uploads the plan execution instruction and related environment context information to the network platform.
- the smart gateway acquires a long period of time (this time can be pre-configured for 30 days or longer).
- the environment context information is uploaded to the network platform;
- Step S34 The network platform analyzes the environment context information, and determines a learning control instruction trigger condition quintuple information corresponding to the plan execution instruction, and combines them into a candidate learning control instruction, and stores the information in a candidate learning control instruction table;
- the candidate learning control instruction is expressed as follows:
- Table 3-1 Schematic diagram of candidate learning control instructions in Embodiment 3
- Step S35 The network platform collects candidate learning control instructions for a period of time, and analyzes each candidate learning control instruction.
- a table when a probability, a number of times, or an interval characteristic of a candidate learning control instruction satisfies a certain ratio, a threshold, or an interval, determining that the candidate learning control instruction is a training control instruction that is successfully trained, and combining and storing in learning Control command knowledge base.
- the method of fuzzy theory analysis is adopted, and after the network platform analyzes, the induction is merged into one learning control instruction:
- the knowledge base including the above learning control instruction is uniformly stored in the network platform.
- the maintenance update of the knowledge base is completed by the network platform.
- the intelligent gateway is based on the network.
- the update notification of the platform automatically downloads the latest knowledge base bound to the above intelligent gateway from the network platform;
- Step S301 The intelligent gateway monitors the environment context information.
- the environment context information related to the attribute included in the learning control instruction triggering condition includes: “the current time of the system, the time when the wireless remote controller of the owner is detected by the intelligent gateway, and the wireless remote control of the owner.
- the device ID number “the current time of the system, the time when the wireless remote controller of the owner is detected by the intelligent gateway, and the wireless remote control of the owner.
- the device ID number the environment context information obtained by the intelligent gateway from the above hypothetical scenario includes "the current time of the system, the time when the owner wireless remote controller is detected is 18:27";
- Time when the owner's wireless remote controller is detected by the intelligent gateway, U “yk010101”, and system time T (current time when the gateway collects environmental context information).
- the environment context information is the remote controller ID of the owner, and the time 18:27 detected by the intelligent remote controller of the owner is satisfied by the learning control instruction triggering condition corresponding to the S1 “system disarming” plan execution instruction, so The implementation is a match, so step S303 is performed, otherwise step S301 is performed;
- Step S303 The smart gateway sends a learning control instruction correction request to the user through the human-machine interface.
- the manual interface is a smart phone; the smart phone installs the APP software corresponding to the embodiment, and implements the smart gateway through WIFI or 3G.
- the smart gateway sends a learning control instruction correction request message to the smart phone APP through a private protocol, where the learning control instruction correction request includes a modified parameter option set; wherein the modified parameter option set includes: sending a learning control instruction correction request: YES (NO) : not sent, YES: send); when the send learning control instruction correction request is YES, the modified parameter option set further includes: accepting the learning control instruction execution and canceling the subsequent correction request or accepting the learning control instruction execution (and subsequent each time) Send a correction request) or prohibit the execution of this learning control instruction or cancel the learning
- Step S304 The intelligent gateway acquires and analyzes the learning control instruction correction response, and optimizes the learning control instruction or the control plan execution instruction according to the analysis result.
- Embodiments of the intelligent gateway and network platform refer to the above embodiments.
- the optional embodiment reduces the complexity of the smart home system control, improves the efficiency and accuracy of the system intelligent learning control, thereby significantly improving the user experience and comfort.
- the present invention learns at least the condition corresponding to one or more executions of the instruction to obtain a predetermined rule.
- the execution of the control instruction is compared with
- the execution of the instructions in the related art is mainly passively accepting the manual control of the user, or controlling according to the personalized pre-configured data of the user.
- the above steps can automatically learn the predetermined rules to reduce the manual participation of the user, thereby solving the problem that the related technology cannot be used for the smart home.
- the operation mode of the system is flexibly controlled, thereby implementing flexible control of the operation mode of the smart home system, simplifying operation and improving the user experience.
- a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
- modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
- the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Selective Calling Equipment (AREA)
- Computer And Data Communications (AREA)
Abstract
An instruction processing method and device. The method comprises: monitoring a condition for triggering to execute an instruction (S102); and in a case in which the condition meets a preset rule, controlling execution of the instruction, wherein the preset rule is at least obtained by learning a corresponding condition when the instruction is executed once or multiple times (S104). The method resolves a problem in related technologies that an operation mode of an intelligent housing system cannot be flexibly controlled, so that the operation mode of the intelligent housing system can be flexibly controlled, an operation is simplified, and user experience is improved.
Description
本发明涉及通信领域,具体而言,涉及指令处理方法及装置。The present invention relates to the field of communications, and in particular to an instruction processing method and apparatus.
随着物联网技术的成熟,智能家居产品逐渐受到市场的欢迎。一般,智能家居系统包括智能网关设备和外围的受控终端,以及部署在网络侧的平台设备。智能网关设备作为智能家居网络的中枢,通过紫峰(Zigbee)、无线保真(WIreless-Fidelity,简称为Wifi)等无线协议,管理控制外围的受控终端,如摄像头、安防传感器、白色家电等;同时,智能网关通过互联网接口,接入外部的网络平台,通过网络平台统一管理家庭用户信息、控制指令的转发,实现基于移动终端的智能家居系统的远程控制,例如通过智能手机控制家电照明系统的开关,安防系统的布撤防,获取家庭安全报警等服务。With the maturity of the Internet of Things technology, smart home products are gradually welcomed by the market. Generally, a smart home system includes a smart gateway device and a peripheral controlled terminal, and a platform device deployed on the network side. As the backbone of the smart home network, the intelligent gateway device manages and controls peripheral controlled terminals such as cameras, security sensors, white goods, etc. through wireless protocols such as Zigbee and WIreless-Fidelity (WLAN). At the same time, the intelligent gateway accesses the external network platform through the Internet interface, and uniformly manages the home user information and control command forwarding through the network platform, thereby realizing the remote control of the smart home system based on the mobile terminal, for example, controlling the home appliance lighting system through the smart phone. The switch, the security system is disarmed, and the home security alarm is obtained.
目前智能家居系统的运行方式主要是被动接受用户的手动控制,或按照用户个性化预配置数据进行控制。例如,手动控制方式,用户回到家后通过遥控器或智能手机对安防系统进行手动撤防操作;用户离开家后,通过智能手机对安防系统进行手动布防操作等。用户个性化预配置方式,设置空调周期开启的时间计划,或预配置红外探测器和摄像头视角联动关系。随着智能家居系统越来越复杂,这两种方式存在的弊端一是增加了用户学习成本及操作复杂度,二是预配置方式可能在实际使用中无法满足用户灵活性要求,而失去使用价值。At present, the operation mode of the smart home system is mainly passively accepting the manual control of the user, or controlling according to the personalized pre-configured data of the user. For example, in the manual control mode, after the user returns home, the security system is manually disarmed through the remote controller or the smart phone; after the user leaves the home, the security system is manually armed through the smart phone. User personalized pre-configuration mode, set the time schedule for the air-conditioning cycle to be turned on, or pre-configure the relationship between the infrared detector and the camera perspective. As the smart home system becomes more and more complex, the disadvantages of the two methods are that the user's learning cost and operation complexity are increased. Second, the pre-configuration method may not meet the user's flexibility requirements and lose the use value in actual use. .
针对相关技术中,不能对智能家居系统的运行方式进行灵活控制的问题,还未提出有效的解决方案。In view of the related art, it is impossible to flexibly control the operation mode of the smart home system, and an effective solution has not been proposed.
发明内容Summary of the invention
本发明提供了一种指令处理方法及装置,以至少解决相关技术中不能对智能家居系统的运行方式进行灵活控制的问题。The present invention provides an instruction processing method and apparatus to at least solve the problem that the related art cannot flexibly control the operation mode of the smart home system.
根据本发明实施例的一个方面,提供了一种指令处理方法,包括:监测触发执行指令的条件;在所述条件符合预定规则的情况下,控制所述指令的执行,其中,所述预定规则至少是对一次或多次执行所述指令时对应的条件进行学习得到的。According to an aspect of an embodiment of the present invention, there is provided an instruction processing method comprising: monitoring a condition for triggering execution of an instruction; and controlling execution of the instruction if the condition meets a predetermined rule, wherein the predetermined rule At least the learning of the corresponding condition when the instruction is executed one or more times is obtained.
可选地,在所述条件符合预定规则的情况下,控制所述指令的执行包括:在所述条件符合所述预定规则时,对所述预定规则进行修改提示;接收对所述修改提示的响应;根据所述响应控制所述指令的执行,其中,在根据所述响应确认不修订所述预定规则的情况下,执行所述指令;在根据所述响应确认修订所述预定规则的情况下,在所述条件符合修订后的所述预定规则的情况下,执行所述指令。
Optionally, if the condition meets the predetermined rule, controlling the execution of the instruction includes: when the condition meets the predetermined rule, modifying the predetermined rule; and receiving the prompt for the modification Responding to: controlling execution of the instruction according to the response, wherein the instruction is executed in a case where the predetermined rule is not revised according to the response confirmation; in a case where the predetermined rule is revised according to the response confirmation And executing the instruction if the condition meets the revised predetermined rule.
可选地,所述响应用于指示以下至少之一:对于此次所述条件符合所述预定规则的情况,不执行所述指令;取消所述预定规则;在执行所述指令之后,不再对所述预定规则进行修改提示;在执行所述指令之后,所述条件每次符合所述预定规则或修订后的所述预定规则时均进行所述修改提示。Optionally, the response is used to indicate at least one of: the instruction is not executed for the case that the condition meets the predetermined rule for the time; the predetermined rule is cancelled; after the instruction is executed, no longer And modifying the predetermined rule; after the executing the instruction, the condition prompts the modification when the condition meets the predetermined rule or the revised predetermined rule.
可选地,对所述预定规则进行所述修改提示包括:根据预先配置的选项判断是否对所述预定规则进行所述修改提示,在判断结果为是的情况下,进行所述修改提示;在所述判断结果为否的情况下,控制所述指令的执行包括:执行所述指令。Optionally, performing the modification prompt on the predetermined rule includes: determining, according to a pre-configured option, whether the modification prompt is performed on the predetermined rule, and if the determination result is yes, performing the modification prompt; If the determination result is no, controlling the execution of the instruction includes: executing the instruction.
可选地,所述预定规则存储在本地或者来源于其他网元。Optionally, the predetermined rule is stored locally or from other network elements.
可选地,所述预定规则包括以下至少之一:时间、账号信息、用户位置信息、环境信息、执行所述指令的设备的状态信息或已经向所述设备发送过的指令,其中,账号信息用于标识所述设备。Optionally, the predetermined rule includes at least one of: time, account information, user location information, environment information, status information of a device that executes the instruction, or an instruction that has been sent to the device, where the account information Used to identify the device.
可选地,监测触发执行指令的所述条件包括:按照预先设定的策略监控触发执行指令的所述条件;或者,接收操作指令之后,监测触发执行指令的所述条件。Optionally, the monitoring of the condition for triggering the execution instruction comprises: monitoring the condition for triggering the execution instruction according to a preset policy; or, after receiving the operation instruction, monitoring the condition for triggering the execution instruction.
可选地,在监测触发执行指令的所述条件之前,所述方法还包括:将一次或多次执行所述指令时对应的条件发送至其他网元,其中,所述其他网元为对一次或多次执行所述指令时对应的条件进行学习得到所述预定规则的网元;或者,在本地对一次或多次执行所述指令时对应的条件进行学习得到所述预定规则。Optionally, before the condition of triggering the execution of the instruction is monitored, the method further includes: sending the corresponding condition when the instruction is executed one or more times to another network element, where the other network element is once Or learning the corresponding condition when the instruction is executed multiple times to obtain the network element of the predetermined rule; or learning the corresponding condition when the instruction is executed one or more times locally to obtain the predetermined rule.
可选地,对一次或多次执行所述指令时对应的条件进行学习得到所述预定规则包括:通过合并或归纳多次执行所述指令对应的条件中的相同或相似之处得到所述预定规则。Optionally, learning the corresponding condition when the instruction is executed one or more times to obtain the predetermined rule comprises: obtaining the predetermined by combining or inducting the same or similarity in the condition corresponding to the instruction multiple times. rule.
根据本发明实施例的另一个方面,还提供了另一种指令处理方法,包括:接收一次或多次执行指令时对应的条件;对所述条件进行学习得到预定规则,其中,所述预定规则用于指示接收所述预定规则的主体在条件符合所述预定规则的情况下,控制所述指令的执行;发送所述预定规则。According to another aspect of the embodiments of the present invention, there is provided another instruction processing method, including: receiving a condition corresponding to one or more executions of an instruction; learning the condition to obtain a predetermined rule, wherein the predetermined rule The subject for instructing to receive the predetermined rule controls execution of the instruction if the condition meets the predetermined rule; transmitting the predetermined rule.
可选地,所述预定规则包括以下至少之一:时间、账号信息、用户位置信息、环境信息、执行所述指令的设备的状态信息或已经向所述设备发送过的指令,其中,账号信息用于标识所述设备。Optionally, the predetermined rule includes at least one of: time, account information, user location information, environment information, status information of a device that executes the instruction, or an instruction that has been sent to the device, where the account information Used to identify the device.
可选地,对所述条件进行学习得到所述预定规则包括:通过合并或归纳多次执行所述指令对应的条件中的相同或相似之处得到所述预定规则。Optionally, learning the condition to obtain the predetermined rule comprises: obtaining the predetermined rule by combining or inducting the same or similarities in the conditions corresponding to the instruction multiple times.
根据本发明实施例的一个方面,提供了一种指令处理装置,包括:监测模块,设置为监测触发执行指令的条件;控制模块,设置为在所述条件符合预定规则的情况下,控制所述指令的执行,其中,所述预定规则至少是对一次或多次执行所述指令时对应的条件进行学习得到的。According to an aspect of an embodiment of the present invention, an instruction processing apparatus includes: a monitoring module configured to monitor a condition for triggering an execution instruction; and a control module configured to control the condition if the condition meets a predetermined rule Execution of an instruction, wherein the predetermined rule is obtained by learning at least a condition corresponding to one or more executions of the instruction.
可选地,所述控制模块包括:提示单元,设置为在所述条件符合所述预定规则时,对所
述预定规则进行修改提示;接收单元,设置为接收对所述修改提示的响应;第一执行单元,设置为根据所述响应控制所述指令的执行,其中,在根据所述响应确认不修订所述预定规则的情况下,执行所述指令;第二执行单元,设置为在根据所述响应确认修订所述预定规则的情况下,在所述条件符合修订后的所述预定规则的情况下,执行所述指令。Optionally, the control module includes: a prompting unit, configured to: when the condition meets the predetermined rule,
Determining a predetermined rule to perform a modification prompt; the receiving unit is configured to receive a response to the modification prompt; the first execution unit is configured to control execution of the instruction according to the response, wherein the non-revision is confirmed according to the response In the case of the predetermined rule, the instruction is executed; the second execution unit is configured to, in the case of confirming the predetermined rule according to the response confirmation, in a case where the condition meets the revised predetermined rule, Execute the instructions.
可选地,所述响应用于指示以下至少之一:对于此次所述条件符合所述预定规则的情况,不执行所述指令;取消所述预定规则;在执行所述指令之后,不再对所述预定规则进行修改提示;在执行所述指令之后,所述条件每次符合所述预定规则或修订后的所述预定规则时均进行所述修改提示。Optionally, the response is used to indicate at least one of: the instruction is not executed for the case that the condition meets the predetermined rule for the time; the predetermined rule is cancelled; after the instruction is executed, no longer And modifying the predetermined rule; after the executing the instruction, the condition prompts the modification when the condition meets the predetermined rule or the revised predetermined rule.
可选地,所述提示单元还设置为根据预先配置的选项判断是否对所述预定规则进行所述修改提示,在判断结果为是的情况下,进行所述修改提示;在所述判断结果为否的情况下,控制所述指令的执行包括:执行所述指令。Optionally, the prompting unit is further configured to determine, according to the pre-configured option, whether to perform the modification prompt on the predetermined rule, and if the determination result is yes, perform the modification prompt; In the event of no, controlling the execution of the instructions includes executing the instructions.
可选地,所述预定规则存储在本地或者来源于其他网元。Optionally, the predetermined rule is stored locally or from other network elements.
可选地,所述预定规则包括以下至少之一:时间、账号信息、用户位置信息、环境信息、执行所述指令的设备的状态信息或已经向所述设备发送过的指令,其中,账号信息用于标识所述设备。Optionally, the predetermined rule includes at least one of: time, account information, user location information, environment information, status information of a device that executes the instruction, or an instruction that has been sent to the device, where the account information Used to identify the device.
可选地,所述监测模块还设置为按照预先设定的策略监控触发执行指令的所述条件;或者,接收操作指令之后,监测触发执行指令的所述条件。Optionally, the monitoring module is further configured to monitor the condition that triggers the execution instruction according to a preset policy; or, after receiving the operation instruction, monitor the condition that triggers the execution instruction.
可选地,所述装置还包括:发送模块,设置为将一次或多次执行所述指令时对应的条件发送至其他网元,其中,所述其他网元为对一次或多次执行所述指令时对应的条件进行学习得到所述预定规则的网元;学习模块,设置为在本地对一次或多次执行所述指令时对应的条件进行学习得到所述预定规则。Optionally, the device further includes: a sending module, configured to send a corresponding condition when the instruction is executed one or more times to another network element, where the other network element is configured to perform the one or more times The network element of the predetermined rule is learned by the condition corresponding to the instruction; the learning module is configured to learn the condition corresponding to the one or more executions of the instruction locally to obtain the predetermined rule.
可选地,所述学习模块还设置为通过合并或归纳多次执行所述指令对应的条件中的相同或相似之处得到所述预定规则。Optionally, the learning module is further configured to obtain the predetermined rule by merging or summarizing the same or similarities in the conditions corresponding to the execution of the instruction multiple times.
根据本发明实施例的另一个方面,还提供了另一种指令处理装置,包括:接收模块,设置为接收一次或多次执行指令时对应的条件;学习模块,设置为对所述条件进行学习得到预定规则,其中,所述预定规则用于指示接收所述预定规则的主体在条件符合所述预定规则的情况下,控制所述指令的执行;发送模块,设置为发送所述预定规则。According to another aspect of the embodiments of the present invention, there is still another instruction processing apparatus, including: a receiving module configured to receive a condition corresponding to one or more executions of an instruction; and a learning module configured to learn the condition Obtaining a predetermined rule, wherein the predetermined rule is used to indicate that the subject receiving the predetermined rule controls execution of the instruction if the condition meets the predetermined rule; and the sending module is configured to send the predetermined rule.
可选地,所述预定规则包括以下至少之一:时间、账号信息、用户位置信息、环境信息、执行所述指令的设备的状态信息或已经向所述设备发送过的指令,其中,账号信息用于标识所述设备。Optionally, the predetermined rule includes at least one of: time, account information, user location information, environment information, status information of a device that executes the instruction, or an instruction that has been sent to the device, where the account information Used to identify the device.
可选地,所述学习模块还设置为通过合并或归纳多次执行所述指令对应的条件中的相同或相似之处得到所述预定规则。Optionally, the learning module is further configured to obtain the predetermined rule by merging or summarizing the same or similarities in the conditions corresponding to the execution of the instruction multiple times.
通过本发明实施例,采用监测触发执行指令的条件;在条件符合预定规则的情况下,控
制指令的执行,其中,预定规则至少是对一次或多次执行上述指令时对应的条件进行学习得到的。解决了相关技术中不能对智能家居系统的运行方式进行灵活控制的问题,进而实现了智能家居系统的运行方式的灵活控制,简化了操作,提升了用户体验。Through the embodiment of the present invention, the condition for triggering the execution of the instruction is monitored; and when the condition meets the predetermined rule, the control is performed.
The execution of the instruction, wherein the predetermined rule is obtained by learning at least the condition corresponding to one or more executions of the above instruction. The invention solves the problem that the related mode cannot flexibly control the operation mode of the smart home system, thereby realizing the flexible control of the operation mode of the smart home system, simplifying the operation and improving the user experience.
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的指令处理方法的流程图;1 is a flow chart of an instruction processing method according to an embodiment of the present invention;
图2是根据本发明实施例的指令处理装置的结构框图;2 is a block diagram showing the structure of an instruction processing apparatus according to an embodiment of the present invention;
图3是根据本发明实施例的指令处理装置的结构框图一;3 is a block diagram 1 of a structure of an instruction processing apparatus according to an embodiment of the present invention;
图4是根据本发明实施例的指令处理装置的结构框图二;4 is a block diagram 2 of a structure of an instruction processing apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的指令处理方法的流程图一;FIG. 5 is a flowchart 1 of an instruction processing method according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的指令处理装置的结构框图三;6 is a structural block diagram 3 of an instruction processing apparatus according to an embodiment of the present invention;
图7是根据本发明实施例的智能家居控制方法流程;7 is a flow chart of a smart home control method according to an embodiment of the present invention;
图8是根据本发明实施例的智能家居控制方法中的学习控制指令学习方法流程图;8 is a flowchart of a learning control instruction learning method in a smart home control method according to an embodiment of the present invention;
图9是根据本发明实施例的智能网关相关单元示意图;9 is a schematic diagram of a smart gateway related unit according to an embodiment of the present invention;
图10是根据本发明实施例的网络平台相关单元示意图;FIG. 10 is a schematic diagram of a network platform related unit according to an embodiment of the present invention; FIG.
图11是根据本发明实施例的智能家居网络示意图;11 is a schematic diagram of a smart home network according to an embodiment of the present invention;
图12是根据本发明实施例的交互时序图。Figure 12 is an interaction timing diagram in accordance with an embodiment of the present invention.
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
在本实施例中提供了一种指令处理方法,图1是根据本发明实施例的指令处理方法的流程图,如图1所示,该流程包括如下步骤:An instruction processing method is provided in this embodiment. FIG. 1 is a flowchart of an instruction processing method according to an embodiment of the present invention. As shown in FIG. 1, the flow includes the following steps:
步骤S102,监测触发执行指令的条件;Step S102, monitoring conditions for triggering execution of the instruction;
步骤S104,在条件符合预定规则的情况下,控制指令的执行,其中,该预定规则至少是对一次或多次执行该指令时对应的条件进行学习得到的。Step S104, in the case that the condition meets the predetermined rule, the execution of the instruction is obtained, wherein the predetermined rule is obtained by learning at least the condition corresponding to the execution of the instruction one or more times.
通过上述步骤,至少对一次或多次执行指令时对应的条件进行学习得到预定规则,在监
测到触发执行指令的条件符合预定规则时,控制指令的执行,相比于相关技术中指令的执行主要是被动接受用户的手动控制,或按照用户个性化预配置数据进行控制,上述步骤可以自动学习预定规则减少了用户的手动参与,从而解决了相关技术中不能对智能家居系统的运行方式进行灵活控制的问题,进而实现了智能家居系统的运行方式的灵活控制,简化了操作,提升了用户体验。Through the above steps, at least one or more times when the instruction is executed, the corresponding condition is learned to obtain a predetermined rule.
When it is determined that the condition for triggering the execution instruction meets the predetermined rule, the execution of the control instruction is performed by passively accepting the manual control of the user or performing the control according to the user's personalized pre-configured data, and the above steps may be automatically performed. The learning reservation rule reduces the manual participation of the user, thereby solving the problem that the related technology cannot flexibly control the operation mode of the smart home system, thereby realizing the flexible control of the operation mode of the smart home system, simplifying the operation and improving the user. Experience.
上述学习到的预定规则有可能存在与用户要求存在一些偏差的问题。在一个可选实施例中,在该条件符合预定规则时,对预定规则进行修改提示,通过该提示用户可以对该预定规则进行修改;然后,接收对修改提示的响应;根据该响应控制指令的执行,其中,在根据响应确认不修订该预定规则的情况下,执行该指令;在根据响应确认修订预定规则的情况下,在条件符合修订后的预定规则的情况下,执行该指令。例如,监测到的条件满足执行指令的触发条件时,向用户提示是否修改执行该指令的触发条件,在用户指示不修改执行该指令的触发条件时,直接执行该指令,在用户指示修改执行该指令的触发条件时,接收用户对执行该指令的触发条件的修订,在此对条件进行监测,当再次监测到的条件符合修订后的执行该指令的触发条件情况下,执行该指令。The predetermined rules learned above may have some problems with the user's request. In an optional embodiment, when the condition meets the predetermined rule, the predetermined rule is modified, by which the user can modify the predetermined rule; then, receiving a response to the modification prompt; and according to the response control instruction Execution, wherein the instruction is executed in the case where the predetermined rule is not revised according to the response confirmation; in the case where the predetermined rule is revised according to the response confirmation, the instruction is executed if the condition meets the revised predetermined rule. For example, when the monitored condition satisfies the trigger condition of the execution instruction, the user is prompted whether to modify the trigger condition for executing the instruction, and when the user indicates that the trigger condition for executing the instruction is not modified, the instruction is directly executed, and the user instructs the modification to execute the instruction. When the trigger condition of the instruction is received, the user's revision of the trigger condition for executing the instruction is received, and the condition is monitored here, and the condition is executed when the condition monitored again meets the trigger condition for executing the revised instruction.
上述对修订提示的响应可以有多种表现形式,即该响应还可以体现用户希望执行的其他功能,在一个可选实施例中,该响应可以用于指示以下至少之一:对于此次监测到的条件符合预定规则的情况,不执行该指令;取消预定规则;在执行该指令之后,不再对预定规则进行修改提示;在执行该指令之后,监测到的条件每次符合预定规则或修订后的预定规则时均进行修改提示。从而,用户可以通过对修订提示的响应的不同设置,灵活控制指令的执行。The above response to the revised prompt may have multiple manifestations, that is, the response may also reflect other functions that the user wishes to perform. In an alternative embodiment, the response may be used to indicate at least one of the following: If the condition meets the predetermined rule, the instruction is not executed; the predetermined rule is cancelled; after the instruction is executed, the predetermined rule is no longer modified; after the instruction is executed, the monitored condition meets the predetermined rule or revised each time Suggestions for modification when scheduling rules. Thus, the user can flexibly control the execution of the instructions by different settings of the response to the revision prompt.
预定规则的生成可以是对多次执行该指令时对应的条件进行学习得到的,因此,生成的预定规则相对稳定,用户可以信任该预定规则。在另一种情况下,用户也可以选择不信任该预定规则,而需要查看规则以便于进行修改。考虑到这两种用户需求,在一个可选实施例中,可以增加一个可配置的选项,让用户选择是否需要对学习生成的预定规则进行修改。例如,根据预先配置的选项判断是否对预定规则进行修改提示,在判断结果为是的情况下,进行修改提示;在判断结果为否的情况下,控制指令的执行包括:直接执行该指令。通过该增加的配置选项,可以让用户的选择更加灵活,提高用户体验。The generation of the predetermined rule may be obtained by learning the corresponding condition when the instruction is executed multiple times. Therefore, the generated predetermined rule is relatively stable, and the user can trust the predetermined rule. In another case, the user may also choose not to trust the predetermined rule, but need to view the rules to facilitate the modification. In view of these two user requirements, in an alternative embodiment, a configurable option can be added to allow the user to select whether or not to modify the predetermined rules generated by the learning. For example, it is determined whether to modify the predetermined rule according to the pre-configured option. If the determination result is yes, the modification prompt is performed; if the determination result is negative, the execution of the control instruction includes: directly executing the instruction. With this added configuration option, the user's choices can be made more flexible and the user experience can be improved.
上述实施例或者可选实施方式可以在网关设备中执行,也可以在连接到该网关的智能设备上执行,在网关上执行的情况下,该网关中保存的学习到的预定规则可以针对于不同的智能设备。如果在智能设备上执行,该智能设备中保存的学习到的预定规则可以仅仅是针对自己的,也可以是针对其他智能设备或者网关的。考虑到网关和智能设备的存储空间的问题,这些学习到的规则也可以保存在其他网元上,在需要使用的时候,从其他网元上获取。本段中的网关和智能设备仅仅是一个例子,上述实施例或可选实施方式可以在任何设备上执行。The foregoing embodiment or the optional implementation manner may be performed in a gateway device or on a smart device connected to the gateway. In the case of being executed on the gateway, the learned predetermined rule saved in the gateway may be different. Smart device. If executed on the smart device, the learned predetermined rules saved in the smart device may be only for themselves, or may be for other smart devices or gateways. Considering the storage space of the gateway and the smart device, these learned rules can also be saved on other network elements and obtained from other network elements when needed. The gateway and smart device in this paragraph are merely examples, and the above embodiments or alternative embodiments may be executed on any device.
对于预定规则的学习,可以考虑网关或者智能设备的处理能力,如果其处理能力允许则可以在这些设备上进行。或者,也可以在其他网元上进行学习,减轻网关或智能设备的负担。即,上述提到预定规则存储在本地或者来源于其他网元,在预定规则存储在本地的情况下,在本地对一次或多次执行该指令时对应的条件进行学习得到该预定规则;在预定规则来源于
其他网元的情况下,将一次或多次执行该指令时对应的条件发送至其他网元,其中,其他网元为对一次或多次执行该指令时对应的条件进行学习得到预定规则的网元。预定规则的学习在哪个设备上执行可以综合考虑网络状况和/或设备处理状况,然后再做出选择。在另一个可选的实施方式中,如果有至少两个设备都在学习预定规则,则这至少两个设备可以交换各自学习到的预定规则。For the learning of predetermined rules, the processing power of the gateway or smart device can be considered, and it can be performed on these devices if its processing capability allows. Alternatively, you can learn on other network elements to reduce the burden on the gateway or smart device. That is, the above-mentioned predetermined rule is stored locally or from other network elements, and in the case where the predetermined rule is stored locally, the corresponding condition is learned locally when the instruction is executed one or more times to obtain the predetermined rule; Rules originated
In the case of other network elements, the corresponding condition is sent to other network elements when the instruction is executed one or more times, wherein the other network element is a network that learns the conditions corresponding to one or more executions of the instruction to obtain a predetermined rule. yuan. The execution of the predetermined rules on which device can be performed can take into account the network conditions and/or device processing conditions before making a selection. In another optional embodiment, if at least two devices are learning the predetermined rules, the at least two devices can exchange the predetermined rules learned by each.
预定规则可以包括多种信息,这些信息可以根据不同的需要来进行设定,在另一个可选实施例中,预定规则可以包括以下至少之一:时间、账号信息、用户位置信息、环境信息、执行该指令的设备的状态信息或已经向该设备发送过的指令,其中,账号信息用于标识该设备,如果一个设备上(例如,网关)保存了针对多个智能设备的预定规则,此时就需要该账号信息来区分该规则是针对哪个设备的。如果一个设备的预定规则仅仅是针对自己的,那么就不需要该账号信息。The predetermined rule may include a plurality of information, which may be set according to different needs. In another optional embodiment, the predetermined rule may include at least one of the following: time, account information, user location information, environment information, Status information of the device that executed the instruction or an instruction that has been sent to the device, wherein the account information is used to identify the device, if a predetermined rule for multiple smart devices is saved on one device (eg, a gateway), This account information is needed to distinguish which device the rule is for. If a device's predetermined rules are only for itself, then the account information is not needed.
上述步骤S102中涉及到的监测触发执行指令可以是主动进行监测或被动进行监测,在一个可选实施例中,按照预先设定的策略监控触发执行指令的条件;或者,接收操作指令之后,监测触发执行指令的条件。The monitoring trigger execution instruction involved in the foregoing step S102 may be active monitoring or passive monitoring. In an optional embodiment, the condition for triggering the execution instruction is monitored according to a preset policy; or, after receiving the operation instruction, monitoring The condition that triggers the execution of the instruction.
预定规则的生成也可以通过多种方式实现,在一个可选实施例中,通过合并或归纳多次执行指令对应的条件中的相同或相似之处得到预定规则。例如,可以考虑使用现有的一些模糊算法来进行合并或者归纳。The generation of the predetermined rules can also be accomplished in a number of ways. In an alternative embodiment, the predetermined rules are obtained by merging or summarizing the same or similarities in the conditions corresponding to the multiple execution instructions. For example, consider using some existing fuzzy algorithms to merge or generalize.
在本实施例中还提供了一种指令处理装置,该装置用于实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, an instruction processing device is further provided, which is used to implement the above-mentioned embodiments and optional embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的指令处理装置的结构框图,如图2所示,该装置包括:监测模块22,设置为监测触发执行指令的条件;控制模块24,设置为在该条件符合预定规则的情况下,控制该指令的执行,其中,预定规则至少是对一次或多次执行该指令时对应的条件进行学习得到的。2 is a structural block diagram of an instruction processing apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes: a monitoring module 22 configured to monitor a condition for triggering an execution instruction; and a control module 24 configured to meet the predetermined condition In the case of a rule, the execution of the instruction is controlled, wherein the predetermined rule is obtained by learning at least one or more conditions corresponding to the execution of the instruction.
图3是根据本发明实施例的指令处理装置的结构框图一,如图3所示,控制模块24包括:提示单元242,设置为在该条件符合该预定规则时,对预定规则进行修改提示;接收单元244,设置为接收对该修改提示的响应;第一执行单元246,设置为根据该响应控制该指令的执行,其中,在根据该响应确认不修订预定规则的情况下,执行该指令;第二执行单元248,设置为在根据该响应确认修订预定规则的情况下,在该条件符合修订后的预定规则的情况下,执行该指令。3 is a block diagram of a structure of an instruction processing apparatus according to an embodiment of the present invention. As shown in FIG. 3, the control module 24 includes: a prompting unit 242, configured to modify a predetermined rule when the condition meets the predetermined rule; The receiving unit 244 is configured to receive a response to the modification prompt; the first execution unit 246 is configured to control execution of the instruction according to the response, wherein the instruction is executed if it is confirmed according to the response that the predetermined rule is not revised; The second execution unit 248 is arranged to execute the instruction in the case where the condition conforms to the revised predetermined rule in the case of confirming the revision of the predetermined rule according to the response.
在一个可选实施例中,该响应用于指示以下至少之一:对于此次该条件符合该预定规则的情况,不执行该指令;取消预定规则;在执行该指令之后,不再对预定规则进行修改提示;在执行该指令之后,该条件每次符合预定规则或修订后的预定规则时均进行该修改提示。
In an optional embodiment, the response is for indicating at least one of: for the case that the condition meets the predetermined rule, the instruction is not executed; the predetermined rule is cancelled; after the instruction is executed, the predetermined rule is no longer A modification prompt is made; after the instruction is executed, the modification prompt is performed each time the condition meets the predetermined rule or the revised predetermined rule.
在一个可选实施例中,提示单元242还设置为根据预先配置的选项判断是否对预定规则进行该修改提示,在判断结果为是的情况下,进行该修改提示;在该判断结果为否的情况下,控制该指令的执行包括:执行该指令。In an optional embodiment, the prompting unit 242 is further configured to determine whether to perform the modification prompt on the predetermined rule according to the pre-configured option, and if the determination result is yes, perform the modification prompt; if the determination result is no In the case of controlling the execution of the instruction, the execution of the instruction is performed.
在一个可选实施例中,预定规则存储在本地或者来源于其他网元。In an alternative embodiment, the predetermined rules are stored locally or from other network elements.
在一个可选实施例中,预定规则包括以下至少之一:时间、账号信息、用户位置信息、环境信息、执行该指令的设备的状态信息或已经向该设备发送过的指令,其中,账号信息用于标识该设备。In an optional embodiment, the predetermined rule includes at least one of: time, account information, user location information, environment information, status information of a device that executes the instruction, or an instruction that has been sent to the device, wherein the account information Used to identify the device.
在一个可选实施例中,监测模块22还设置为按照预先设定的策略监控触发执行指令的该条件;或者,接收操作指令之后,监测触发执行指令的该条件。In an alternative embodiment, the monitoring module 22 is further configured to monitor the condition that triggers the execution of the instruction in accordance with a predetermined policy; or, after receiving the operational instruction, monitor the condition that triggered the execution of the instruction.
图4是根据本发明实施例的指令处理装置的结构框图二,如图4所示,该装置还包括:发送模块26,设置为将一次或多次执行该指令时对应的条件发送至其他网元,其中,其他网元为对一次或多次执行该指令时对应的条件进行学习得到该预定规则的网元;学习模块28,设置为在本地对一次或多次执行该指令时对应的条件进行学习得到预定规则。4 is a block diagram of a structure of an instruction processing apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus further includes: a sending module 26 configured to send a corresponding condition when one or more times of executing the instruction to another network. a unit, wherein the other network element is a network element that learns the condition corresponding to one or more executions of the instruction to obtain the predetermined rule; and the learning module 28 is configured to perform a condition corresponding to the local execution of the instruction one or more times. Learn to get the predetermined rules.
在一个可选实施例中,学习模块28还设置为通过合并或归纳多次执行该指令对应的条件中的相同或相似之处得到预定规则。In an alternative embodiment, the learning module 28 is further arranged to derive a predetermined rule by merging or summarizing the same or similarities in the conditions corresponding to the execution of the instruction multiple times.
在本实施例中还提供了一种指令处理方法,图5是根据本发明实施例的指令处理方法的流程图一,如图5所示,该流程包括如下步骤:An instruction processing method is also provided in this embodiment. FIG. 5 is a flowchart 1 of an instruction processing method according to an embodiment of the present invention. As shown in FIG. 5, the flow includes the following steps:
步骤S502,接收一次或多次执行指令时对应的条件;Step S502, receiving a condition corresponding to one or more executions of the instruction;
步骤S504,对该条件进行学习得到预定规则,其中,预定规则用于指示接收预定规则的主体在条件符合预定规则的情况下,控制该指令的执行;Step S504, learning the condition to obtain a predetermined rule, where the predetermined rule is used to indicate that the subject receiving the predetermined rule controls execution of the instruction if the condition meets the predetermined rule;
步骤S506,发送预定规则。Step S506, sending a predetermined rule.
通过上述步骤,将指示接收预定规则的主体在条件符合预定规则的情况下,控制指令的执行,进而接收预定规则的主体可以对指令进行灵活控制,相比于相关技术中指令的执行主要是被动接受用户的手动控制,或按照用户个性化预配置数据进行控制,上述步骤解决了相关技术中不能对智能家居系统的运行方式进行灵活控制的问题,进而实现了智能家居系统的运行方式的灵活控制,简化了操作,提升了用户体验。Through the above steps, the subject instructing to receive the predetermined rule controls the execution of the instruction if the condition meets the predetermined rule, and then the subject receiving the predetermined rule can flexibly control the instruction, and the execution of the instruction is mainly passive compared to the related art. Accepting the user's manual control, or controlling according to the user's personalized pre-configured data, the above steps solve the problem that the related technology cannot flexibly control the operation mode of the smart home system, thereby realizing the flexible control of the operation mode of the smart home system. , simplifying the operation and improving the user experience.
预定规则可以包括多种信息,在另一个可选实施例中,预定规则包括以下至少之一:时间、账号信息、用户位置信息、环境信息、执行该指令的设备的状态信息或已经向该设备发送过的指令,其中,账号信息用于标识该设备。The predetermined rule may include a plurality of information, and in another alternative embodiment, the predetermined rule includes at least one of: time, account information, user location information, environmental information, status information of a device that executes the instruction, or has been directed to the device The sent command, wherein the account information is used to identify the device.
预定规则的生成也可以通过多种方式实现,在一个可选实施例中,对该条件进行学习得到预定规则包括:通过合并或归纳多次执行该指令对应的条件中的相同或相似之处得到预定规则。
The generation of the predetermined rule may also be implemented in a plurality of manners. In an optional embodiment, learning the condition to obtain the predetermined rule includes: obtaining, by combining or inducting the same or similarities in the conditions corresponding to the execution of the instruction multiple times. Schedule rules.
图6是根据本发明实施例的指令处理装置的结构框图三,如图6所示,该装置包括:接收模块62,设置为接收一次或多次执行指令时对应的条件;学习模块64,设置为对该条件进行学习得到预定规则,其中,预定规则用于指示接收该预定规则的主体在条件符合该预定规则的情况下,控制该指令的执行;发送模块66,设置为发送预定规则。6 is a structural block diagram 3 of an instruction processing apparatus according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes: a receiving module 62 configured to receive a condition corresponding to one or more executions of an instruction; and a learning module 64, setting The predetermined rule is obtained by learning the condition, wherein the predetermined rule is used to indicate that the subject receiving the predetermined rule controls the execution of the instruction if the condition meets the predetermined rule; and the sending module 66 is configured to send the predetermined rule.
在一个可选实施例中,预定规则包括以下至少之一:时间、账号信息、用户位置信息、环境信息、执行该指令的设备的状态信息或已经向该设备发送过的指令,其中,账号信息用于标识该设备。In an optional embodiment, the predetermined rule includes at least one of: time, account information, user location information, environment information, status information of a device that executes the instruction, or an instruction that has been sent to the device, wherein the account information Used to identify the device.
在一个可选实施例中,学习模块62还设置为通过合并或归纳多次执行该指令对应的条件中的相同或相似之处得到该预定规则。In an alternative embodiment, the learning module 62 is further configured to derive the predetermined rule by merging or summarizing the same or similarities in the conditions corresponding to the execution of the instruction multiple times.
下面的可选实施例是智能家居系统为例进行的说明。The following alternative embodiment is an illustration of a smart home system.
本可选实施例提供了一种智能家居系统控制方法,实现了系统的自动学习和用户主动干预相结合的控制方法。在本可选实施例中,智能网关搜集并分析用户的使用习惯和操作指令,形成学习控制指令知识库;智能网关在运行中,利用学习控制指令知识库,根据当前环境上下文信息,预测计划执行指令;并向用户发送学习控制指令修正请求,智能网关获取并分析学习控制指令修正响应,并根据分析结果,完成计划执行指令的控制和学习控制指令知识库的优化。The optional embodiment provides a smart home system control method, which implements a control method combining automatic learning of the system and active intervention by the user. In this optional embodiment, the intelligent gateway collects and analyzes the user's usage habits and operation instructions to form a learning control instruction knowledge base; the intelligent gateway uses the learning control instruction knowledge base to predict the planned execution according to the current environmental context information during operation. The instruction sends a learning control instruction correction request to the user, and the intelligent gateway acquires and analyzes the learning control instruction correction response, and completes the control of the planned execution instruction and the optimization of the learning control instruction knowledge base according to the analysis result.
图7是根据本发明实施例的智能家居控制方法流程,图7提供了一种智能家居控制方法,应用于智能家居系统中,该系统至少包括智能网关设备和学习控制指令知识库,上述学习控制指令知识库包括至少一条学习控制指令,上述学习控制指令包括学习控制指令触发条件、对应的计划执行指令和修正参数选项集,上述学习控制指令触发条件包括至少一个属性及对应的属性值,如图7所示,该方法包括如下步骤:7 is a flow chart of a smart home control method according to an embodiment of the present invention, and FIG. 7 provides a smart home control method, which is applied to a smart home system, where the system includes at least a smart gateway device and a learning control instruction knowledge base, and the above learning control The instruction knowledge base includes at least one learning control instruction, where the learning control instruction includes a learning control instruction triggering condition, a corresponding planned execution instruction, and a modified parameter option set, wherein the learning control instruction triggering condition includes at least one attribute and a corresponding attribute value, as shown in the figure. As shown in 7, the method includes the following steps:
步骤S702,智能网关监测环境上下文信息;Step S702, the intelligent gateway monitors environment context information.
步骤S704,智能网关判断环境上下文信息与学习控制指令触发条件是否匹配,当匹配时,执行步骤S706;否则,执行步骤S702;Step S704, the intelligent gateway determines whether the environment context information matches the learning control instruction triggering condition, and when yes, step S706 is performed; otherwise, step S702 is performed;
步骤S706,智能网关通过人机界面,向用户发送学习控制指令修正请求;Step S706: The smart gateway sends a learning control instruction correction request to the user through the human-machine interface.
步骤S708,智能网关获取并分析学习控制指令修正响应,并根据分析结果,优化学习控制指令或控制计划执行指令。Step S708, the intelligent gateway acquires and analyzes the learning control instruction correction response, and optimizes the learning control instruction or the control plan execution instruction according to the analysis result.
其中,上述修正参数选项集包括但不局限于:发送学习控制指令修正请求:YES/NO(NO:不发送,YES:发送);当发送学习控制指令修正请求为YES时,上述修正参数选项集还包括:接受学习控制指令执行且取消后续修正请求或接受学习控制指令执行(且后续每次均发送修正请求)或禁止本次学习控制指令执行或取消本学习控制指令或优化学习控制指令触发条件,包括上述学习控制指令触发条件对应的属性及属性值;The modified parameter option set includes but is not limited to: sending a learning control instruction correction request: YES/NO (NO: no transmission, YES: transmission); when the transmission learning control instruction correction request is YES, the above modified parameter option set The method further includes: accepting the learning control instruction execution and canceling the subsequent correction request or accepting the learning control instruction execution (and subsequently sending the correction request each time) or prohibiting the execution of the learning control instruction or canceling the learning control instruction or the optimization learning control instruction triggering condition , including the attribute and attribute value corresponding to the triggering condition of the learning control instruction;
可选地,步骤S702中,上述环境上下文信息至少包括学习控制指令触发条件所含属性;
Optionally, in step S702, the environment context information includes at least an attribute included in a learning control instruction triggering condition;
可选地,上述步骤S706执行之前,还包括智能网关通过判断上述发送学习控制指令修正请求选项为NO时,智能网关可以直接执行学习控制指令中的计划执行指令;Optionally, before the step S706 is performed, the smart gateway may directly execute the plan execution instruction in the learning control instruction by determining that the sending the learning control instruction correction request option is NO;
可选地,步骤S706中的人工界面包括但不局限于PC、智能手机、电器设备的展示屏幕;Optionally, the manual interface in step S706 includes, but is not limited to, a display screen of a PC, a smart phone, or an electrical device;
可选地,步骤S706中的上述学习控制指令修正请求包括上述修正参数选项集;Optionally, the foregoing learning control instruction correction request in step S706 includes the foregoing modified parameter option set;
可选地,步骤S708中,上述学习控制指令修正响应中包括的结果选项与上述学习控制指令修正请求中的参数选项互相对应。可选的,上述学习控制指令修正响应包括但不局限于接受学习控制指令执行且取消后续修正请求或接受学习控制指令执行(且后续每次均发送修正请求)或禁止本次学习控制指令执行或取消本学习控制指令或优化学习控制指令触发条件,包括上述学习控制指令触发条件对应的属性及属性值;Optionally, in step S708, the result option included in the learning control instruction correction response and the parameter option in the learning control instruction correction request correspond to each other. Optionally, the learning control instruction correction response includes, but is not limited to, accepting the learning control instruction execution and canceling the subsequent modification request or accepting the learning control instruction execution (and subsequently sending the correction request each time) or prohibiting the execution of the learning control instruction or Deactivating the learning control instruction or optimizing the learning control instruction triggering condition, including the attribute and the attribute value corresponding to the triggering condition of the learning control instruction;
可选地,步骤S708中,上述计划执行指令的控制是指智能网关根据环境上下文信息,从匹配的学习控制指令中提取计划执行指令,并控制系统执行上述计划执行指令;上述优化学习控制指令是指智能网关根据上述学习控制指令修正响应中包括的结果选项,修改上述学习控制指令对应的学习控制指令触发条件包括的属性及属性值,并更新学习控制指令知识库;Optionally, in step S708, the control of the plan execution instruction refers to that the smart gateway extracts a plan execution instruction from the matched learning control instruction according to the environment context information, and controls the system to execute the plan execution instruction; the optimized learning control instruction is The intelligent gateway corrects the result option included in the response according to the learning control instruction, modifies the attribute and the attribute value included in the triggering condition of the learning control instruction corresponding to the learning control instruction, and updates the learning control instruction knowledge base;
可选地上述学习控制指令知识库由上述智能网关从网络平台上下载,并存储在智能网关本地系统中,上述知识库的版本由网络平台维护;Optionally, the learning control instruction knowledge base is downloaded from the network platform by the smart gateway, and stored in a local system of the smart gateway, where the version of the knowledge base is maintained by the network platform;
可选地,上述学习控制指令触发条件可以用五元组<T,U,L,E,P>定义,包括五个属性及对应的属性值,其中属性T表示时间,属性U表示用户账号信息,属性L表示用户位置信息,属性E表示家庭环境信息(温度、湿度、照度、噪音等),属性P表示已发生操作指令信息或系统内部状态信息;上述触发条件五元组的属性值至少有一个不为空(Null)。Optionally, the learning control instruction triggering condition may be defined by a quintuple <T, U, L, E, P>, including five attributes and corresponding attribute values, wherein the attribute T represents time, and the attribute U represents user account information. The attribute L represents user location information, the attribute E represents home environment information (temperature, humidity, illuminance, noise, etc.), and the attribute P indicates that operation instruction information or system internal state information has occurred; the trigger condition quintuple has at least attribute values One is not null (Null).
可选地,上述计划执行指令用一元组<S>定义,其中S表示计划执行指令,包括至少一个可执行的指令信息;Optionally, the above-mentioned plan execution instruction is defined by a tuple <S>, where S represents a plan execution instruction, including at least one executable instruction information;
上述学习控制指令包括学习控制指令触发条件和计划执行指令,用二元组<I,S>定义,其中I表示上述的学习控制指令触发条件五元组信息<T,U,L,E,P>,S表示上述计划执行指令;The above learning control instruction includes a learning control instruction trigger condition and a planned execution instruction, which are defined by a binary group <I, S>, wherein I represents the above learning control instruction trigger condition quintuple information <T, U, L, E, P >, S represents the above plan execution instruction;
可选地,上述智能网关跟踪检测环境上下文信息的方法包括主动获取和被动获取,主动获取指智能网关根据系统设定策略,从智能网关内部系统运行、外部受控设备或网络平台中主动获取环境上下文信息;被动获取是指被动接收用户的操作指令和被动接收外部受控设备上报的信息数据;Optionally, the method for tracking the environment context information by the smart gateway includes active acquisition and passive acquisition, and the active acquisition refers to the intelligent gateway actively acquiring the environment from the internal system operation of the intelligent gateway, the external controlled device or the network platform according to the system setting policy. Context information; passive acquisition refers to passively receiving user's operation instructions and passively receiving information data reported by an externally controlled device;
上述计划执行指令在系统中预配置,根据预配置的计划执行指令,通过系统自动学习用户行为习惯,获取到与上述计划执行指令相匹配的学习控制指令触发条件,从而确定学习控制指令集和学习控制指令知识库;The above-mentioned plan execution instruction is pre-configured in the system, and according to the pre-configured plan execution instruction, the system automatically learns the user behavior habits, acquires the learning control instruction trigger condition matching the above-mentioned plan execution instruction, thereby determining the learning control instruction set and learning. Control instruction knowledge base;
可选地,图8是根据本发明实施例的智能家居控制方法中的学习控制指令学习方法流程图,上述学习控制指令学习的步骤如图8所示,包括:
Optionally, FIG. 8 is a flowchart of a learning control instruction learning method in a smart home control method according to an embodiment of the present invention. The learning control instruction learning step is as shown in FIG.
步骤S802,上述智能网关持续获取与学习控制指令有关的所有环境上下文信息,并保存到系统中;Step S802, the smart gateway continuously acquires all environment context information related to the learning control instruction, and saves the information to the system;
步骤S804,上述智能网关侦测到预配置的计划执行指令发生时,根据系统设置及计划执行指令的特性,从系统中获取计划执行指令发生时或发生前一段时间内的环境上下文信息;Step S804, when the smart gateway detects that the pre-configured plan execution instruction occurs, according to the characteristics of the system setting and the plan execution instruction, the environment context information during the period when the plan execution instruction occurs or occurs before is generated from the system;
步骤S806,上述智能网关把上述计划执行指令及有关的环境上下文信息上传到上述网络平台;Step S806, the smart gateway uploads the planned execution instruction and related environment context information to the network platform;
步骤S808,上述网络平台分析上述环境上下文信息,并确定该计划执行指令对应的学习控制指令触发条件五元组信息,并组合成一条候选的学习控制指令,并存储在候选学习控制指令表中;Step S808, the network platform analyzes the environment context information, and determines that the learning control instruction trigger condition quintuple information corresponding to the plan execution instruction is combined into a candidate learning control instruction, and is stored in the candidate learning control instruction table;
步骤S810,网络平台搜集一段时间内的候选学习控制指令,并分析每个候选学习控制指令表,当某个或某种特性的候选学习控制指令出现的频率、次数满足某一个比例、阈值时,则确定上述候选学习控制指令为训练成功的学习控制指令,并合并归纳、存储在学习控制指令知识库中。Step S810, the network platform collects the candidate learning control instructions for a period of time, and analyzes each candidate learning control instruction table. When the frequency and number of occurrences of the candidate learning control instruction of a certain characteristic or a certain characteristic satisfy a certain ratio and a threshold, Then, the candidate learning control instruction is determined as a training control instruction that is successfully trained, and is combined and stored in the learning control instruction knowledge base.
可选地,上述智能控制方法采用模糊理论分析及控制方法;Optionally, the above intelligent control method adopts a fuzzy theory analysis and control method;
可选地,上述智能网关上联口连接到网络平台,连接方式包括但不局限于以太网、WiFi、无源光纤网络(Passive Optical Network,简称为PON)、第三代移动通信系统(3G)/第四代移动通信系统(4G);Optionally, the uplink port of the smart gateway is connected to the network platform, and the connection manner includes but is not limited to Ethernet, WiFi, Passive Optical Network (PON), and third generation mobile communication system (3G). / fourth generation mobile communication system (4G);
上述智能网关通过有线通信或无线通信的方式与一个或多个受控设备连接,智能网关从受控设备中获取相关信息数据,或接收用户的控制指令,实现对受控设备的控制;上述智能网关与受控终端有线通信方式包括但不局限于五类网线、同轴电缆、电力线、电话线等;上述智能网关与受控终端无线通信方式包括但不局限于Zigbee、wifi、蓝牙低功耗(Bluetooth low energy,简称为BLE)、射频(Radio Frequency,简称为RF);The smart gateway is connected to one or more controlled devices by means of wired communication or wireless communication, and the intelligent gateway acquires relevant information data from the controlled device or receives control instructions of the user to implement control of the controlled device; The wired communication mode between the gateway and the controlled terminal includes but is not limited to five types of network cables, coaxial cables, power lines, telephone lines, etc.; the wireless communication methods of the above intelligent gateway and the controlled terminal include but are not limited to Zigbee, wifi, Bluetooth low power consumption. (Bluetooth low energy, referred to as BLE), radio frequency (Radio Frequency, referred to as RF);
可选地,上述受控设备包括但不局限于智能网络之间互连的协议(Internet Protocol,简称为IP)摄像头、安防探测器终端、家庭医疗终端、家电自动化和能源控制终端、智能家电等。Optionally, the controlled device includes, but is not limited to, an Internet Protocol (IP) camera, a security detector terminal, a home medical terminal, a home appliance automation and energy control terminal, a smart home appliance, etc. .
一种应用在智能家居系统中的智能网关,上述智能网关下行通过有线通信或无线通信的方式与一个或多个受控设备连接,智能网关从受控设备中获取相关信息反馈给用户或接收用户的控制指令,实现对受控设备的控制,上述智能网关上行通过有线通信或无线通信方式连接到网络平台,图9是根据本发明实施例的智能网关相关单元示意图,上述智能网关所含处理单元如图9所示,包括:An intelligent gateway applied in a smart home system, wherein the smart gateway is connected to one or more controlled devices by wired communication or wireless communication, and the intelligent gateway obtains relevant information from the controlled device and feeds back to the user or the receiving user. The control command is implemented to control the controlled device. The smart gateway is connected to the network platform by wired communication or wireless communication. FIG. 9 is a schematic diagram of the relevant unit of the intelligent gateway according to the embodiment of the present invention, and the processing unit included in the intelligent gateway As shown in Figure 9, it includes:
存储单元901:设置为保存智能网关获取的环境上下文信息;设置为保存学习控制指令知识库;The storage unit 901 is configured to: save environment context information acquired by the smart gateway; and set to save the learning control instruction knowledge base;
数据采集单元902:智能网关持续获取与学习控制指令有关的环境上下文信息并保存到系统中;智能网关侦测到预配置的计划执行指令发生时,根据系统设置及计划执行指令的特性,
从系统中获取计划执行指令发生时或发生前一段时间内的环境上下文信息;智能网关把上述计划执行指令及有关的环境上下文信息上传到上述网络平台;The data collection unit 902: the intelligent gateway continuously acquires the environment context information related to the learning control instruction and saves it to the system; when the smart gateway detects that the pre-configured plan execution instruction occurs, according to the characteristics of the system setting and the planned execution instruction,
Obtaining environmental context information from the system when the planned execution instruction occurs or a period of time before the occurrence; the intelligent gateway uploads the planned execution instruction and related environment context information to the network platform;
智能控制单元903:智能网关查询上述学习控制指令知识库,并比较上述知识库包括的学习控制指令触发条件所含属性及属性值与环境上下文信息的匹配程度;当某条学习控制指令触发条件与上述环境上下文信息匹配时,智能网关通过人机界面,向用户发送学习控制指令修正请求,上述修正请求中包括修正参数选项集;智能网关根据上述学习控制指令修正响应,完成上述计划执行指令的控制和上述学习控制指令知识库的优化。The intelligent control unit 903: the intelligent gateway queries the learning control instruction knowledge base, and compares the matching degree between the attribute and the attribute value and the environmental context information of the learning control instruction triggering condition included in the knowledge base; when a learning control instruction triggers the condition When the environment context information is matched, the intelligent gateway sends a learning control instruction correction request to the user through the human-machine interface, and the correction request includes a correction parameter option set; the intelligent gateway corrects the response according to the learning control instruction, and completes the control of the planned execution instruction. And the optimization of the learning control instruction knowledge base described above.
可选地,上述智能控制单元中,学习控制指令知识库的优化是指智能网关根据上述学习控制指令修正响应中包括的结果选项,修改上述学习控制指令对应的学习控制指令触发条件包括的属性及属性值,并更新学习控制指令知识库;Optionally, in the intelligent control unit, the optimization of the learning control instruction knowledge base refers to: the intelligent gateway corrects the result option included in the response according to the learning control instruction, and modifies the attribute included in the triggering condition of the learning control instruction corresponding to the learning control instruction. Attribute value and update the learning control instruction knowledge base;
通讯单元904:根据数据采集单元执行结果,向网络平台发送环境上下文信息及对应的计划执行指令;接收智能控制单元的控制消息,控制外围的受控终端和网络平台;The communication unit 904: transmitting the environment context information and the corresponding plan execution instruction to the network platform according to the execution result of the data collection unit; receiving the control message of the intelligent control unit, and controlling the peripheral controlled terminal and the network platform;
可选地,上述智能网关下联口与受控之间的通信方式包括但不局限于五类网线、同轴电缆、电力线、电话线、Zigbee、wifi、BLE、RF等;Optionally, the communication manner between the uplink and the controlled interface of the smart gateway includes but is not limited to five types of network cables, a coaxial cable, a power line, a telephone line, a Zigbee, a wifi, a BLE, an RF, and the like;
可选地,上述智能网关上联口连接到网络平台,连接方式包括但不局限于以太网、WiFi、PON、移动3G/4G;Optionally, the uplink port of the smart gateway is connected to the network platform, and the connection manner includes but is not limited to Ethernet, WiFi, PON, and mobile 3G/4G;
一种应用在智能家居系统中的网络平台,上述网络平台与智能网关相连,实现对智能网关及用户的管理、管理指令的传输,图10是根据本发明实施例的网络平台相关单元示意图,所含处理单元示意图如图10所示,包括:A network platform is applied in a smart home system, and the network platform is connected to an intelligent gateway to implement management of management and management commands of the intelligent gateway and the user. FIG. 10 is a schematic diagram of a related unit of the network platform according to an embodiment of the present invention. A schematic diagram of a processing unit is shown in FIG. 10, including:
存储单元1001:设置为保存智能网关上传的计划执行指令及有关的环境上下文信息;设置为保存候选学习控制指令表;设置为保存学习控制指令知识库;The storage unit 1001 is configured to: save a plan execution instruction uploaded by the smart gateway and related environment context information; set to save a candidate learning control instruction table; and set to save the learning control instruction knowledge base;
学习单元1002:网络平台分析上述环境上下文信息,并确定该计划执行指令对应的学习控制指令触发条件五元组信息,并组合成一条候选的学习控制指令,并存储在候选学习控制指令表中;网络平台搜集一段时间内的候选学习控制指令,并分析候选学习控制指令表,当某个候选的学习控制指令出现的概率或次数大于某一个比例或阈值时,则确定该候选学习控制指令为训练成功的学习控制指令,并存储在学习控制指令知识库中。根据智能网关传送的知识库调整请求,完成知识库的更新;The learning unit 1002: the network platform analyzes the environment context information, and determines the learning control instruction trigger condition quintuple information corresponding to the plan execution instruction, and combines them into a candidate learning control instruction, and stores them in the candidate learning control instruction table; The network platform collects the candidate learning control instruction for a period of time, and analyzes the candidate learning control instruction table. When the probability or the number of occurrences of a candidate learning control instruction is greater than a certain ratio or threshold, determining the candidate learning control instruction as training Successful learning control instructions are stored in the learning control instruction knowledge base. Complete the update of the knowledge base according to the knowledge base adjustment request transmitted by the intelligent gateway;
通讯单元1003:根据学习单元的处理结果,向智能网关下发学习控制指令知识库;设置为接收智能网关上传的计划执行指令及有关的环境上下文信息;接收智能网关设备发送的知识库更新。The communication unit 1003: sends a learning control instruction knowledge base to the smart gateway according to the processing result of the learning unit; and is configured to receive the plan execution instruction and related environment context information uploaded by the smart gateway; and receive the knowledge base update sent by the smart gateway device.
本可选实施例以典型的智能家居系统来说明,本系统包括部署在网络中的智能家居网络平台(以下简称网络平台)、部署在业主家中的智能网关、以及若干门窗磁探测器、红外探测器、智能开关面板、智能插座、红外转发控制器(可以控制热水器、空调等白色家电的开/关)
等。智能网关通过有线方式接入到家用无线路由器,并通过驻地网接入到网络平台;门窗磁、红外探测器、红外转发控制器等传感器通过RF433Mhz无线接入到智能网关;业主随身携带专用的RF433Mhz无线遥控器设备,通过该无线遥控器与智能网关的通信,可以在家中完成智能家居安全系统的布防、撤防,或业主通过智能手机专用应用程序(Application,简称为APP)远程控制家中空调的开启/关闭,或通过智能开关面板控制家中的照明。图11是根据本发明实施例的智能家居网络示意图,参照智能家居系统网络示意图11。The optional embodiment is illustrated by a typical smart home system. The system includes a smart home network platform (hereinafter referred to as a network platform) deployed in the network, an intelligent gateway deployed in the owner's home, and a plurality of door and window magnetic detectors and infrared detection. , intelligent switch panel, smart socket, infrared forwarding controller (can control the on/off of white goods such as water heaters and air conditioners)
Wait. The intelligent gateway accesses the home wireless router through the wired mode and accesses the network platform through the resident network; the sensors such as the door and window magnetic, infrared detector, and infrared forwarding controller are wirelessly connected to the intelligent gateway through the RF433Mhz; the owner carries the dedicated RF433Mhz The wireless remote control device can communicate with the intelligent gateway through the wireless remote controller, and can complete the arming and disarming of the smart home security system at home, or the owner remotely controls the opening of the home air conditioner through the smart phone-specific application (Application, referred to as APP). / Turn off, or control the lighting in your home through the smart switch panel. FIG. 11 is a schematic diagram of a smart home network according to an embodiment of the present invention, with reference to a smart home system network diagram 11.
下面以开启空调为例进行说明。The following is an example of turning on the air conditioner.
在一个可选实施例中,考虑业主的正常使用场景:天气炎热时(例如33度以上),业主通常下午6点钟在公司时,即开始通过智能手机专用APP提前打开家中的空调系统,目的是保证在6:30到家时,家中可以保持在空调预设的24度左右。In an alternative embodiment, consider the normal use scenario of the owner: when the weather is hot (for example, above 33 degrees), the owner usually starts to open the air conditioning system in the home in advance through the smartphone-specific APP at 6 o'clock in the afternoon. It is guaranteed that when you arrive home at 6:30, your home can stay at around 24 degrees in the air conditioner.
详细实施过程如下:The detailed implementation process is as follows:
本可选实施例中,系统预配置计划执行指令S1=“开启空调”,以便系统有针对性、高效率的执行学习过程。In this alternative embodiment, the system pre-configuration plan execution instruction S1 = "turn on the air conditioner", so that the system performs the learning process in a targeted and efficient manner.
本可选实施例中,智能网关和网络平台先通过较长一段时间的运行(默认30天),搜集业主的行为习惯数据,并进行数据分析,最后获取上述计划执行指令相关的学习控制指令,实施步骤包括:In the optional embodiment, the intelligent gateway and the network platform first collect the behavior data of the owner through a long period of operation (default 30 days), and perform data analysis, and finally obtain the learning control instruction related to the plan execution instruction. Implementation steps include:
步骤S11:上述智能网关周期获取与学习控制指令有关的所有环境上下文信息,并保存到系统中;本实施例中,与S1“开启空调”有关的环境上下文信息至少包括“通过遥控器开启空调的时间、开启空调时家中的温度”;智能网关获取到上述环境上下文信息后,通过存储单元,保存在智能网关中;Step S11: The above-mentioned intelligent gateway periodically acquires all the environment context information related to the learning control instruction, and saves it to the system. In this embodiment, the environment context information related to S1 “turning on the air conditioner” includes at least “turning on the air conditioner through the remote controller” Time, the temperature at home when the air conditioner is turned on"; after the intelligent gateway obtains the above environmental context information, it is saved in the intelligent gateway through the storage unit;
步骤S12:上述智能网关侦测到预定义的计划执行指令发生时,根据系统设置及计划执行指令的特性,从系统中获取计划执行指令发生时或发生之前一段时间内的环境上下文信息;本实施例中,智能网关获侦测到S1“开启空调”发生时,则从环境上下文信息中提取“通过遥控器开启空调的时间、开启空调时家中的温度”,本实施例列举5组,数据为“18:00、33”,“18:06、34”,“18:09、32”,“17:56、35”,“23:03、34”;Step S12: When the smart gateway detects that a predefined plan execution instruction occurs, according to the characteristics of the system setting and the planned execution instruction, the environment context information of the system execution instruction is generated or occurs for a period of time before the occurrence of the planned execution instruction; In the example, when the smart gateway detects that the S1 "turn on the air conditioner" occurs, the environment context information is extracted from the "time when the air conditioner is turned on by the remote controller and the temperature at the home when the air conditioner is turned on". In this embodiment, five groups are listed, and the data is "18:00, 33", "18:06, 34", "18:09, 32", "17:56, 35", "23:03,34";
步骤S13:上述智能网关把上述计划执行指令及有关的环境上下文信息上传到上述网络平台;本实施例中,智能网关在获取到较长一段时间内(该时间可预先配置30天)的环境上下文信息上传到网络平台;Step S13: The smart gateway uploads the plan execution instruction and the related environment context information to the network platform. In this embodiment, the smart gateway acquires an environment context that is pre-configured for 30 days in a long period of time. Upload information to the web platform;
步骤S14:上述网络平台分析上述环境上下文信息,并确定该计划执行指令对应的学习控制指令触发条件五元组信息,并组合成一条候选的学习控制指令,并存储在候选学习控制指令表中;本可选实施例中,候选学习控制指令表示意如下:
Step S14: The network platform analyzes the environment context information, and determines that the learning control instruction trigger condition quintuple information corresponding to the plan execution instruction is combined into a candidate learning control instruction, and is stored in the candidate learning control instruction table; In this alternative embodiment, the candidate learning control instruction is expressed as follows:
表1-1:候选学习控制指令示意表Table 1-1: Schematic diagram of candidate learning control instructions
序号Serial number | 候选学习控制指令Candidate learning control instruction |
11 | “18:00、33”|S1“开启空调”"18:00, 33" | S1 "turn on the air conditioner" |
22 | “18:06、34”|S1“开启空调”"18:06, 34"|S1 "turn on the air conditioner" |
33 | “18:09、32”|S1“开启空调”"18:09, 32"|S1 "turn on the air conditioner" |
44 | “17:56、35”|S1“开启空调”"17:56, 35"|S1 "turn on the air conditioner" |
55 | “23:03、34”|S1“开启空调”"23:03, 34"|S1 "turn on the air conditioner" |
步骤S15:网络平台搜集一段时间内的候选学习控制指令,并分析每个候选学习控制指令表,当某个候选的学习控制指令出现的概率、次数或区间特性满足某一个比例、阈值或区间时,则确定该候选学习控制指令为训练成功的学习控制指令,并合并归纳、存储在学习控制指令知识库中。Step S15: The network platform collects the candidate learning control instructions for a period of time, and analyzes each candidate learning control instruction table, when the probability, the number of times, or the interval characteristics of a candidate learning control instruction meets a certain ratio, threshold, or interval. And determining, the candidate learning control instruction is a training control instruction that is successfully trained, and is combined and stored in the learning control instruction knowledge base.
本可选实施例中,采用模糊理论分析的方法,网络平台分析后、归纳合并成出一条学习控制指令:In the optional embodiment, the method of fuzzy theory analysis is adopted, and the network platform analyzes and merges into a learning control instruction:
表1-2:本可选实施例中的学习控制指令Table 1-2: Learning Control Instructions in the Alternative Embodiment
本可选实施例中,包括上述学习控制指令的知识库统一存储在网络平台中,在系统的运行过程中,知识库的维护更新由网络平台完成,为提高学习控制的效率,智能网关根据网络平台的更新通知,自动从网络平台下载与上述智能网关绑定的最新知识库;In the optional embodiment, the knowledge base including the above learning control instruction is uniformly stored in the network platform. During the running process of the system, the maintenance update of the knowledge base is completed by the network platform. To improve the efficiency of the learning control, the intelligent gateway is based on the network. The update notification of the platform automatically downloads the latest knowledge base bound to the above intelligent gateway from the network platform;
本可选实施例中,假设业主的一个应用场景:夏天,天气炎热,温度在33度。业主的无线遥控器ID为“yk010101”。在智能网关已获取到学习控制指令知识库前提下,图12是根据本发明实施例的交互时序图,上述智能控制方法得实施细节如图12所示,包括:In this alternative embodiment, assume an application scenario for the owner: in summer, the weather is hot and the temperature is 33 degrees. The owner's wireless remote control ID is “yk010101”. FIG. 12 is an interaction sequence diagram according to an embodiment of the present invention. The implementation details of the foregoing intelligent control method are as shown in FIG. 12, and include:
步骤S1202:智能网关监控家庭环境上下文信息;本可选实施例s中,学习控制指令触发条件所含属性相关的环境上下文信息包括“系统当前时间、业主无线遥控器ID号、家里的当前温度”等;智能网关周期检测上述信息;Step S1202: The smart gateway monitors the home environment context information. In the optional embodiment s, the environment context information related to the attribute included in the learning control instruction trigger condition includes “the current time of the system, the owner wireless remote control ID number, and the current temperature of the home”. Etc; the intelligent gateway periodically detects the above information;
步骤S1204:智能网关判断环境上下文信息与学习控制指令触发条件是否匹配,当匹配时,
执行步骤S1206;否则,执行步骤S1202;本可选实施例中,学习控制指令触发条件中的对应属性值包括:T=“18:00”、U=“yk010101”、E=“32-34”。本实施例中,环境上下文信息是温度33度、业主的遥控器ID以及系统当前时间,满足S3“开启空调”计划执行指令对应的学习控制指令触发条件,所以结果是匹配,执行步骤S1206;Step S1204: The smart gateway determines whether the environment context information matches the trigger condition of the learning control instruction. When matching,
Step S1206 is performed; otherwise, step S1202 is performed; in the optional embodiment, the corresponding attribute value in the learning control instruction triggering condition includes: T=“18:00”, U=“yk010101”, E=“32-34” . In this embodiment, the environment context information is the temperature 33 degrees, the owner's remote controller ID and the system current time, satisfying the learning control command triggering condition corresponding to the S3 "turn on the air conditioner" execution instruction, so the result is a match, step S1206 is performed;
步骤S1206:智能网关通过人机界面,向用户发送学习控制指令修正请求;Step S1206: The smart gateway sends a learning control instruction correction request to the user through the human machine interface;
本可选实施例中,人工界面是智能手机;业主在智能手机上已安装智能家居系统的APP软件,智能手机通过3G方式与智能网关之间进行数据通讯;可选地,在完成此人机交互前,业主使用注册账号登陆APP软件,并完成智能网关和账号的绑定,并成功添加外围传感器,包括随身携带遥控器(ID=yk010101),智能手机APP和智能网关都已成功注册到网络平台,智能网关在完成步骤S1204后,检测修正参数选项集中的发送学习控制指令修正请求选型,判断为YES,所以通过自定义的互联网协议向此智能手机APP发送学习控制指令修正请求消息;In the optional embodiment, the artificial interface is a smart phone; the owner has installed the APP software of the smart home system on the smart phone, and the smart phone communicates with the intelligent gateway through the 3G mode; optionally, the man-machine is completed. Before the interaction, the owner uses the registered account to log in to the APP software, completes the binding of the smart gateway and the account, and successfully adds peripheral sensors, including the carry-on remote control (ID=yk010101), the smart phone APP and the smart gateway have been successfully registered to the network. After the step S1204 is completed, the smart gateway detects the selection of the transmission learning control instruction correction request in the correction parameter option set, and determines that it is YES, so the learning control instruction correction request message is sent to the smart phone APP through the customized Internet protocol;
上述学习控制指令修正请求包括修正参数选项集;其中,上述修正参数选项集包括:发送学习控制指令修正请求:YES(NO:不发送,YES:发送);当发送学习控制指令修正请求为YES时,上述修正参数选项集还包括:接受学习控制指令执行且取消后续修正请求或接受学习控制指令执行(且后续每次均发送修正请求)或禁止本次学习控制指令执行或取消本学习控制指令或(和)优化学习控制指令触发条件,包括上述学习控制指令触发条件对应的属性及属性值,其中包括的属性及属性值包括<T=“18:00”,U=“yk010101”,L=“空(null)”,E=“32-34”,P=“null”>,其中的T、U、E参数允许用户查看和修改;The learning control instruction correction request includes a correction parameter option set; wherein the correction parameter option set includes: sending a learning control instruction correction request: YES (NO: no transmission, YES: transmission); when sending the learning control instruction correction request is YES The modified parameter option set further includes: accepting the learning control instruction execution and canceling the subsequent modification request or accepting the learning control instruction execution (and subsequently sending the correction request each time) or prohibiting the current learning control instruction from executing or canceling the learning control instruction or (and) optimizing the learning control instruction triggering condition, including the attribute and the attribute value corresponding to the triggering condition of the learning control instruction, wherein the attribute and the attribute value include <T=“18:00”, U=“yk010101”, L=“ Empty (null), E = "32-34", P = "null">, where the T, U, E parameters allow the user to view and modify;
步骤S1208:智能网关获取并分析学习控制指令修正响应,并根据分析结果,优化学习控制指令或控制计划执行指令。本实施例中,上述学习控制指令修正响应中包括的结果选项与上述学习控制指令修正请求中的参数选项互相对应,且用户智能手机APP再收到学习控制指令修正请求时,通过手机屏幕显示出学习控制指令修正请求中的参数选项,供用户做出选择或调整,本实施例中,用户选择的结果是:优化学习控制指令触发条件=YES,且智能网关获取到的用户反馈是E=“32-38”,即用户希望调整环境温度的触发条件上限到38度,以便更好的适应突发的高温天气,其他选项都未选择;Step S1208: The intelligent gateway acquires and analyzes the learning control instruction correction response, and optimizes the learning control instruction or the control plan execution instruction according to the analysis result. In this embodiment, the result option included in the learning control instruction correction response and the parameter option in the learning control instruction correction request correspond to each other, and when the user smartphone APP receives the learning control instruction correction request, the mobile phone APP displays the mobile phone screen. The parameter selection in the control command correction request is provided for the user to make a selection or adjustment. In this embodiment, the result of the user selection is: the optimization learning control instruction triggering condition=YES, and the user feedback obtained by the intelligent gateway is E=” 32-38”, that is, the upper limit of the trigger condition for the user to adjust the ambient temperature to 38 degrees, in order to better adapt to the sudden high temperature weather, other options are not selected;
步骤S1210:智能网关在接收到响应消息后,修改本学习控制指令触发条件为<T=“18:00”,U=“yk010101”,L=“null”,E=“32-38”,P=“null”>,后续的计划执行指令控制将按照新的学习控制指令触发条件实现。本次的计划执行指令因也满足新的学习控制指令触发条件,所以系统会执行计划执行指令。Step S1210: After receiving the response message, the smart gateway modifies the learning control instruction triggering condition to be <T=“18:00”, U=“yk010101”, L=“null”, E=“32-38”, P = "null">, subsequent planned execution instruction control will be implemented according to the new learning control instruction trigger condition. The current plan execution instruction also satisfies the new learning control instruction trigger condition, so the system executes the plan execution instruction.
本可选实施例中,针对上述典型的智能家居系统,上述智能网关跟踪检测环境上下文信息的方法包括主动获取和被动获取,主动获取指智能网关根据系统设定策略,从智能网关内部系统运行、外部受控设备或网络平台中主动获取环境上下文信息;被动获取是指被动接收用户的操作指令和被动接收外部受控设备上报的信息数据,获取的环境上下文信息包括但不局限于时间信息、用户账号信息、用户位置信息、家庭环境的温度、湿度、照度、噪音、室
内空气指标以及用户控制家电开关消息、安防布撤防消息、报警解除消息、摄像头视频控制消息、摄像头主动上报的移动侦测消息、门磁主动上报的触发报警消息、红外探测器主动上报的触发报警消息、烟雾探测器主动上报的触发报警消息等;In the foregoing optional embodiment, for the above-mentioned typical smart home system, the method for tracking and detecting the environment context information by the smart gateway includes active acquisition and passive acquisition, and the active acquisition refers to the intelligent gateway running from the internal system of the intelligent gateway according to the system setting policy. The externally controlled device or the network platform actively obtains the environment context information; the passive acquisition refers to passively receiving the user's operation instruction and passively receiving the information data reported by the externally controlled device, and the acquired environmental context information includes but is not limited to time information and users. Account information, user location information, temperature, humidity, illuminance, noise, room in the home environment
The internal air indicator and the user control appliance switch message, the security cloth disarming message, the alarm release message, the camera video control message, the motion detection message actively reported by the camera, the triggered alarm message of the active magnetic report of the door magnetic field, and the triggering alarm triggered by the infrared detector actively reporting The message, the smoke detector actively reports the triggering alarm message, etc.;
本可选实施例中,上述智能控制方法采用模糊理论分析及控制方法;In the optional embodiment, the intelligent control method uses a fuzzy theory analysis and control method;
本可选实施例中中,上述智能网关上联口连接到网络平台,连接方式包括但不局限于以太网、WiFi、PON、移动3G/4G;In the optional embodiment, the uplink port of the smart gateway is connected to the network platform, and the connection manner includes but is not limited to Ethernet, WiFi, PON, and mobile 3G/4G;
上述智能网关通过有线通信或无线通信的方式与一个或多个受控设备连接,智能网关从受控设备中获取相关信息数据,或接收用户的控制指令,实现对受控设备的控制;上述智能网关与受控终端有线通信方式包括但不局限于五类网线、同轴电缆、电力线、电话线等;上述智能网关与受控终端无线通信方式包括但不局限于Zigbee、wifi、BLE、RF;The smart gateway is connected to one or more controlled devices by means of wired communication or wireless communication, and the intelligent gateway acquires relevant information data from the controlled device or receives control instructions of the user to implement control of the controlled device; The wired communication mode between the gateway and the controlled terminal includes but is not limited to five types of network cables, coaxial cables, power lines, telephone lines, etc.; the wireless communication methods of the smart gateway and the controlled terminal include but are not limited to Zigbee, wifi, BLE, RF;
本可选实施例中,上述受控设备包括智能面板、智能插座或红外遥控转发器、温度传感器等。In the optional embodiment, the controlled device includes a smart panel, a smart socket or an infrared remote control transponder, a temperature sensor, and the like.
一种应用在智能家居系统中的智能网关,本实施例中,智能网关下行通过有线通信或无线通信的方式与一个或多个受控设备连接,智能网关从受控设备中获取相关信息反馈给用户或接收用户的控制指令,实现对受控设备的控制,上述智能网关上行通过有线通信或无线通信方式连接到网络平台,上述智能网关特性包括:An intelligent gateway used in a smart home system. In this embodiment, the intelligent gateway is connected to one or more controlled devices by means of wired communication or wireless communication, and the intelligent gateway obtains relevant information feedback from the controlled device. The user or the user receives the control command to control the controlled device. The smart gateway uplink is connected to the network platform by wired communication or wireless communication. The smart gateway features include:
存储单元:设置为保存智能网关获取的环境上下文信息;设置为保存学习控制指令知识库;本可选实施例中,智能网关跟踪检测S1“开启空调”相关的环境上下文信息,数据(此处仅列出本实施例提交的数据)为“18:00、33”,“18:06、34”,“18:09、32”,“17:56、35”,“23:03、34”;当学习控制指令知识库训练成功后,本存储单元将会在闪存(flash)中通过数据表格或配置形式永久存储知识库,例如本实施中,知识库包括一条学习控制指令The storage unit is configured to save the environment context information acquired by the intelligent gateway; and is configured to save the learning control instruction knowledge base; in the optional embodiment, the intelligent gateway tracks and detects the environmental context information related to the S1 “turning on the air conditioner”, and data (only List the data submitted in this embodiment) as "18:00, 33", "18:06, 34", "18:09, 32", "17:56, 35", "23:03,34"; After the learning control instruction knowledge base is successfully trained, the storage unit will permanently store the knowledge base in a flash table (flash) through a data table or a configuration form. For example, in the present embodiment, the knowledge base includes a learning control instruction.
数据采集单元(相当于上述监测模块22):智能网关持续获取与学习控制指令有关的环境上下文信息并保存到系统中;智能网关侦测到预配置的计划执行指令发生时,根据系统设置及计划执行指令的特性,从系统中获取计划执行指令发生时或发生前一段时间内的环境上下文信息;智能网关把上述计划执行指令及有关的环境上下文信息上传到上述网络平台;The data collection unit (corresponding to the above-mentioned monitoring module 22): the intelligent gateway continuously acquires the environment context information related to the learning control instruction and saves it to the system; when the intelligent gateway detects that the pre-configured plan execution instruction occurs, according to the system setting and planning Executing the characteristics of the instruction, obtaining environment context information from the system when the planned execution instruction occurs or a period of time before the occurrence; the intelligent gateway uploads the planned execution instruction and related environment context information to the network platform;
智能控制单元(相当于上述控制模块24):智能网关查询上述学习控制指令知识库,并比较上述知识库包括的学习控制指令触发条件所含属性及属性值与环境上下文信息的匹配程度;当某条学习控制指令触发条件与上述环境上下文信息匹配时,智能网关通过人机界面,向用户发送学习控制指令修正请求,上述修正请求中包括修正参数选项集;智能网关根据上述学习控制指令修正响应,完成上述计划执行指令的控制和上述学习控制指令知识库的优化。其中,上述智能控制单元中,学习控制指令知识库的优化是指智能网关根据上述学习控制指令修正响应中包括的结果选项,修改上述学习控制指令对应的学习控制指令触发条件包括的属
性及属性值,并更新学习控制指令知识库;本实施例中的控制单元执行方式,参照本实施例中的步骤S1204、S1206、S1208;An intelligent control unit (corresponding to the above-mentioned control module 24): the intelligent gateway queries the learning control instruction knowledge base, and compares the matching degree between the attribute and the attribute value of the learning control instruction triggering condition included in the knowledge base and the environment context information; When the triggering condition of the learning control instruction matches the environmental context information, the intelligent gateway sends a learning control instruction correction request to the user through the human-machine interface, where the correction request includes a modified parameter option set; the intelligent gateway corrects the response according to the learning control instruction. The control of the above-mentioned plan execution instruction and the optimization of the above-mentioned learning control instruction knowledge base are completed. The optimization of the learning control instruction knowledge base in the intelligent control unit refers to that the intelligent gateway modifies the result option included in the response control command according to the learning control instruction, and modifies the genus included in the triggering condition of the learning control instruction corresponding to the learning control instruction.
And the attribute value, and update the learning control instruction knowledge base; in this embodiment, the control unit execution manner, refer to steps S1204, S1206, S1208 in this embodiment;
通讯单元:根据数据采集单元执行结果,向网络平台发送环境上下文信息及对应的计划执行指令;接收智能控制单元的控制消息,控制外围的受控终端和网络平台;The communication unit: sends the environment context information and the corresponding plan execution instruction to the network platform according to the execution result of the data collection unit; receives the control message of the intelligent control unit, and controls the peripheral controlled terminal and the network platform;
其中,上述智能网关下联口与受控之间的通信方式包括但不局限于五类网线、同轴电缆、电力线、电话线、Zigbee、wifi、BLE、RF等;The communication manner between the uplink and the controlled interface of the smart gateway includes but is not limited to five types of network cables, coaxial cables, power lines, telephone lines, Zigbee, wifi, BLE, RF, and the like;
其中,上述智能网关上联口连接到网络平台,连接方式包括但不局限于以太网、WiFi、PON、移动3G/4G;The uplink port of the smart gateway is connected to the network platform, and the connection manner includes but is not limited to Ethernet, WiFi, PON, and mobile 3G/4G;
一种应用在智能家居系统中的网络平台,本可选实施例中,网络平台与智能网关相连,实现对智能网关及用户的管理、管理指令的传输,主要特性包括:A network platform is applied in a smart home system. In the optional embodiment, the network platform is connected to the intelligent gateway to implement management and management command transmission of the intelligent gateway and the user. The main features include:
存储单元(上述接收模块62实现了该存储单元的功能):设置为保存智能网关上传的计划执行指令及有关的环境上下文信息;设置为保存候选学习控制指令表;设置为保存学习控制指令知识库;a storage unit (the receiving module 62 implements the function of the storage unit): configured to save a plan execution instruction uploaded by the smart gateway and related environment context information; set to save a candidate learning control instruction table; and set to save the learning control instruction knowledge base ;
学习单元(相当于上述学习模块64):网络平台分析上述环境上下文信息,并确定该计划执行指令对应的学习控制指令触发条件五元组信息,并组合成一条候选的学习控制指令,并存储在候选学习控制指令表中;网络平台搜集一段时间内的候选学习控制指令,并分析候选学习控制指令表,当某个候选的学习控制指令出现的概率或次数大于某一个比例或阈值时,则确定该候选学习控制指令为训练成功的学习控制指令,并存储在学习控制指令知识库中。a learning unit (corresponding to the learning module 64): the network platform analyzes the environment context information, and determines a learning control instruction trigger condition quintuple information corresponding to the plan execution instruction, and combines them into a candidate learning control instruction, and stores the In the candidate learning control instruction list; the network platform collects the candidate learning control instructions for a period of time, and analyzes the candidate learning control instruction table, and determines when the probability or the number of occurrences of a candidate learning control instruction is greater than a certain ratio or threshold. The candidate learning control instruction is a training control instruction that is successfully trained, and is stored in the learning control instruction knowledge base.
通讯单元(相当于上述学习模块66):向智能网关下发学习控制指令知识库;设置为接收智能网关上传的计划执行指令及有关的环境上下文信息。The communication unit (corresponding to the learning module 66) sends a learning control instruction knowledge base to the smart gateway, and is configured to receive the plan execution instruction and related environment context information uploaded by the smart gateway.
下面以安全系统的关闭为例进行说明。The following is an example of the shutdown of the security system.
在另一个可选实施例中,考虑业主使用场景:业主晚上18:30~22:00期间,处于在家活动状态,安全系统一般工作在撤防模式下。当业主22:00开始睡觉休息,通常使用无线遥控器将系统工作模式切换成睡眠模式,即门窗磁、红外探测器等边界传感器处于布防状态,系统自动关闭家中的电灯,保护业主在夜间休息时的财产安全。In another optional embodiment, considering the owner's use scenario: the owner is in a home activity state from 18:30 to 22:00 in the evening, and the security system generally works in the disarmed mode. When the owner starts to sleep at 22:00, usually use the wireless remote control to switch the system working mode to sleep mode, that is, the boundary sensor such as door and window magnetic and infrared detectors is in the armed state, the system automatically turns off the lights in the home to protect the owner during the night break. Property security.
本可选实施例中,预先配置计划执行指令S2=“睡眠模式”;In this optional embodiment, the plan execution instruction S2=“sleep mode” is pre-configured;
本可选实施例中,智能网关和网络平台先通过一段时间的运行,搜集业主的行为习惯数据,并进行数据分析,最后获取上述三种计划执行指令相关的学习控制指令,实施步骤包括:In the optional embodiment, the intelligent gateway and the network platform first collect the behavior habit data of the owner through a period of operation, and perform data analysis, and finally obtain the learning control instructions related to the three plan execution instructions, and the implementation steps include:
步骤S21:上述智能网关周期获取与学习控制指令有关的所有环境上下文信息,并保存到系统中;本实施例中,与S2“睡眠模式”有关的环境上下文信息至少包括“睡眠模式触发的时间、无线遥控器标识(Identity,简称为ID)号”;智能网关获取到上述环境上下文信息后,通过存储单元,保存在智能网关中;
Step S21: The above-mentioned intelligent gateway periodically acquires all the environment context information related to the learning control instruction, and saves it to the system. In this embodiment, the environment context information related to the S2 “sleep mode” includes at least the “time of the sleep mode trigger, The wireless remote controller identifier (Identity, abbreviated as ID) number; the smart gateway obtains the above environment context information, and saves it in the smart gateway through the storage unit;
步骤S22:上述智能网关侦测到预定义的计划执行指令发生时,根据系统设置及计划执行指令的特性,从系统中获取计划执行指令发生时或发生之前一段时间内的环境上下文信息;本实施例中,智能网关获侦测到S2“睡眠模式”发生时,则从环境上下文信息中提取“睡眠模式触发的时间、无线遥控器ID号”,本实施例列举5组,数据为“22:10、yk010101”,“22:01、yk010101”,“23:50、yk010101”,“22:04、yk010101”,“22:00、yk010101”;Step S22: When the smart gateway detects that a predefined plan execution instruction occurs, according to the characteristics of the system setting and the plan execution instruction, the environment context information of the system execution instruction is generated or occurs for a period of time before the occurrence of the planned execution instruction; In the example, when the smart gateway detects that the S2 "sleep mode" occurs, the "sleep mode trigger time and the wireless remote controller ID number" are extracted from the environment context information. In this embodiment, five groups are listed, and the data is "22: 10, yk010101", "22:01, yk010101", "23:50, yk010101", "22:04, yk010101", "22:00, yk010101";
步骤S23:上述智能网关把上述计划执行指令及有关的环境上下文信息上传到上述网络平台;本实施例中,智能网关在获取到较长一段时间内(该时间可预先配置30天或更长)的环境上下文信息上传到网络平台;Step S23: The smart gateway uploads the planned execution instruction and the related environment context information to the network platform. In this embodiment, the smart gateway acquires a long period of time (this time can be pre-configured for 30 days or longer). The environment context information is uploaded to the network platform;
步骤S24:上述网络平台分析上述环境上下文信息,并确定该计划执行指令对应的学习控制指令触发条件五元组信息,并组合成一条候选的学习控制指令,并存储在候选学习控制指令表中;本实施例中,候选学习控制指令表示意如下:Step S24: The network platform analyzes the environment context information, and determines that the learning control instruction trigger condition quintuple information corresponding to the plan execution instruction is combined into a candidate learning control instruction, and is stored in the candidate learning control instruction table; In this embodiment, the candidate learning control instruction is expressed as follows:
表2-1:候选学习控制指令示意表Table 2-1: Schematic Table of Candidate Learning Control Instructions
序号Serial number | 候选学习控制指令Candidate learning control instruction |
66 | “22:10、yk010101”|S2“睡眠模式”"22:10, yk010101"|S2 "Sleep Mode" |
77 | “22:01、yk010101”|S2“睡眠模式”"22:01, yk010101"|S2 "Sleep Mode" |
88 | “23:50、yk010101”|S2“睡眠模式”"23:50, yk010101"|S2 "Sleep Mode" |
99 | “22:04、yk010101”|S2“睡眠模式”"22:04, yk010101"|S2 "Sleep Mode" |
1010 | “22:00、yk010101”|S2“睡眠模式”"22:00, yk010101"|S2 "Sleep Mode" |
步骤S25:网络平台搜集一段时间内的候选学习控制指令,并分析每个候选学习控制指令表,当某个候选的学习控制指令出现的概率、次数或区间特性满足某一个比例、阈值或区间时,则确定该候选学习控制指令为训练成功的学习控制指令,并合并归纳、存储在学习控制指令知识库中。Step S25: The network platform collects the candidate learning control instructions for a period of time, and analyzes each candidate learning control instruction table, when the probability, the number of times, or the interval characteristics of a candidate learning control instruction meets a certain ratio, threshold, or interval. And determining, the candidate learning control instruction is a training control instruction that is successfully trained, and is combined and stored in the learning control instruction knowledge base.
本可选实施例中,采用模糊理论分析的方法,网络平台分析后、归纳合并成一条学习控制指令为:In the optional embodiment, the method of fuzzy theory analysis is adopted, and after the network platform analyzes, the induction is merged into one learning control instruction:
表2-2:本实施例中的学习控制指令Table 2-2: Learning Control Instructions in this Embodiment
本可选实施例中,包括上述学习控制指令的知识库统一存储在网络平台中,在系统的运行过程中,知识库的维护更新由网络平台完成,为提高学习控制的效率,智能网关根据网络平台的更新通知,自动从网络平台下载与上述智能网关绑定的最新知识库;
In the optional embodiment, the knowledge base including the above learning control instruction is uniformly stored in the network platform. During the running process of the system, the maintenance update of the knowledge base is completed by the network platform. To improve the efficiency of the learning control, the intelligent gateway is based on the network. The update notification of the platform automatically downloads the latest knowledge base bound to the above intelligent gateway from the network platform;
本可选实施例中,假设业主的一个使用场景如下:夏天,天气炎热,温度在33度,业主在晚上22:06分钟上床休息。业主的无线遥控器ID为“yk010101”。在智能网关已获取到学习控制指令知识库前提下,上述智能控制方法得实施细节如下:In this alternative embodiment, assume that one of the owner's usage scenarios is as follows: In summer, the weather is hot and the temperature is 33 degrees, and the owner goes to bed at 22:06 in the evening. The owner's wireless remote control ID is “yk010101”. Under the premise that the intelligent gateway has acquired the knowledge base of the learning control instruction, the implementation details of the above intelligent control method are as follows:
步骤S211:智能网关监控家庭环境上下文信息;本实施例中,学习控制指令触发条件所含属性相关的环境上下文信息包括“系统当前时间、业主无线遥控器ID号”;智能网关从上述假设场景中获取的环境上下文信息包括“系统当前时间”;Step S211: The smart gateway monitors the home environment context information. In this embodiment, the environment context information related to the attribute included in the learning control instruction triggering condition includes “the current time of the system, the owner wireless remote controller ID number”; the intelligent gateway is from the above hypothetical scenario. The obtained environmental context information includes "system current time";
步骤S212:智能网关判断环境上下文信息与学习控制指令触发条件是否匹配,当匹配时,执行步骤S213;否则,执行步骤S211;本实施例中,学习控制指令触发条件中的对应属性值包括:U=“yk010101”和T=“22:10”。本实施例中,环境上下文信息是业主的遥控器ID和系统时间T(网关采集环境上下文信息的当前时间),满足S2“睡眠模式”计划执行指令对应的学习控制指令触发条件,所以本实施的情况是匹配,所以执行步骤S213,否则执行步骤S211;Step S212: The smart gateway determines whether the environment context information matches the learning control instruction triggering condition, and if yes, step S213 is performed; otherwise, step S211 is performed; in this embodiment, the corresponding attribute value in the learning control instruction triggering condition includes: = "yk010101" and T = "22:10". In this embodiment, the environment context information is the owner's remote controller ID and the system time T (the current time when the gateway collects the environment context information), and satisfies the learning control instruction triggering condition corresponding to the S2 “sleep mode” plan execution instruction, so the present embodiment The situation is a match, so step S213 is performed, otherwise step S211 is performed;
步骤S213:智能网关通过人机界面,向用户发送学习控制指令修正请求;本实施例中,人工界面是智能手机;智能手机安装本实施例对应的APP软件,通过WIFI或3G实现与智能网关的通讯;智能网关通过私有协议向智能手机APP发送学习控制指令修正请求消息,上述学习控制指令修正请求包括修正参数选项集;其中,上述修正参数选项集包括:发送学习控制指令修正请求:YES(NO:不发送,YES:发送);当发送学习控制指令修正请求为YES时,上述修正参数选项集还包括:接受学习控制指令执行且取消后续修正请求或接受学习控制指令执行(且后续每次均发送修正请求)或禁止本次学习控制指令执行或取消本学习控制指令或(和)优化学习控制指令触发条件,包括上述学习控制指令触发条件对应的属性及属性值;本实施例中,包括的属性及属性值包括<T=“22:10”,U=“yk010101”,L=“null”,E=“null”,P=“null”>;Step S213: The smart gateway sends a learning control instruction correction request to the user through the human-machine interface. In this embodiment, the manual interface is a smart phone; the smart phone installs the APP software corresponding to the embodiment, and implements the smart gateway through WIFI or 3G. The smart gateway sends a learning control instruction correction request message to the smart phone APP through a private protocol, where the learning control instruction correction request includes a modified parameter option set; wherein the modified parameter option set includes: sending a learning control instruction correction request: YES (NO) : not sent, YES: send); when the send learning control instruction correction request is YES, the modified parameter option set further includes: accepting the learning control instruction execution and canceling the subsequent correction request or accepting the learning control instruction execution (and subsequent each time) Sending the correction request) or prohibiting the current learning control instruction from executing or canceling the learning control instruction or (and) optimizing the learning control instruction triggering condition, including the attribute and the attribute value corresponding to the triggering condition of the learning control instruction; in this embodiment, Attributes and attribute values include <T=“22:10”, U = "yk010101", L = "null", E = "null", P = "null" >;
步骤S214:智能网关获取并分析学习控制指令修正响应,并根据分析结果,优化学习控制指令或控制计划执行指令。本实施例中,上述学习控制指令修正响应中包括的结果选项与上述学习控制指令修正请求中的参数选项互相对应,本实施例中包括:禁止本次学习控制指令执行=YES,其他选项都未选择;本实施例中,智能网关禁止本次”睡眠模式”指令执行,禁止的原因可能是业主现在需要晚点休息,但本次的禁止不影响后续的睡眠模式学习控制指令的执行。Step S214: The intelligent gateway acquires and analyzes the learning control instruction correction response, and optimizes the learning control instruction or the control plan execution instruction according to the analysis result. In this embodiment, the result option included in the learning control command correction response and the parameter option in the learning control instruction correction request respectively correspond to each other, and the embodiment includes: prohibiting the execution of the learning control instruction from being executed = YES, and other options are not In this embodiment, the smart gateway prohibits the execution of the "sleep mode" instruction. The reason for the prohibition may be that the owner needs to rest later, but the current prohibition does not affect the execution of the subsequent sleep mode learning control instruction.
智能网关和网络平台的实施方式参照上述可选实施例。Embodiments of the intelligent gateway and network platform refer to the above-described alternative embodiments.
下面以安全系统的开启为例进行说明。The following takes the opening of the security system as an example.
在另一可选实施例中涉及的使用场景:业主随身携带无线遥控器,该遥控器支持双向通讯,即在无线射频的覆盖范围内,可以接收智能网关发送的无线周期存活检测消息,并回复智能网关,通过这种双向检测机制,可以判断业主的位置在家中或即将到家。当业主下班后(假设业主到家时间为下午18:30),通过无线遥控器的“撤防”功能,先完成系统撤防,再打开入户门,进入家中。先撤防在打开入户门的原因是防止在“离家布防”模式下,触发入户门的门磁探测器的误报警。通常,系统也会实现离家模式下的延迟报警机制,即业主触发
入户门的门磁探测器后,可以在系统设置的延迟时间内(通常20秒)取消即将发生的报警。The usage scenario involved in another optional embodiment: the owner carries the wireless remote controller with the wireless remote control, and the remote controller supports two-way communication, that is, receiving the wireless cycle survival detection message sent by the intelligent gateway within the coverage of the wireless radio, and replying The intelligent gateway, through this two-way detection mechanism, can determine the location of the owner at home or about to arrive home. When the owner gets off work (assuming the owner arrives at home at 18:30 pm), through the “disarming” function of the wireless remote control, the system is first disarmed, and then the entrance door is opened and the home is entered. Disarming first The reason for opening the entrance door is to prevent false alarms of the door magnetic detector that triggers the entrance door in the "disarming home" mode. Usually, the system also implements a delayed alarm mechanism in the off-home mode, that is, the owner triggers
After the gate detector of the entrance door, the upcoming alarm can be cancelled within the delay time set by the system (usually 20 seconds).
此场景中,业主的日常行为习惯有规律可循,在使用智能家居系统时,配合其行为习惯的指令动作也具有确定性。本实施例可以很好的说明本发明的内容,详细实施过程如下:In this scenario, the owner's daily behavior habits are regularly followed. When using the smart home system, the command actions in conjunction with their behavioral habits are also deterministic. This embodiment can well explain the content of the present invention, and the detailed implementation process is as follows:
本可选实施例中,预先配置计划执行指令包括S3=“系统撤防”,以便学习控制指令知识库的建立有目标可循;In this optional embodiment, the pre-configured plan execution instruction includes S3=“system disarming”, so that the establishment of the learning control instruction knowledge base has a goal to follow;
本可选实施例中,智能网关和网络平台先通过一段时间的运行,搜集业主的行为习惯数据,并进行数据分析,最后获取S3的学习控制指令,实施步骤包括:In the optional embodiment, the intelligent gateway and the network platform first collect the behavior habit data of the owner through a period of operation, and perform data analysis, and finally obtain the learning control instruction of the S3, and the implementation steps include:
步骤S31:上述智能网关周期获取与学习控制指令有关的所有环境上下文信息,并保存到系统中;本实施例中,与S1“系统撤防”有关的环境上下文信息至少包括“业务的无线遥控器被智能网关检测到的时间、无线遥控器的ID号、系统撤防触发的时间”;智能网关获取到上述环境上下文信息后,通过存储单元,保存在智能网关中;Step S31: The above-mentioned intelligent gateway periodically acquires all the environment context information related to the learning control instruction, and saves it to the system. In this embodiment, the environment context information related to S1 “system disarming” includes at least “the wireless remote controller of the service is The time detected by the intelligent gateway, the ID number of the wireless remote controller, and the time when the system is disarmed and triggered; after the intelligent gateway obtains the above environmental context information, it is saved in the intelligent gateway through the storage unit;
步骤S32:上述智能网关侦测到预定义的计划执行指令发生时,根据系统设置及计划执行指令的特性,从系统中获取计划执行指令发生时或发生之前一段时间内的环境上下文信息;本实施例中,智能网关获侦测到S1“系统撤防”发生时,则从环境上下文信息中提取“业主的无线遥控器被智能网关检测到的时间、无线遥控器的ID号、系统撤防触发的时间”,本实施例列举5组,数据为“18:28、yk010101、18:31”,“18:30、yk010101、18:33”,“18:24、yk010101、18:38”,“18:25、yk010101、18:28”,“10:26、yk010101、8:00”;Step S32: When the smart gateway detects that a predefined plan execution instruction occurs, according to the characteristics of the system setting and the planned execution instruction, the environment context information of the system execution instruction when the planned execution instruction occurs or occurs before the occurrence occurs; In the example, when the intelligent gateway is detected that S1 “system disarming” occurs, the time when the owner's wireless remote controller is detected by the intelligent gateway, the ID number of the wireless remote controller, and the time when the system is disarmed is extracted from the environment context information. "This embodiment lists 5 groups, the data is "18:28, yk010101, 18:31", "18:30, yk010101, 18:33", "18:24, yk010101, 18:38", "18: 25, yk010101, 18:28", "10:26, yk010101, 8:00";
步骤S33:上述智能网关把上述计划执行指令及有关的环境上下文信息上传到上述网络平台;本实施例中,智能网关在获取到较长一段时间内(该时间可预先配置30天或更长)的环境上下文信息上传到网络平台;Step S33: The smart gateway uploads the plan execution instruction and related environment context information to the network platform. In this embodiment, the smart gateway acquires a long period of time (this time can be pre-configured for 30 days or longer). The environment context information is uploaded to the network platform;
步骤S34:上述网络平台分析上述环境上下文信息,并确定该计划执行指令对应的学习控制指令触发条件五元组信息,并组合成一条候选的学习控制指令,并存储在候选学习控制指令表中;本可选实施例中,候选学习控制指令表示意如下:Step S34: The network platform analyzes the environment context information, and determines a learning control instruction trigger condition quintuple information corresponding to the plan execution instruction, and combines them into a candidate learning control instruction, and stores the information in a candidate learning control instruction table; In this alternative embodiment, the candidate learning control instruction is expressed as follows:
表3-1:实施例3中的候选学习控制指令示意表Table 3-1: Schematic diagram of candidate learning control instructions in Embodiment 3
序号Serial number | 候选学习控制指令Candidate learning control instruction |
11 | “18:28、yk010101、18:31”|S1“系统撤防”"18:28, yk010101, 18:31"|S1 "System Disarming" |
22 | “18:30、yk010101、18:33”|S1“系统撤防”"18:30, yk010101, 18:33"|S1 "System Disarming" |
33 | “18:24、yk010101、18:38”|S1“系统撤防”"18:24, yk010101, 18:38"|S1 "System Disarming" |
44 | “18:25、yk010101、18:28”|S1“系统撤防”"18:25, yk010101, 18:28"|S1 "System Disarmed" |
55 | “10:26、yk010101、08:00”|S1“系统撤防”"10:26, yk010101, 08:00"|S1 "System Disarming" |
步骤S35:网络平台搜集一段时间内的候选学习控制指令,并分析每个候选学习控制指令
表,当某个候选的学习控制指令出现的概率、次数或区间特性满足某一个比例、阈值或区间时,则确定该候选学习控制指令为训练成功的学习控制指令,并合并归纳、存储在学习控制指令知识库中。Step S35: The network platform collects candidate learning control instructions for a period of time, and analyzes each candidate learning control instruction.
A table, when a probability, a number of times, or an interval characteristic of a candidate learning control instruction satisfies a certain ratio, a threshold, or an interval, determining that the candidate learning control instruction is a training control instruction that is successfully trained, and combining and storing in learning Control command knowledge base.
本可选实施例中,采用模糊理论分析的方法,网络平台分析后、归纳合并成一条学习控制指令为:In the optional embodiment, the method of fuzzy theory analysis is adopted, and after the network platform analyzes, the induction is merged into one learning control instruction:
表3-2:实施例3中的学习控制指令Table 3-2: Learning Control Instructions in Embodiment 3
本可选实施例中,包括上述学习控制指令的知识库统一存储在网络平台中,在系统的运行过程中,知识库的维护更新由网络平台完成,为提高学习控制的效率,智能网关根据网络平台的更新通知,自动从网络平台下载与上述智能网关绑定的最新知识库;In the optional embodiment, the knowledge base including the above learning control instruction is uniformly stored in the network platform. During the running process of the system, the maintenance update of the knowledge base is completed by the network platform. To improve the efficiency of the learning control, the intelligent gateway is based on the network. The update notification of the platform automatically downloads the latest knowledge base bound to the above intelligent gateway from the network platform;
本可选实施例中,假设业主的一个使用场景如下:夏天,天气炎热,温度在33度,业主下班后,在18:29分钟准时到家,智能网关在18:27检测到业主的无线遥控器,上述智能控制方法得实施细节如下:In this alternative embodiment, assume that one of the owner's usage scenarios is as follows: In summer, the weather is hot and the temperature is 33 degrees. After the owner gets off work, he arrives at home on time at 18:29 minutes, and the intelligent gateway detects the owner's wireless remote controller at 18:27. The implementation details of the above intelligent control method are as follows:
步骤S301:智能网关监测环境上下文信息;本实施例中,学习控制指令触发条件所含属性相关的环境上下文信息包括“系统当前时间、业主的无线遥控器被智能网关检测到的时间、业主无线遥控器ID号”;智能网关从上述假设场景中获取的环境上下文信息包括“系统当前时间、业主无线遥控器被检测到的时间18:27”;Step S301: The intelligent gateway monitors the environment context information. In this embodiment, the environment context information related to the attribute included in the learning control instruction triggering condition includes: “the current time of the system, the time when the wireless remote controller of the owner is detected by the intelligent gateway, and the wireless remote control of the owner. The device ID number"; the environment context information obtained by the intelligent gateway from the above hypothetical scenario includes "the current time of the system, the time when the owner wireless remote controller is detected is 18:27";
步骤S302:智能网关判断环境上下文信息与学习控制指令触发条件是否匹配,当匹配时,执行步骤S303;否则,执行步骤S301;本实施例中,学习控制指令触发条件中的对应属性值包括:P=“18:24~18:30”|业主的无线遥控器被智能网关检测到的时间、U=“yk010101”、以及系统时间T(网关采集环境上下文信息的当前时间)。本实施例中,环境上下文信息是业主的遥控器ID、以及业主的无线遥控器被智能网关检测到的时间18:27满足S1“系统撤防”计划执行指令对应的学习控制指令触发条件,所以本实施的情况是匹配,所以执行步骤S303,否则执行步骤S301;Step S302: The smart gateway determines whether the environment context information matches the learning control instruction triggering condition. When the matching is performed, step S303 is performed; otherwise, step S301 is performed; in this embodiment, the corresponding attribute value in the learning control instruction triggering condition includes: P = "18:24~18:30"|Time when the owner's wireless remote controller is detected by the intelligent gateway, U=“yk010101”, and system time T (current time when the gateway collects environmental context information). In this embodiment, the environment context information is the remote controller ID of the owner, and the time 18:27 detected by the intelligent remote controller of the owner is satisfied by the learning control instruction triggering condition corresponding to the S1 “system disarming” plan execution instruction, so The implementation is a match, so step S303 is performed, otherwise step S301 is performed;
步骤S303:智能网关通过人机界面,向用户发送学习控制指令修正请求;本实施例中,人工界面是智能手机;智能手机安装本实施例对应的APP软件,通过WIFI或3G实现与智能网关的通讯;智能网关通过私有协议向智能手机APP发送学习控制指令修正请求消息,上述学习控制指令修正请求包括修正参数选项集;其中,上述修正参数选项集包括:发送学习控制指令修正请求:YES(NO:不发送,YES:发送);当发送学习控制指令修正请求为YES时,上述修正参数选项集还包括:接受学习控制指令执行且取消后续修正请求或接受学习控制指令执行(且后续每次均发送修正请求)或禁止本次学习控制指令执行或取消本学习
控制指令或(和)优化学习控制指令触发条件,包括上述学习控制指令触发条件对应的属性及属性值;本实施例中,包括的属性及属性值包括<T=“P”|系统撤防触发的时间,U=“yk010101”,L=“null”,E=“null”,P=“18:24~18:30”|业主的无线遥控器被智能网关检测到的时间>;Step S303: The smart gateway sends a learning control instruction correction request to the user through the human-machine interface. In this embodiment, the manual interface is a smart phone; the smart phone installs the APP software corresponding to the embodiment, and implements the smart gateway through WIFI or 3G. The smart gateway sends a learning control instruction correction request message to the smart phone APP through a private protocol, where the learning control instruction correction request includes a modified parameter option set; wherein the modified parameter option set includes: sending a learning control instruction correction request: YES (NO) : not sent, YES: send); when the send learning control instruction correction request is YES, the modified parameter option set further includes: accepting the learning control instruction execution and canceling the subsequent correction request or accepting the learning control instruction execution (and subsequent each time) Send a correction request) or prohibit the execution of this learning control instruction or cancel the learning
The control instruction or (and) the optimization learning control instruction triggering condition includes the attribute and the attribute value corresponding to the triggering condition of the learning control instruction; in this embodiment, the attribute and the attribute value included include <T=“P”|system disarming triggering Time, U=“yk010101”, L=“null”, E=“null”, P=“18:24~18:30”|Time when the owner's wireless remote controller is detected by the intelligent gateway>;
步骤S304:智能网关获取并分析学习控制指令修正响应,并根据分析结果,优化学习控制指令或控制计划执行指令。本实施例中,上述学习控制指令修正响应中包括的结果选项与上述学习控制指令修正请求中的参数选项互相对应,本实施例中包括:接受学习控制指令执行且取消后续修正请求=YES,其他选项都未选择;本实施例中,智能网关控制系统执行S1系统撤防指令,且不会调整学习控制指令触发条件。Step S304: The intelligent gateway acquires and analyzes the learning control instruction correction response, and optimizes the learning control instruction or the control plan execution instruction according to the analysis result. In this embodiment, the result option included in the learning control instruction correction response and the parameter option in the learning control instruction correction request respectively correspond to each other, and the embodiment includes: accepting the learning control instruction execution and canceling the subsequent correction request=YES, other None of the options are selected; in this embodiment, the intelligent gateway control system executes the S1 system disarming instruction and does not adjust the learning control instruction trigger condition.
智能网关和网络平台的实施方式参照上述实施例。Embodiments of the intelligent gateway and network platform refer to the above embodiments.
综上所述,通过本可选实施例降低了智能家居系统控制的复杂度,提高系统智能学习控制的效率和准确性,从而显著提升用户使用体验和舒适性。In summary, the optional embodiment reduces the complexity of the smart home system control, improves the efficiency and accuracy of the system intelligent learning control, thereby significantly improving the user experience and comfort.
工业实用性:通过上述描述可知,本发明至少对一次或多次执行指令时对应的条件进行学习得到预定规则,在监测到触发执行指令的条件符合预定规则时,控制指令的执行,相比于相关技术中指令的执行主要是被动接受用户的手动控制,或按照用户个性化预配置数据进行控制,上述步骤可以自动学习预定规则减少了用户的手动参与,从而解决了相关技术中不能对智能家居系统的运行方式进行灵活控制的问题,进而实现了智能家居系统的运行方式的灵活控制,简化了操作,提升了用户体验。Industrial Applicability: As can be seen from the above description, the present invention learns at least the condition corresponding to one or more executions of the instruction to obtain a predetermined rule. When the condition that triggers the execution of the instruction meets the predetermined rule, the execution of the control instruction is compared with The execution of the instructions in the related art is mainly passively accepting the manual control of the user, or controlling according to the personalized pre-configured data of the user. The above steps can automatically learn the predetermined rules to reduce the manual participation of the user, thereby solving the problem that the related technology cannot be used for the smart home. The operation mode of the system is flexibly controlled, thereby implementing flexible control of the operation mode of the smart home system, simplifying operation and improving the user experience.
在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及可选实施方式中描述的技术方案。In another embodiment, software is also provided for performing the technical solutions described in the above embodiments and alternative embodiments.
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。In another embodiment, a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的可选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
The above description is only an alternative embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
Claims (24)
- 一种指令处理方法,包括:An instruction processing method includes:监测触发执行指令的条件;Monitoring the conditions that trigger the execution of the instruction;在所述条件符合预定规则的情况下,控制所述指令的执行,其中,所述预定规则至少是对一次或多次执行所述指令时对应的条件进行学习得到的。The execution of the instruction is controlled in a case where the condition meets a predetermined rule, wherein the predetermined rule is obtained by learning at least a condition corresponding to one or more executions of the instruction.
- 根据权利要求1所述的方法,其中,在所述条件符合预定规则的情况下,控制所述指令的执行包括:The method of claim 1 wherein, in the event that the condition meets a predetermined rule, controlling execution of the instruction comprises:在所述条件符合所述预定规则时,对所述预定规则进行修改提示;Modifying the predetermined rule when the condition meets the predetermined rule;接收对所述修改提示的响应;Receiving a response to the modification prompt;根据所述响应控制所述指令的执行,其中,在根据所述响应确认不修订所述预定规则的情况下,执行所述指令;在根据所述响应确认修订所述预定规则的情况下,在所述条件符合修订后的所述预定规则的情况下,执行所述指令。Controlling execution of the instruction according to the response, wherein the instruction is executed if the predetermined rule is not revised according to the response confirmation; in the case of revising the predetermined rule according to the response confirmation, The instruction is executed if the condition meets the revised predetermined rule.
- 根据权利要求2所述的方法,其中,所述响应用于指示以下至少之一:The method of claim 2 wherein the response is for indicating at least one of:对于此次所述条件符合所述预定规则的情况,不执行所述指令;The instruction is not executed for the case where the condition described above meets the predetermined rule;取消所述预定规则;Cancel the predetermined rule;在执行所述指令之后,不再对所述预定规则进行修改提示;After the execution of the instruction, the modification prompt is not performed on the predetermined rule;在执行所述指令之后,所述条件每次符合所述预定规则或修订后的所述预定规则时均进行所述修改提示。After the execution of the instruction, the modification prompt is performed each time the condition meets the predetermined rule or the revised predetermined rule.
- 根据权利要求2所述的方法,其中,The method of claim 2, wherein对所述预定规则进行所述修改提示包括:根据预先配置的选项判断是否对所述预定规则进行所述修改提示,在判断结果为是的情况下,进行所述修改提示;The prompting the modification to the predetermined rule includes: determining, according to a pre-configured option, whether the modification prompt is performed on the predetermined rule, and if the determination result is yes, performing the modification prompt;在所述判断结果为否的情况下,控制所述指令的执行包括:执行所述指令。In the case where the determination result is negative, controlling the execution of the instruction includes: executing the instruction.
- 根据权利要求1至4中任一项所述的方法,其中,所述预定规则存储在本地或者来源于其他网元。The method of any of claims 1 to 4, wherein the predetermined rules are stored locally or from other network elements.
- 根据权利要求1至4中任一项所述的方法,其中,所述预定规则包括以下至少之一:The method according to any one of claims 1 to 4, wherein the predetermined rule comprises at least one of the following:时间、账号信息、用户位置信息、环境信息、执行所述指令的设备的状态信息或已经向所述设备发送过的指令,其中,账号信息用于标识所述设备。Time, account information, user location information, environmental information, status information of devices that have executed the instructions, or instructions that have been sent to the device, wherein the account information is used to identify the device.
- 根据权利要求1至4中任一项所述的方法,其中,监测触发执行指令的所述条件包括:The method according to any one of claims 1 to 4, wherein the monitoring of the condition for triggering execution of the instruction comprises:按照预先设定的策略监控触发执行指令的所述条件;或者, Monitoring the conditions that trigger the execution of the instruction according to a preset policy; or,接收操作指令之后,监测触发执行指令的所述条件。After receiving the operation command, the condition triggering the execution of the instruction is monitored.
- 根据权利要求1至4中任一项所述的方法,其中,在监测触发执行指令的所述条件之前,所述方法还包括:The method according to any one of claims 1 to 4, wherein before the condition of triggering execution of the instruction is monitored, the method further comprises:将一次或多次执行所述指令时对应的条件发送至其他网元,其中,所述其他网元为对一次或多次执行所述指令时对应的条件进行学习得到所述预定规则的网元;或者,Sending the corresponding condition when the instruction is executed one or more times to other network elements, wherein the other network element is a network element that learns the condition corresponding to one or more executions of the instruction to obtain the predetermined rule ;or,在本地对一次或多次执行所述指令时对应的条件进行学习得到所述预定规则。The predetermined rule is obtained by locally learning the condition corresponding to one or more executions of the instruction.
- 根据权利要求8所述的方法,其中,对一次或多次执行所述指令时对应的条件进行学习得到所述预定规则包括:The method according to claim 8, wherein learning the corresponding condition when the instruction is executed one or more times to obtain the predetermined rule comprises:通过合并或归纳多次执行所述指令对应的条件中的相同或相似之处得到所述预定规则。The predetermined rule is obtained by merging or summarizing the same or similarities in the conditions corresponding to the execution of the instructions multiple times.
- 一种指令处理方法,包括:An instruction processing method includes:接收一次或多次执行指令时对应的条件;The condition corresponding to receiving one or more executions of the instruction;对所述条件进行学习得到预定规则,其中,所述预定规则用于指示接收所述预定规则的主体在条件符合所述预定规则的情况下,控制所述指令的执行;Learning the condition to obtain a predetermined rule, wherein the predetermined rule is used to indicate that the subject receiving the predetermined rule controls execution of the instruction if the condition meets the predetermined rule;发送所述预定规则。Sending the predetermined rule.
- 根据权利要求10所述的方法,其中,所述预定规则包括以下至少之一:The method of claim 10, wherein the predetermined rule comprises at least one of:时间、账号信息、用户位置信息、环境信息、执行所述指令的设备的状态信息或已经向所述设备发送过的指令,其中,账号信息用于标识所述设备。Time, account information, user location information, environmental information, status information of devices that have executed the instructions, or instructions that have been sent to the device, wherein the account information is used to identify the device.
- 根据权利要求10所述的方法,其中,对所述条件进行学习得到所述预定规则包括:The method of claim 10, wherein learning the condition to obtain the predetermined rule comprises:通过合并或归纳多次执行所述指令对应的条件中的相同或相似之处得到所述预定规则。The predetermined rule is obtained by merging or summarizing the same or similarities in the conditions corresponding to the execution of the instructions multiple times.
- 一种指令处理装置,包括:An instruction processing device includes:监测模块,设置为监测触发执行指令的条件;a monitoring module configured to monitor conditions for triggering execution of the instruction;控制模块,设置为在所述条件符合预定规则的情况下,控制所述指令的执行,其中,所述预定规则至少是对一次或多次执行所述指令时对应的条件进行学习得到的。And a control module configured to control execution of the instruction if the condition meets a predetermined rule, wherein the predetermined rule is obtained by learning at least a condition corresponding to one or more executions of the instruction.
- 根据权利要求13所述的装置,其中,所述控制模块包括:The apparatus of claim 13 wherein said control module comprises:提示单元,设置为在所述条件符合所述预定规则时,对所述预定规则进行修改提示;a prompting unit, configured to modify the predetermined rule when the condition meets the predetermined rule;接收单元,设置为接收对所述修改提示的响应;a receiving unit, configured to receive a response to the modification prompt;第一执行单元,设置为根据所述响应控制所述指令的执行,其中,在根据所述响应 确认不修订所述预定规则的情况下,执行所述指令;a first execution unit configured to control execution of the instruction in response to the response, wherein Assuming that the predetermined rule is not revised, the instruction is executed;第二执行单元,设置为在根据所述响应确认修订所述预定规则的情况下,在所述条件符合修订后的所述预定规则的情况下,执行所述指令。And a second execution unit configured to execute the instruction if the condition meets the revised predetermined rule in a case where the predetermined rule is revised according to the response confirmation.
- 根据权利要求14所述的装置,其中,所述响应用于指示以下至少之一:The apparatus of claim 14, wherein the response is for indicating at least one of:对于此次所述条件符合所述预定规则的情况,不执行所述指令;The instruction is not executed for the case where the condition described above meets the predetermined rule;取消所述预定规则;Cancel the predetermined rule;在执行所述指令之后,不再对所述预定规则进行修改提示;After the execution of the instruction, the modification prompt is not performed on the predetermined rule;在执行所述指令之后,所述条件每次符合所述预定规则或修订后的所述预定规则时均进行所述修改提示。After the execution of the instruction, the modification prompt is performed each time the condition meets the predetermined rule or the revised predetermined rule.
- 根据权利要求14所述的装置,其中,所述提示单元还设置为根据预先配置的选项判断是否对所述预定规则进行所述修改提示,在判断结果为是的情况下,进行所述修改提示;在所述判断结果为否的情况下,控制所述指令的执行包括:执行所述指令。The apparatus according to claim 14, wherein the prompting unit is further configured to determine whether to perform the modification prompt on the predetermined rule according to a pre-configured option, and if the determination result is yes, perform the modification prompt And in the case that the determination result is negative, controlling execution of the instruction includes: executing the instruction.
- 根据权利要求13至16中任一项所述的装置,其中,所述预定规则存储在本地或者来源于其他网元。Apparatus according to any one of claims 13 to 16, wherein the predetermined rules are stored locally or from other network elements.
- 根据权利要求13至16中任一项所述的装置,其中,所述预定规则包括以下至少之一:The apparatus according to any one of claims 13 to 16, wherein the predetermined rule comprises at least one of the following:时间、账号信息、用户位置信息、环境信息、执行所述指令的设备的状态信息或已经向所述设备发送过的指令,其中,账号信息用于标识所述设备。Time, account information, user location information, environmental information, status information of devices that have executed the instructions, or instructions that have been sent to the device, wherein the account information is used to identify the device.
- 根据权利要求13至16中任一项所述的装置,其中,所述监测模块还设置为按照预先设定的策略监控触发执行指令的所述条件;或者,接收操作指令之后,监测触发执行指令的所述条件。The apparatus according to any one of claims 13 to 16, wherein the monitoring module is further configured to monitor the condition of triggering the execution instruction according to a preset policy; or, after receiving the operation instruction, monitoring the trigger execution instruction The conditions described.
- 根据权利要求13至16中任一项所述的装置,其中,所述装置还包括:The device according to any one of claims 13 to 16, wherein the device further comprises:发送模块,设置为将一次或多次执行所述指令时对应的条件发送至其他网元,其中,所述其他网元为对一次或多次执行所述指令时对应的条件进行学习得到所述预定规则的网元;a sending module, configured to send the corresponding condition when the instruction is executed one or more times to another network element, where the other network element learns the condition corresponding to one or more executions of the instruction The network element of the predetermined rule;学习模块,设置为在本地对一次或多次执行所述指令时对应的条件进行学习得到所述预定规则。The learning module is configured to learn the corresponding condition when the instruction is executed one or more times locally to obtain the predetermined rule.
- 根据权利要求20所述的装置,其中,所述学习模块还设置为通过合并或归纳多次执行所述指令对应的条件中的相同或相似之处得到所述预定规则。The apparatus of claim 20, wherein the learning module is further configured to obtain the predetermined rule by merging or summarizing the same or similarities in the conditions corresponding to the execution of the instructions multiple times.
- 一种指令处理装置,包括:An instruction processing device includes:接收模块,设置为接收一次或多次执行指令时对应的条件; a receiving module, configured to receive a condition corresponding to one or more executions of the instruction;学习模块,设置为对所述条件进行学习得到预定规则,其中,所述预定规则用于指示接收所述预定规则的主体在条件符合所述预定规则的情况下,控制所述指令的执行;a learning module, configured to learn the condition to obtain a predetermined rule, wherein the predetermined rule is used to indicate that the subject receiving the predetermined rule controls execution of the instruction if the condition meets the predetermined rule;发送模块,设置为发送所述预定规则。A sending module is configured to send the predetermined rule.
- 根据权利要求22所述的装置,其中,所述预定规则包括以下至少之一:The apparatus of claim 22, wherein the predetermined rule comprises at least one of:时间、账号信息、用户位置信息、环境信息、执行所述指令的设备的状态信息或已经向所述设备发送过的指令,其中,账号信息用于标识所述设备。Time, account information, user location information, environmental information, status information of devices that have executed the instructions, or instructions that have been sent to the device, wherein the account information is used to identify the device.
- 根据权利要求22所述的装置,其中,所述学习模块还设置为通过合并或归纳多次执行所述指令对应的条件中的相同或相似之处得到所述预定规则。 The apparatus of claim 22, wherein the learning module is further configured to obtain the predetermined rule by merging or summarizing the same or similarities in the conditions corresponding to the execution of the instructions multiple times.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410619216.6A CN105630456A (en) | 2014-11-05 | 2014-11-05 | Instruction processing method and device |
CN201410619216.6 | 2014-11-05 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016070823A1 true WO2016070823A1 (en) | 2016-05-12 |
Family
ID=55908602
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/093858 WO2016070823A1 (en) | 2014-11-05 | 2015-11-05 | Instruction processing method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105630456A (en) |
WO (1) | WO2016070823A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110262265A (en) * | 2019-06-27 | 2019-09-20 | 青岛海尔科技有限公司 | Indoor environment adjusting method and device based on smart home operating system |
CN114625093A (en) * | 2022-03-25 | 2022-06-14 | 佛山市博顿光电科技有限公司 | Process control method and device and industrial control system |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106023555A (en) * | 2016-06-22 | 2016-10-12 | 华东师范大学 | Signal trace-driven control system |
CN109682025A (en) * | 2017-10-19 | 2019-04-26 | 中兴通讯股份有限公司 | Air-conditioner control system and method, user terminal and computer readable storage medium |
CN108776689A (en) * | 2018-06-05 | 2018-11-09 | 北京玄科技有限公司 | A kind of knowledge recommendation method and device applied to intelligent robot interaction |
CN108549251A (en) * | 2018-06-11 | 2018-09-18 | 武汉兴火源科技有限责任公司 | A kind of the self study user custom control system and its control method of smart home |
CN114201889B (en) * | 2022-02-15 | 2022-06-03 | 杭州杰牌传动科技有限公司 | Selection method and system of multi-mode decision-making mechanism reducer |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6792319B1 (en) * | 2000-10-19 | 2004-09-14 | Destiny Networks, Inc. | Home automation system and method |
CN101038492A (en) * | 2007-04-05 | 2007-09-19 | 复旦大学 | Intelligent house control system based on telephone and ZigBee technology |
CN101782768A (en) * | 2010-02-09 | 2010-07-21 | 华南理工大学 | Smart home system based on context awareness |
CN103345211A (en) * | 2013-06-07 | 2013-10-09 | 中山菲柯特电子电器有限公司 | Intelligent home control system and control method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201023655A (en) * | 2008-12-04 | 2010-06-16 | Advanpower Internat Ltd | Intelligent home appliance control system |
CN103149898A (en) * | 2013-02-01 | 2013-06-12 | 杭州尚思科技有限公司 | Smart home study system and method based on multiple agents |
-
2014
- 2014-11-05 CN CN201410619216.6A patent/CN105630456A/en not_active Withdrawn
-
2015
- 2015-11-05 WO PCT/CN2015/093858 patent/WO2016070823A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6792319B1 (en) * | 2000-10-19 | 2004-09-14 | Destiny Networks, Inc. | Home automation system and method |
CN101038492A (en) * | 2007-04-05 | 2007-09-19 | 复旦大学 | Intelligent house control system based on telephone and ZigBee technology |
CN101782768A (en) * | 2010-02-09 | 2010-07-21 | 华南理工大学 | Smart home system based on context awareness |
CN103345211A (en) * | 2013-06-07 | 2013-10-09 | 中山菲柯特电子电器有限公司 | Intelligent home control system and control method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110262265A (en) * | 2019-06-27 | 2019-09-20 | 青岛海尔科技有限公司 | Indoor environment adjusting method and device based on smart home operating system |
CN114625093A (en) * | 2022-03-25 | 2022-06-14 | 佛山市博顿光电科技有限公司 | Process control method and device and industrial control system |
Also Published As
Publication number | Publication date |
---|---|
CN105630456A (en) | 2016-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016070823A1 (en) | Instruction processing method and device | |
US11688263B2 (en) | Motion detection using wireless local area networks | |
US10140100B2 (en) | Device common model interface | |
US10394200B2 (en) | Controlling method and system for smart home | |
US20180293367A1 (en) | Multi-Factor Authentication via Network-Connected Devices | |
US20190235617A1 (en) | Power-Optimized Image Capture and Push | |
EP3072257B1 (en) | Method and apparatus for controlling home devices on group basis in a home network system | |
US10952174B2 (en) | Distributed coordination of mesh network configuration updates | |
US11201758B2 (en) | Method and apparatus for controlling device | |
EP3591479A1 (en) | Dynamic inclusion and exclusion of smart-home devices | |
US11849310B2 (en) | Synchronized reception in mesh networks | |
US20160201933A1 (en) | Predictively controlling an environmental control system | |
US20170339570A1 (en) | Distributed Channel Sampling Across a Mesh Network | |
WO2015085724A1 (en) | Smart furniture control method, control system and remote server | |
KR20170006120A (en) | Home IoT controlling system based on occupants inference probability and method threreof | |
CN105912632A (en) | Device service recommending method and device | |
US11343774B2 (en) | Enhanced frame pending | |
US20220232361A1 (en) | Low-Latency Bluetooth Connectivity | |
CN116996546A (en) | Control methods, devices, equipment and storage media for Internet of Things equipment | |
CN112503730A (en) | Air conditioner control method and system based on Internet of things platform | |
EP4298777B1 (en) | Upgrading legacy devices for interoperability with a matter network | |
US20240250841A1 (en) | Hierarchical Framework of Contexts for the Smart Home | |
WO2024205648A1 (en) | Smart-home management runtime | |
US20250211644A1 (en) | Device Deduplication Between Home Networks | |
CN105869369A (en) | Intelligent control method for remote control unit and intelligent remote control unit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15856492 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15856492 Country of ref document: EP Kind code of ref document: A1 |