RESTful M2M Gateway for Remote Wireless Monitoring for District Central Heating Networks

Bo Cheng, Zesan WeiSensors 2014 · DOI

TL;DR

This paper introduces a RESTful M2M gateway designed for efficient remote wireless monitoring of district central heating networks. It addresses the challenge of integrating diverse sensor devices and ensuring reliable data transmission by proposing a resource-oriented architecture, a unified device abstraction using OSGi, and a robust data scheduling mechanism.

What Problem Does This Paper Address?

District heating networks are becoming increasingly prevalent due to their energy efficiency and environmental benefits. However, effectively managing these complex systems requires robust remote monitoring and control capabilities. Existing solutions often struggle with integrating a wide variety of sensor devices, each with its own communication protocols and data formats. Furthermore, ensuring reliable data transmission, especially in environments with intermittent connectivity or varying network conditions, is crucial for maintaining the operational integrity of these critical infrastructure systems. This paper aims to bridge this gap by proposing a flexible and standardized M2M gateway architecture that simplifies device integration and enhances data reliability for district heating networks.

Methods

The core of this work is the development of a RESTful M2M gateway with a three-layer architecture:

  • Device Resource Abstraction Layer: This layer shields the gateway from the complexities of individual physical devices. It utilizes OSGi technology and the Dependence Inversion Principle to create a unified framework for accessing and managing diverse sensor devices, regardless of their underlying protocols.
  • Resource Management and Control Layer: This layer handles core M2M gateway functions, including device registration, resource management, data processing, storage, and acquisition. A key component here is the implementation of a buffer queue combined with a polling method for data scheduling and Quality of Service (QoS) guarantee, designed to manage data traffic congestion.
  • Open Service Interface Layer: This layer exposes the gateway's capabilities as Web services, primarily through a RESTful API. This allows for easy integration with external applications for monitoring and control.

The paper also details:

  • Resource Address Mapping: A mechanism to map RESTful resource addresses to physical sensor devices.
  • Uniform Devices Abstraction Framework: Leveraging OSGi for standardized device access.
  • Data Scheduling Algorithm: A buffer queue and polling approach to ensure data quality and manage traffic.
  • RESTful API Design: A set of APIs for remote monitoring and control.

Datasets

Not discussed in the paper. The experiments were conducted using a testbed environment with real-world components.

Key Insights and Ideas

  • RESTful Architecture for M2M: Applying REST principles to M2M gateways offers a standardized and web-friendly approach to device communication, simplifying integration and management.
  • OSGi for Device Heterogeneity: Using OSGi provides a powerful framework for abstracting diverse physical devices, making the gateway adaptable to a wide range of sensors and protocols.
  • Buffer Queue + Polling for QoS: This combination effectively addresses data traffic congestion and ensures data reliability by intelligently scheduling data transmission based on priority.
  • Hierarchical Resource Definition: A well-defined URL structure for resources (stations, PLCs, sensors) makes the system intuitive and manageable.
  • Performance Benefits of REST: The experimental results demonstrate that RESTful APIs offer significantly lower response times compared to SOAP-based services, especially under concurrent thread loads.

Key Results

The paper presents several experimental results:

  • Packet Loss Test: In clear weather, the average packet loss rate was 0.75% over 20,000 data packets. In adverse weather (windy and rainy), the average packet loss rate increased to 2%. Both are considered relatively low and satisfactory.
  • Time Delay Test: In clear weather, average time delays were consistently below 10 ms. In adverse weather, delays increased, averaging over 10 ms and often exceeding 13 ms.
  • Data Cache and Scheduling: Implementing data caching and polling functions significantly reduced the response time for user requests from 1.3 seconds to 0.5 seconds.
  • Concurrent Threads Performance: The RESTful Web service demonstrated significantly lower average response times compared to SOAP-based Web services as the number of concurrent threads increased.

Limitations and Future Work

  • Protocol Expansion: The authors acknowledge that the current system supports specific protocols (Modbus, GPRS). Future work will focus on extending the gateway to support a wider variety of protocols used in electrical equipment.
  • Larger Scale Deployment: The performance needs to be tested in a larger-scale deployment environment to validate its scalability and robustness in real-world, extensive applications.
  • Adverse Weather Communication: While packet loss and delay are within acceptable ranges, the paper suggests further efforts to improve communication quality and reduce packet loss in adverse weather conditions.

Summary updated

Abstract

In recent years, the increased interest in energy conservation and environmental protection, combined with the development of modern communication and computer technology, has resulted in the replacement of distributed heating by central heating in urban areas. This paper proposes a Representational State Transfer (REST) Machine-to-Machine (M2M) gateway for wireless remote monitoring for a district central heating network. In particular, we focus on the resource-oriented RESTful M2M gateway architecture, and present an uniform devices abstraction approach based on Open Service Gateway Initiative (OSGi) technology, and implement the resource mapping mechanism between resource address mapping mechanism between RESTful resources and the physical sensor devices, and present the buffer queue combined with polling method to implement the data scheduling and Quality of Service (QoS) guarantee, and also give the RESTful M2M gateway open service Application Programming Interface (API) set. The performance has been measured and analyzed. Finally, the conclusions and future work are presented.
BibTeX
@inproceedings{cheng2014restful,
  author = {Bo Cheng and Zesan Wei},
  title = {{RESTful M2M Gateway for Remote Wireless Monitoring for District Central Heating Networks}},
  booktitle = {Sensors},
  year = {2014},
  doi = {10.3390/s141222447},
}
Figure