Method and system for controlling intelligent gateway by using finite-state machine, and intelligent device control system

A finite state machine and intelligent gateway technology, applied in transmission systems, digital transmission systems, data exchange networks, etc., can solve problems such as increasing system code complexity, troubleshooting and upgrading unfavorable problems, affecting system stability and execution efficiency, etc. Reduce complexity and reduce the effect of manual intervention processes

Inactive Publication Date: 2017-08-15
PHICOMM (SHANGHAI) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The disadvantage of the existing technology is that in the background management program of the smart gateway, the current working status of the smart home needs to be taken into account when issuing comman

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for controlling intelligent gateway by using finite-state machine, and intelligent device control system
  • Method and system for controlling intelligent gateway by using finite-state machine, and intelligent device control system
  • Method and system for controlling intelligent gateway by using finite-state machine, and intelligent device control system

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0053] Example one

[0054] Such as figure 1 Shown in this embodiment is a flow chart of a method for controlling an intelligent gateway using a finite state machine, and the method includes:

[0055] S1. Receive the network controller online instruction sent by the smart gateway, and establish the network controller finite state machine through the AKKA framework. The network controller finite state machine includes: status, status data, and events;

[0056] This embodiment uses Akka to implement a finite state machine-driven model. Akka is a library written in Scala for simplifying the writing of fault-tolerant and highly scalable Java and Scala role model applications. It specifies the structure of the state machine, shields the internal complexity, specifies that the state machine is composed of states, instructions, and data, automatically matches and executes states and instructions, and provides state execution timeout checking. The main purpose of Akka is to write applicatio...

Example Embodiment

[0100] Example two

[0101] The difference between this embodiment and the previous embodiment is that this embodiment also includes monitoring the execution of the control command.

[0102] Such as Figure 4 Shown in this embodiment is a flow chart of a method for controlling an intelligent gateway using a finite state machine, and the method in this embodiment further includes:

[0103] S4. Monitoring the state change time of the finite state machine of the network controller, and if the state change time is greater than a predetermined time, it is determined that the command execution has failed, and the network controller finite state machine returns to the waiting state.

[0104] When controlling the smart home, a method is needed to monitor the execution result of the control command. If there is a problem with the device, the smart home device can be converted to a state where it can continue to operate.

[0105] This embodiment uses the state change timeout monitoring mechanism....

Example Embodiment

[0111] Example three

[0112] This embodiment uses the smart gateway to control the Philips smart lamp as an example to illustrate the use of the finite state machine in the smart gateway background management system.

[0113] The smart light control system is composed of a mobile phone (or other control terminal), a smart gateway background management system, a smart gateway, a network controller (hub), and a smart light.

[0114] Such as Image 6 Shown is the work flow chart of the smart light control system. The user sends out the light control instruction in the mobile phone program, and the smart gateway background management system completes the following actions after receiving the instruction. The specific steps are as follows:

[0115] 1) Send a binding network controller instruction to the smart gateway;

[0116] 2) The network controller returns the binding success instruction through the smart gateway;

[0117] 3) Send a search light command to the smart gateway;

[0118] 4) ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and system for controlling an intelligent gateway by using a finite-state machine, and an intelligent device control system. The method comprises the following steps: S1, receiving a network controller online instruction sent by the intelligent gateway, establishing a network controller finite-state machine through an AKKA framework, wherein the network controller finite-state machine comprises states, state data and events; S2, receiving a user control instruction, and judging whether the user control instruction is an executable instruction according to the state information of the network controller finite-state machine; and S3, if the control instruction is the executable instruction, sending a control command to the intelligent gateway according to the control instruction. According to the method and system disclosed by the invention, when the smart home is controlled through the intelligent gateway, the complexity of the system codes is reduced by using the programming mode of the finite-state machine, incorrect instructions are filtered, and the execution results of the instructions are monitored, thereby improving the stability and the maintainability of the system and improving the execution efficiency of the system.

Description

technical field [0001] The invention relates to the field of intelligent equipment control, in particular to a method and system for controlling an intelligent gateway by using a finite state machine, and an intelligent equipment control system. Background technique [0002] In a smart home environment, the smart home is typically controlled through an app on a mobile phone. In order to manage all kinds of smart homes in a unified manner, intelligent gateway devices are used for unified management at the hardware layer. In order to control a smart device, send commands to the background management program of the smart gateway through the mobile phone. The background management program needs to identify and process the commands, and execute a corresponding system command according to the current state of the smart home device, and send these commands to the smart home device. The gateway thus realizes the operation of the user's smart home. [0003] For example, "A smart ho...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L12/28
CPCH04L12/2816H04L12/282H04L12/283
Inventor 陈昊
Owner PHICOMM (SHANGHAI) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products