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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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) ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap