The monitoring of data generated by a large number of devices in Internet of Things (IoT) systems is an important and complex issue. Several studies have explored the use of generic rule engine, primarily based on the RETE algorithm, for monitoring the flow of device data. In order to solve the performance problem of the RETE algorithm in IoT scenarios, some studies have also proposed improved RETE algorithms. However, implementing modifications to the general rule engine remains challenges in practical applications. The Thingsboard open-source platform introduces an IoT-specific rule engine that does not rely on the RETE algorithm. Its interactive mode attracted attention from developers and researchers. However, the close integration between its rule module and the platform, as well as the difficulty in formulating rules for multiple devices, limits its flexibility. This paper presents an adaptable and user-friendly rule engine framework for monitoring and control IoT device data flows. The framework is easily extensible and allows for the formulation of rules contain multiple devices. We designed a Domain-Specific Language (DSL) for rule description. A prototype system of this framework was implemented to verify the validity of theoretical method. The framework has potential to be adaptable to a wide range of IoT scenarios and is especially effective in where real-time control demands are not as strict.
翻译:物联网系统中大量设备产生的数据监控是一个重要且复杂的问题。已有研究探索了基于RETE算法的通用规则引擎在设备数据流监控中的应用。针对RETE算法在物联网场景下的性能问题,部分研究提出了改进的RETE算法。然而,在实际应用中修改通用规则引擎仍面临挑战。Thingsboard开源平台引入了一种不依赖RETE算法的物联网专用规则引擎,其交互模式引起了开发者和研究者的关注。但该平台的规则模块与平台紧密集成,且难以针对多个设备制定规则,这限制了其灵活性。本文提出一种自适应且用户友好的规则引擎框架,用于监控和调控物联网设备数据流。该框架易于扩展,支持包含多设备的规则制定。我们设计了一种用于规则描述的领域特定语言(DSL),并实现了该框架的原型系统以验证理论方法的有效性。该框架具有适应多种物联网场景的潜力,尤其适用于实时控制要求不高的场景。