Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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 commands related to the smart home. It greatly increases the complexity of the system code, which is not conducive to troubleshooting and future upgrades, and affects the stability and execution efficiency of the system

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

Embodiment 1

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

[0055] S1. Receive the online command of the network controller sent by the intelligent gateway, and establish the finite state machine of the network controller through the AKKA framework, and the finite state machine of the network controller includes: state, state data, and event;

[0056] This embodiment uses Akka to implement the finite state machine driving 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 composition structure of the state machine, shields the internal complexity, specifies that the state machine is composed of state, instruction, and data, automatically matches and executes state and instruction, and provides state execution timeout check. The main purpose of Akka is to write...

Embodiment 2

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

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

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

[0104] When controlling a 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 overtime monitoring mechanism. In a certain state, if ...

Embodiment 3

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

[0113] The smart light control system consists 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 The work flow chart of the smart light control system is shown. The user sends out the command to control the light in the mobile phone program, and the background management system of the smart gateway completes the following actions after receiving the command. The specific steps are as follows:

[0115] 1) Send an instruction to bind the network controller to the intelligent gateway;

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

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

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
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More