CN110856133A - Internet of things gateway based on lightweight rule engine - Google Patents

Internet of things gateway based on lightweight rule engine Download PDF

Info

Publication number
CN110856133A
CN110856133A CN201910930444.8A CN201910930444A CN110856133A CN 110856133 A CN110856133 A CN 110856133A CN 201910930444 A CN201910930444 A CN 201910930444A CN 110856133 A CN110856133 A CN 110856133A
Authority
CN
China
Prior art keywords
module
gateway
internet
rule
rule engine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910930444.8A
Other languages
Chinese (zh)
Inventor
陈兆辉
蒋秋明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Siic-Longchuang Smarter Energy Technology Co Ltd
Original Assignee
Shanghai Siic-Longchuang Smarter Energy Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Siic-Longchuang Smarter Energy Technology Co Ltd filed Critical Shanghai Siic-Longchuang Smarter Energy Technology Co Ltd
Priority to CN201910930444.8A priority Critical patent/CN110856133A/en
Publication of CN110856133A publication Critical patent/CN110856133A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Abstract

The invention relates to an Internet of things gateway based on a lightweight rule engine, which is connected with sensor equipment and comprises a storage module, a gateway control module, a rule engine module and a gateway configuration module which are sequentially connected, wherein the gateway configuration module comprises different actual scene rules required by a user, and the rule engine module comprises an information acquisition module and a rule matching module which are mutually connected; the information acquisition module acquires state information of the sensor equipment, and when the rule matching module is matched with an actual scene rule of the gateway configuration module, corresponding control information is sent to the gateway control module. Compared with the prior art, the lightweight rule engine module is introduced into the gateway of the Internet of things, the business logic is separated from the code, so that a user can write the rule by using the predefined semantic module, and the user of the gateway of the Internet of things can define the business rule according to the requirement of a specific scene, so that the gateway of the Internet of things is widely suitable for various application scenes.

Description

Internet of things gateway based on lightweight rule engine
Technical Field
The invention relates to the field of gateways, in particular to an Internet of things gateway based on a lightweight rule engine.
Background
The gateway of the internet of things plays a very important role in the future era of the internet of things, and becomes a link for connecting a sensing network and a traditional communication network. As gateway equipment, the gateway of the Internet of things can realize protocol conversion between the sensing network and the communication network and between different types of sensing networks, thereby realizing wide area interconnection and local area interconnection. In addition, the internet of things gateway also needs to have an equipment management function, and an operator can manage all sensing nodes at the bottom layer through the internet of things gateway equipment, know relevant information of all the sensing nodes and realize remote control.
The gateway of the Internet of things is a link for connecting the sensing network and the communication network, and can realize protocol conversion between different types of sensing networks. However, the internet of things gateway is only suitable for one specific application scenario at present, and cannot be widely applied to different application scenarios, and a user cannot conveniently make personalized settings according to some temporary requirements.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provide an internet of things gateway based on a lightweight rule engine.
The purpose of the invention can be realized by the following technical scheme:
an Internet of things gateway based on a lightweight rule engine is connected with sensor equipment and comprises a storage module, a gateway control module, a rule engine module and a gateway configuration module which are sequentially connected, wherein the gateway configuration module comprises different actual scene rules required by a user, and the rule engine module comprises an information acquisition module and a rule matching module which are mutually connected; the information acquisition module acquires state information of the sensor equipment, and when the rule matching module is matched with an actual scene rule of the gateway configuration module, corresponding control information is sent to the gateway control module.
Preferably, the information acquisition module includes a fact acquisition module and a rule acquisition module.
Preferably, the fact acquisition module acquires the state information of the relevant sensor device according to the actual scene rule.
Preferably, the gateway control module includes an input module and an output module.
Preferably, the gateway control module is further connected with a communication module.
Preferably, the communication module is connected with the cloud platform.
Preferably, the actual scene rule is stored in an xml file format.
Preferably, the sensor device comprises a temperature sensor and a humidity sensor.
Compared with the prior art, the lightweight rule engine module is introduced into the gateway of the Internet of things, the business logic is separated from the code, so that a user can compile rules by using the predefined semantic module, receive data and finally make a decision according to the compiled rules, the user of the gateway of the Internet of things can define the business rules according to the requirements of a specific scene, the user requirements are met, the gateway of the Internet of things is widely suitable for various application scenes, and the cost for system development and maintenance is reduced.
Drawings
FIG. 1 is a schematic structural diagram of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. The present embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation manner and a specific operation process are given, but the scope of the present invention is not limited to the following embodiments.
Examples
As shown in fig. 1, the application provides an internet of things gateway based on a lightweight rule engine, and a bottom layer is accessed to some commonly used sensor devices, such as a temperature sensor and a humidity sensor, and through the internet of things gateway, a user can remotely acquire and control state information of the sensor devices. The internet of things gateway comprises a storage module, a gateway control module, a rule engine module and a gateway configuration module which are connected in sequence.
The gateway control module comprises an input module and an output module, is responsible for data input and output of a serial port and a network port of the gateway, and controls external output of the gateway, for example, the gateway reads or controls various states of the modbus equipment by using the serial port, and stores the state values in a storage module of the gateway. The gateway control module is also connected with the communication module and is connected with the cloud platform through the communication module.
The gateway configuration module comprises different actual scene rules required by the user, converts the actual scene rules required by the user into texts, and stores the texts in an xml file format.
The rule engine module is responsible for the logic judgment part of the gateway. In the process of applying the rule engine to the actual internet of things gateway, the real-time state information or the real-time data information of the sensor equipment is used as a fact item of the rule engine module fact set, and the business rule of the application scene created by the user is used as a rule item of the rule engine module rule set. The fact set is a set of fact items in the system and corresponds to state information of a bottom sensor of the gateway of the Internet of things; the rule set is a set of rule entries in the system, and corresponds to business rules defined by the gateway user of the internet of things. A fact represents the state value of each fact variable, typically in the form of "… … is (or is equal to) … …". A rule consists of a condition part and an action part, typically in the form of "if … …, then … …", the condition part being "if … …" and the action part being "then … …". The condition part and the action part can both contain one or more condition elements, and a plurality of condition elements are connected by using 'and' OR 'or' to express the logical relationship between the condition elements. The value of each condition element is a Boolean variable, the condition part is a logic combination of a plurality of Boolean variable expressions, and the action of the action part is executed only when the logic result of the condition part is true. Each condition element is associated with a fact variable, a rule comprising a plurality of condition elements is associated with a plurality of fact variables, and the one or more associated fact variables are used as values of the 'associated fact' attribute of the rule, namely the value of the 'associated fact' attribute is a set of one or more fact variables associated with the rule.
The rule engine module comprises an information acquisition module and a rule matching module which are connected with each other. The information acquisition module comprises a fact acquisition module and a rule acquisition module. Firstly, a rule acquisition module acquires an actual scene rule of a gateway configuration module as a rule set, and a fact acquisition module acquires state information of related sensor equipment as a fact subset according to the actual scene rule; and then the rule matching module matches the rule set with the fact subset according to a matching algorithm, if the actual scene rule of the gateway configuration module is matched, the corresponding control information is sent to the gateway control module, and then the matching process is returned to continue matching.

Claims (8)

1. An Internet of things gateway based on a lightweight rule engine is connected with sensor equipment and is characterized by comprising a storage module, a gateway control module, a rule engine module and a gateway configuration module which are sequentially connected, wherein the gateway configuration module comprises different actual scene rules required by a user, and the rule engine module comprises an information acquisition module and a rule matching module which are mutually connected; the information acquisition module acquires state information of the sensor equipment, and when the rule matching module is matched with an actual scene rule of the gateway configuration module, corresponding control information is sent to the gateway control module.
2. The gateway of the internet of things based on the lightweight rule engine as claimed in claim 1, wherein the information acquisition module comprises a fact acquisition module and a rule acquisition module.
3. The gateway of the internet of things based on the lightweight rule engine as claimed in claim 2, wherein the fact obtaining module obtains the state information of the relevant sensor device according to the actual scene rule.
4. The gateway of the internet of things based on the lightweight rule engine as claimed in claim 1, wherein the gateway control module comprises an input module and an output module.
5. The gateway of the internet of things based on the lightweight rule engine as claimed in claim 1, wherein the gateway control module is further connected with a communication module.
6. The gateway of the internet of things based on the lightweight rule engine as claimed in claim 5, wherein the communication module is connected with a cloud platform.
7. The gateway of the internet of things based on the lightweight rule engine as claimed in claim 1, wherein the actual scene rules are saved in an xml file format.
8. The gateway of the internet of things based on the lightweight rule engine of claim 1, wherein the sensor device comprises a temperature sensor and a humidity sensor.
CN201910930444.8A 2019-09-29 2019-09-29 Internet of things gateway based on lightweight rule engine Pending CN110856133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910930444.8A CN110856133A (en) 2019-09-29 2019-09-29 Internet of things gateway based on lightweight rule engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910930444.8A CN110856133A (en) 2019-09-29 2019-09-29 Internet of things gateway based on lightweight rule engine

Publications (1)

Publication Number Publication Date
CN110856133A true CN110856133A (en) 2020-02-28

Family

ID=69596150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910930444.8A Pending CN110856133A (en) 2019-09-29 2019-09-29 Internet of things gateway based on lightweight rule engine

Country Status (1)

Country Link
CN (1) CN110856133A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112034724A (en) * 2020-09-10 2020-12-04 宁波云设雕刻技术有限公司 Intelligent home gateway system based on rule engine
CN113114779A (en) * 2021-04-23 2021-07-13 杭州萤石软件有限公司 Configuration method, terminal and system for linkage of Internet of things equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999582A (en) * 2012-11-15 2013-03-27 南京邮电大学 Lightweight rule-based WoT (Web of Things) monitoring system
US20180034655A1 (en) * 2016-07-29 2018-02-01 American Megatrends, Inc. System and method for defining interactions between internet of things (iot) devices using graphic user interface (gui) based tool
CN108512909A (en) * 2018-03-14 2018-09-07 日照职业技术学院 A kind of computer remote control system based on Internet of Things
CN110098953A (en) * 2019-03-29 2019-08-06 南京邮电大学 The things-internet gateway hierarchical control framework of rule-based engine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999582A (en) * 2012-11-15 2013-03-27 南京邮电大学 Lightweight rule-based WoT (Web of Things) monitoring system
US20180034655A1 (en) * 2016-07-29 2018-02-01 American Megatrends, Inc. System and method for defining interactions between internet of things (iot) devices using graphic user interface (gui) based tool
CN108512909A (en) * 2018-03-14 2018-09-07 日照职业技术学院 A kind of computer remote control system based on Internet of Things
CN110098953A (en) * 2019-03-29 2019-08-06 南京邮电大学 The things-internet gateway hierarchical control framework of rule-based engine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112034724A (en) * 2020-09-10 2020-12-04 宁波云设雕刻技术有限公司 Intelligent home gateway system based on rule engine
CN113114779A (en) * 2021-04-23 2021-07-13 杭州萤石软件有限公司 Configuration method, terminal and system for linkage of Internet of things equipment

Similar Documents

Publication Publication Date Title
CN110933146B (en) Data conversion method and device and server
CN108769109B (en) Unified processing method and system for data of Internet of things heterogeneous equipment
CN108769165A (en) Data processing method, Internet of Things access system in a kind of Internet of Things
CN107454092B (en) OPCUA and DDS protocol signal conversion device, communication system and communication method
US20200274764A1 (en) Network slice management
Graube et al. Information models in OPC UA and their advantages and disadvantages
US20180084085A1 (en) Cross platform device virtualization for an iot system
CN104012063A (en) Controller for flexible and extensible flow processing in software-defined networks
Großmann et al. OPC UA server aggregation—The foundation for an internet of portals
CN108365967A (en) Method, system, terminal and the computer readable storage medium of dynamic configuration communications parameter
CN108964968A (en) Service access management method and system under a kind of container cloud environment
CN106790222B (en) MODBUS/full-interconnection manufacturing network information service adapter and implementation method thereof
CN109447276B (en) Machine learning system, equipment and application method
CN103259718A (en) Flow table conversion method and device
CN110856133A (en) Internet of things gateway based on lightweight rule engine
CN111061678B (en) Service data processing method, device, computer equipment and storage medium
CN112180776B (en) OPC UA information modeling method and device based on equipment component module
DE102015204991A1 (en) Method and apparatus for controlling an audio / video bridging data stream for a vehicle ethernet
CN107211043A (en) M2M data processing methods, equipment and system
Banerjee et al. Aggregation of information models—An OPC UA based approach to a holistic model of models
CN107193917A (en) Whole station CONFIG.SYS lossless data update method based on IID
CN110245128A (en) Method for building up and device, storage medium, the electronic device of meta-model
CN110995639A (en) Data transmission method
CN105824944A (en) XML (X Extensible Markup Language) configuration data maintenance method and system based on scripting language
CN113256163B (en) Smart city government affair cloud platform off-network operation method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200228