CN110868316A - Internet of things platform architecture based on rule engine - Google Patents

Internet of things platform architecture based on rule engine Download PDF

Info

Publication number
CN110868316A
CN110868316A CN201910930538.5A CN201910930538A CN110868316A CN 110868316 A CN110868316 A CN 110868316A CN 201910930538 A CN201910930538 A CN 201910930538A CN 110868316 A CN110868316 A CN 110868316A
Authority
CN
China
Prior art keywords
rule
internet
things
module
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
CN201910930538.5A
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 CN201910930538.5A priority Critical patent/CN110868316A/en
Publication of CN110868316A publication Critical patent/CN110868316A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to an Internet of things platform architecture based on a rule engine, which comprises an application layer, a system service layer, a network layer and an equipment layer which are sequentially arranged from top to bottom and are in communication connection, wherein the system service layer comprises a rule engine module, a database rule event table and an API (application programming interface) for processing logic services; the application layer comprises a monitoring platform control end, and the monitoring platform control end comprises a rule event setting module associated with the database rule data table. Compared with the prior art, the invention realizes the high separation of the business logic rule and the system through the rule engine technology, provides a special business logic interface, facilitates business personnel to customize the logic rule, simultaneously, the rule engine technology appoints a set of perfect rule design grammar, a user can abstract the corresponding logic rule from the complex business system rule, and the platform system has high flexibility in maintenance and development through the rule engine technology.

Description

Internet of things platform architecture based on rule engine
Technical Field
The invention relates to the technical field of Internet of things, in particular to an Internet of things platform architecture based on a rule engine.
Background
The concept of the internet of things originates from 1999, the technology of the internet of things realizes the object-object connection in the objective world, and the internet of things is another revolution of the world information technology after computers and the internet, and is another technical extension of the human society in the 21 st century with the information technology application as the core. The internet of things is comprehensively integrated with the traditional industry, and the essence of the internet of things is 'internet with object connection'. This phrase has two layers of meaning: firstly, the internet is still the core and the foundation of the internet of things, and the internet of things is expanded and extended by the internet; and secondly, the terminal sensor of the internet of things can be embedded into any internet of things monitoring equipment, and the internet of things equipment can perform intelligent information exchange and communication by accessing the internet by using the related technology.
The Internet of things is widely applied to a plurality of fields such as a positioning system, an intelligent home induction system and a monitoring and recognizing system, and the sensor equipment is made to have certain intelligence through Internet of things equipment. The intelligence of the Internet of things equipment mainly lies in that the Internet of things equipment can realize the interconnection of the equipment and a background server interface through the Internet and then carry out certain intelligent processing through an Internet server side, so that a wide intelligent Internet of things equipment network is formed. The common identification, common management and common monitoring of various Internet of things devices can be realized on the Internet of things device network. The Internet of things can realize comprehensive perception, reliable transmission and intelligent processing of the goods through related technologies. When the internet of things equipment is arranged, firstly, sensor equipment is built in the internet of things equipment, external environment variables are received through the sensor equipment, and the external environment variables are subjected to digital processing to obtain corresponding data; then, the Internet of things equipment is accessed to the Internet, so that the server side can obtain digital Internet of things monitoring data; the server side processes the data in the background after receiving the data; and finally, returning the result after processing and analysis to the Internet of things equipment, and receiving the processing instruction by the Internet of things equipment so as to perform corresponding supervision processing on the equipment.
The traditional internet of things platform adopts a vertical structure system, and the structure of the system has the following defects: the standards of the sensor equipment cannot be unified, the multiplexing of the Internet of things platforms cannot be realized among different Internet of things system equipment, and the similar function development modules among the Internet of things platforms cannot be multiplexed, so that the development efficiency of the Internet of things platforms is reduced, and the expansibility of the platforms is difficult to promote. The Internet of things commonality platform equipment can improve the problems, and the Internet of things commonality platform enables various Internet of things equipment to be accessed to a public data platform by formulating a uniform Internet of things equipment access standard, so that the expansibility of the platform is improved. Similar function modules among different Internet of things platforms are also reused, so that the development efficiency of the platforms is greatly increased, the development cost is reduced, and developers can conveniently manage the Internet of things equipment. Meanwhile, the application system service is constructed on a unified platform, so that the equipment and the data can be shared, and the universality and the expansibility are stronger.
In a traditional platform service structure of the internet of things, service logic is embedded into each module of the platform and attached to a fixed module, and developers monitor and manage service conditions of the service logic in each module when needed along with changes of transmitted equipment information, so that various error information which possibly occurs at any time is prevented. With the development of the information technology, the technology of the internet of things is widely popularized, and people check and monitor more internet of things equipment monitoring data through an internet of things platform. However, the internet of things devices are various in types, and if a set of monitoring logic is customized for each type of internet of things device, a huge cost is spent for maintaining the internet of things platform.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provide an internet of things platform architecture based on a rule engine.
The purpose of the invention can be realized by the following technical scheme:
an Internet of things platform architecture based on a rule engine comprises an application layer, a system service layer, a network layer and an equipment layer which are sequentially arranged from top to bottom and are in communication connection, wherein the system service layer comprises a rule engine module, a database rule event table and an API (application programming interface) for processing logic services; the application layer comprises a monitoring platform control end, and the monitoring platform control end comprises a rule event setting module associated with the database rule data table.
Preferably, the device layer includes a gateway and a plurality of sensors respectively connected to the gateway.
Preferably, the sensor comprises a temperature sensor and a humidity sensor.
Preferably, the network layer adopts an MQTT communication protocol.
Preferably, the system service layer further includes a database gateway table and a database sensor table.
Preferably, the monitoring platform control terminal further includes an equipment registration module, an equipment data module, and a data monitoring alarm module, where the equipment registration module is associated with the equipment layer.
Preferably, the rule engine module comprises a data management module, a logic management module, a rule control module and an event trigger module.
Preferably, the rule engine module processes the logic rules through the Reta algorithm of the rule engine technology.
Compared with the prior art, the invention realizes the high separation of the business logic rules and the system through the rule engine technology, provides a special business logic interface, facilitates business personnel to customize the logic rules, simultaneously, the rule engine technology appoints a set of perfect rule design grammar, a user can abstract the corresponding logic rules from the complex business system rules, and the Reta algorithm processed by the rule engine technology is used for efficiently processing the logic rules, so that the platform system has high flexibility in maintenance and development through the rule engine technology.
Drawings
FIG. 1 is a block 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
The application provides an Internet of things platform architecture based on a rule engine, which comprises an application layer, a system service layer, a network layer and an equipment layer which are sequentially arranged from top to bottom and are in communication connection. In order to deal with the compatibility problem that different Internet of things devices are connected into an Internet of things platform, a lightweight rule engine Drools is introduced into the Internet of things platform, a set of API (application programming interface) for processing logic services is independently provided in a service layer, a set of setting logic which can be customized by a user is designed, the user can customize different monitoring rules according to different scene requirements, and the Internet of things platform is suitable for various Internet of things devices.
As shown in fig. 1, the present application mainly embodies the idea of layering and classification for the lowest device layer. Firstly, a receiving node is set to receive the information collected by the sensor, and a gateway node is needed to be set to collect the information of a plurality of sensor nodes. As gateway equipment, the gateway of the Internet of things can realize the combination of a sensor network and a communication network and the protocol conversion between different types of protocols. The gateway plays a very important role in the future internet of things, and becomes a link for connecting the sensor network and the traditional communication network. In this embodiment, the sensor includes a temperature sensor and a humidity sensor.
In this embodiment, the network layer uses MQTT communication protocol. And the network layer is responsible for subscribing and publishing the data collected by the equipment layer at the MQTT cloud. On one hand, any device can be uploaded to the MQTT server in a place with signals as long as the device is connected to WIFI, and corresponding data can be obtained and uploaded to an upper system service layer as long as the device subscribes to a corresponding theme.
The system business layer comprises a rule engine module, a database rule event table, a database gateway table, a database sensor table and an API (application programming interface) for processing logic business. The rule engine module comprises a data management module, a logic management module, a rule control module and an event trigger module, and processes the logic rules through the Reta algorithm of the rule engine technology. The system service layer mainly gathers monitoring data input by the sensor and analyzes and processes the data. The layer comprises a plurality of processing modules and is the core of the service function of the whole platform. The cloud subscription data processing method comprises the steps of firstly screening and classifying data subscribed by a cloud and storing the data in different database tables, and additionally, processing real-time data, which needs to be supported by a rule engine module.
The application layer comprises a monitoring platform control end, the monitoring platform control end comprises a rule event setting module associated with the database rule data table, an equipment registration module, an equipment data module and a data monitoring and alarming module, and the equipment registration module is associated with the equipment layer. The application layer mainly provides an interface for data interaction with a user. On one hand, a user registers equipment and sets corresponding rules through the Internet of things platform, and on the other hand, the user can monitor equipment data to perform event alarm. Besides, the functions of user login, user deletion, user authority setting and the like can be performed on the user role function module.
In this embodiment, the internet of things platform selects JBoss Drools as the business rule engine, mainly because Drools has high flexibility, the rule making language is also very friendly to non-technical personnel, and a user can efficiently make the needed rules. JBoss Drools is an open source business rules engine. Drools sets rule logic through a scripting language, the rule file supports XML and DRL file formats, and non-developers can quickly and conveniently set the rule logic in an XML application scene. Additionally the JBoss Drools rule file supports the injection of JAVA expressions.
The rule engine technology has the greatest advantage of realizing the separation between the business logic rules and the application modules, so that the system has high flexibility and maintainability. Aiming at the Internet of things platform deployed in a large range, the corresponding rule engine also needs to have the capacity of processing mass information, the capacity of processing data in real time and the capacity of multiplexing similar data. The rule engine module mainly realizes the following functional characteristics:
and (3) expandability: massive sensor data need to be input into the large-scale deployed Internet of things monitoring equipment, so that the rule engine module used by the platform needs to extract parts with the same data format of different types of sensor data, unified processing is carried out in the rule logic processing stage, and the differences of the sensor data are distinguished in the application layer part;
real-time processing: the rule engine is required to continuously interact with the database in the processing stage, so that a core data part recorded by the sensor is required to be extracted in real time when business rule logic is formulated, the formulated rule is simplified when the rule is formulated, and the influence of too complicated rule formulation on the processing speed is prevented;
and (3) event cycle processing: the processing result of a certain rule can become the input event of the next rule;
dynamically configurable: with the increase of user-defined monitoring equipment and business logic, the rule service in the rule engine is required to be continuously modified; the change must be dynamically realized, when the equipment and the service are changed, the rule file can immediately complete the update of the rule file, the normal operation of the system cannot be influenced, and the system can also immediately update the newly established rule file after the update is completed.

Claims (8)

1. An Internet of things platform architecture based on a rule engine comprises an application layer, a system service layer, a network layer and an equipment layer which are sequentially arranged from top to bottom and are in communication connection, and is characterized in that the system service layer comprises a rule engine module, a database rule event table and an API (application programming interface) for processing logic services; the application layer comprises a monitoring platform control end, and the monitoring platform control end comprises a rule event setting module associated with the database rule data table.
2. The rules engine-based platform architecture for internet of things of claim 1, wherein the device layer comprises a gateway and a plurality of sensors respectively connected to the gateway.
3. The rules engine based internet of things platform architecture of claim 2, wherein the sensors comprise a temperature sensor and a humidity sensor.
4. The internet of things platform architecture based on a rules engine of claim 1, wherein the network layer employs MQTT communication protocol.
5. The rules engine based platform architecture for internet of things of claim 1, wherein the system service layer further comprises a database gateway table and a database sensor table.
6. The internet of things platform architecture based on the rule engine as claimed in claim 1, wherein the monitoring platform control end further comprises a device registration module, a device data module, and a data monitoring alarm module, the device registration module is associated with the device layer.
7. The internet of things platform architecture based on the rule engine as claimed in claim 1, wherein the rule engine module comprises a data management module, a logic management module, a rule control module and an event trigger module.
8. The Internet of things platform architecture based on the rule engine as claimed in claim 1, wherein the rule engine module processes the logic rule through a Reta algorithm of rule engine technology.
CN201910930538.5A 2019-09-29 2019-09-29 Internet of things platform architecture based on rule engine Pending CN110868316A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910930538.5A CN110868316A (en) 2019-09-29 2019-09-29 Internet of things platform architecture based on rule engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910930538.5A CN110868316A (en) 2019-09-29 2019-09-29 Internet of things platform architecture based on rule engine

Publications (1)

Publication Number Publication Date
CN110868316A true CN110868316A (en) 2020-03-06

Family

ID=69652374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910930538.5A Pending CN110868316A (en) 2019-09-29 2019-09-29 Internet of things platform architecture based on rule engine

Country Status (1)

Country Link
CN (1) CN110868316A (en)

Cited By (9)

* 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
CN112235413A (en) * 2020-10-23 2021-01-15 北京航空航天大学云南创新研究院 Universal Internet of things interface management platform
CN112579071A (en) * 2020-12-24 2021-03-30 福建升腾资讯有限公司 Form design method and system based on form designer and event rule
CN112698593A (en) * 2020-12-15 2021-04-23 中安物联云科技(深圳)有限公司 Internet of things platform management system
CN112883313A (en) * 2021-02-24 2021-06-01 上海浦东发展银行股份有限公司 Intelligent monitoring system for business data of credit card
CN112947646A (en) * 2021-03-03 2021-06-11 浪潮云信息技术股份公司 Environment monitoring and early warning system and method
CN113965399A (en) * 2021-10-29 2022-01-21 重庆忽米网络科技有限公司 Internet of things equipment data transmission method based on MQTT protocol
CN117240889A (en) * 2023-11-01 2023-12-15 广东壹健康健康产业集团股份有限公司 Application data service architecture and application data processing method of Internet of things
CN117743398A (en) * 2023-12-15 2024-03-22 智人开源(北京)科技有限公司 Real-time decision and data processing method based on rules in stream database

Citations (3)

* 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
EP2884717A1 (en) * 2013-12-12 2015-06-17 Avvasi, Inc. Systems for media policy decision and control and methods for use therewith
CN110098953A (en) * 2019-03-29 2019-08-06 南京邮电大学 The things-internet gateway hierarchical control framework of rule-based engine

Patent Citations (3)

* 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
EP2884717A1 (en) * 2013-12-12 2015-06-17 Avvasi, Inc. Systems for media policy decision and control and methods for use therewith
CN110098953A (en) * 2019-03-29 2019-08-06 南京邮电大学 The things-internet gateway hierarchical control framework of rule-based engine

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李存岑等: "基于JESS和J2EE的自动扶梯安全检验专家系统研究", 《计算机时代》 *
荆心等: "复杂事件处理技术及其在物流物联网中的应用", 《计算机应用》 *

Cited By (9)

* 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
CN112235413A (en) * 2020-10-23 2021-01-15 北京航空航天大学云南创新研究院 Universal Internet of things interface management platform
CN112698593A (en) * 2020-12-15 2021-04-23 中安物联云科技(深圳)有限公司 Internet of things platform management system
CN112579071A (en) * 2020-12-24 2021-03-30 福建升腾资讯有限公司 Form design method and system based on form designer and event rule
CN112883313A (en) * 2021-02-24 2021-06-01 上海浦东发展银行股份有限公司 Intelligent monitoring system for business data of credit card
CN112947646A (en) * 2021-03-03 2021-06-11 浪潮云信息技术股份公司 Environment monitoring and early warning system and method
CN113965399A (en) * 2021-10-29 2022-01-21 重庆忽米网络科技有限公司 Internet of things equipment data transmission method based on MQTT protocol
CN117240889A (en) * 2023-11-01 2023-12-15 广东壹健康健康产业集团股份有限公司 Application data service architecture and application data processing method of Internet of things
CN117743398A (en) * 2023-12-15 2024-03-22 智人开源(北京)科技有限公司 Real-time decision and data processing method based on rules in stream database

Similar Documents

Publication Publication Date Title
CN110868316A (en) Internet of things platform architecture based on rule engine
CN107222645B (en) A kind of method and system of workflow access
CN108769121A (en) Intelligent industrial equips the method for uploading of internet of things data acquisition system and gathered data
CN104967686B (en) A kind of structure face type 3S intelligent service shops system and its design method
CN105913847A (en) Voice control system, user end device, server and central control unit
CN102355696B (en) Large scale Internet of things gateway system and realization method thereof
CN103560943A (en) Network analytic system and method supporting real-time mass data processing
WO2020138828A2 (en) Integrated service platform server using internet of things, and method for providing integrated service
CN110191138A (en) A kind of edge calculations intelligent adapter and implementation method towards industry manufacture
Jiang et al. Design of software-defined gateway for industrial interconnection
CN112187922A (en) Intelligent Internet of things shutdown machine based on MQTT communication protocol
CN111667162A (en) Traditional chinese medicine or natural plant extract intelligent manufacturing system based on industry internet
CN107329891A (en) Automation regression testing method based on structural data and REST interfaces
US11677642B2 (en) Automated support system for connected devices
CN105681285A (en) Method for obtaining information of heterogeneous industrial signal source
CN109150854A (en) Dynamic and configurable communication protocol converting system based on XML file
CN109639484A (en) Industrial converged network management method and its network manager based on software definition
CN113810489A (en) Industrial internet control system and method
CN108234261A (en) For the service bus dispatching method of electric control system network supervision
CN112380428A (en) Method, system, electronic device and storage medium for cloud-edge coordinated edge computing
CN112214474A (en) Enterprise-level informatization system based on micro-service architecture
CN116156012B (en) Universal heterogeneous Internet of things equipment standardized access and data analysis system and method
CN108600357A (en) A kind of foster management system of oil and gas equipment dimension and working method based on SOA
CN115604013B (en) Industrial data interaction platform and interaction method
CN114374708B (en) Intelligent factory data automatic subscription method based on collaborative filtering and MQTT

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: 20200306