Abstract

A smart home gateway plays an important role in the Internet of Things (IoT) system that takes responsibility for the connection between the network layer and the ubiquitous sensor network (USN) layer. Even though the home network application is developing rapidly, researches on the home gateway based open development architecture are less. This makes it difficult to extend the home network to support new applications, share service, and interoperate with other home network systems. An integrated access gateway (IAGW) is proposed in this paper which upward connects with the operator machine-to-machine platform (M2M P/F). In this home network scheme, the gateway provides standard interfaces for supporting various applications in home environments, ranging from on-site configuration to node and service access. In addition, communication management ability is also provided by M2M P/F. A testbed of a simple home network application system that includes the IAGW prototype is created to test its user interaction capabilities. Experimental results show that the proposed gateway provides significant flexibility for users to configure and deploy a home automation network; it can be applied to other monitoring areas and simultaneously supports a multi-ubiquitous sensor network.

1. Introduction

The IoT (Internet of Things) is considered one of the major communication advances in recent years, since it offers the basis for the development of independent cooperative services and applications [1]. Extensive research is underway to explore the potential applications using this concept in different areas, such as a ZigBee-based, wearable scheme for monitoring physiological parameters [2], monitoring animal presence and pasture time over an extended area [3], the management of medication and health care [4], and, in particular, home network applications (HNAs). The IoT potential for HNAs is reported in [58]. The implementation of IoT for monitoring the environmental conditions of a home is proposed in [5]. A smart home testbed based on the pedagogical model of project-based learning (PBL) for undergraduate education is proposed in [6]. A wireless home automation network for indoor surveillance is presented in [7]. A synchronous smart and wireless home energy management scenario was proposed in [8] and [9], respectively. Each of these studies identifies potential capacities for self-configuration, comprehensive management, and communication capabilities.

For HNAs, the home gateway is the most important sink node (SN) that provides access and management capabilities for the child nodes (CNs), such as home devices or smart home terminals. Many articles about ZigBee-based home gateways have been published recently [1012]. Authors in [10] propose a ZigBee-based homecare gateway that deals with the collection of terminal medical data and eventually passes the data to the doctor for remote diagnosis. Authors in [11] introduce a household controller supporting both ZigBee and infrared communication. An OSGi-based architecture for the dynamic integration of ZigBee home networks into home gateways is proposed in [12], where ZigBee home network devices are represented as device proxy service bundles. However, according to these HNA scenarios, data interaction between SN and CN is achieved mostly by proprietary wireless protocol, and both SN and CN are specially designed for an HNA scheme, and, as such, lack interoperability. These proprietary gateways and their systems are difficult to extend so as to support new services, integrate new data, or interoperate with other HNAs.

Machine-to-machine platform (M2M P/F) integrated service schemes which offer self-configuration and expandability have significant potential for improving the efficiency of traditional home automation systems [13]. In [14], a snapshot is proposed of the latest progress in M2M standardization of things such as requirements, architecture, candidate protocols, security aspects, and device management. In [15], an IoT-based retractable bollard management system is described to govern vehicular access appropriated for restricted urban areas. In [16], biomedical applications and various low power wireless sensor and link technologies are discussed, but the scheme integration proposed is only suited to the BlackBerry system. In [17], M2M architecture for applications in healthcare, energy management, and entertainment is proposed, and the performance tradeoffs inherent in existing designs are evaluated.

In this paper, an integrated access gateway (IAGW) architecture is proposed with standard interfaces for supporting various application nodes in home environments, ranging from on-site configuration to node and service access. Both the upward and downward communication interfaces of the IAGW are standardized. The IAGW based home network system architecture adopts a separation principle between terminal management and service implementation; the former is realized by the M2M P/F, and the latter is provided by the home service layer. The working mode and parameter configuration of the IAGW gateway can be set using a web console. If the configuration of the IAGW is completed correctly, it will allow management by the M2M P/F automatically. Meanwhile, the system service data are directly transferred to the home service layer through the IAGW. Based on the proposed IAGW and the M2M P/F fusion architecture, the home sensors and services can be standardized and easily managed. Thus, it can reduce the redevelopment workload and promote the interoperability between the multi-HNA systems. The system architecture, the design methods of the IAGW based HNA, and the demonstration experiment will be discussed in Sections 24.

2. System Overview

As shown in Figure 1, the hierarchical architecture of the home network system consists of 3 layers: the ubiquitous sensor networks (USN) layer, the network layer and the service layer.

The main role of the IAGW is data transmission between the CNs and the network layer. The CNs in the USN layer include indoor air quality (IAQ), wireless control socket (WCS), infrared proximity sensor (IPS), video camera, and other sensors or actuators in the HNA. Except for the video camera, the other CNs are integrated with ZigBee modules and network ability. The video camera connects to the IAGW gateway through a Wi-Fi wireless interface or an RJ45 wired interface. Users enjoy the convenience and safety of HNA services through the personal computer (PC), mobile phone (MP), and PAD. The network layer consists of a wired network and a 3G/4G wireless cellular network. The service layer includes an HNA service center (HNASC) and a home M2M platform (HM2M P/F); the former is responsible for home services management, while the latter provides interfaces to the IAGW and supports gateway management. The HNASC supports receiving, authenticating, and storing real-time data collected by the IAGW. It also connects with the business operating support system (BOSS) to realize operations like business order synchronization and push information to users in the form of hand-held terminal and short message service (SMS).

3. Design Methods

3.1. IAGW Prototype

Figure 2 shows the stack structure hardware architecture of the proposed IAGW. The IAGW prototype is designed to provide standard access to the CNs deployed in the HNA system. The mainboard is the core unit of the IAGW that is designed with a MCU, a SDRAM, and a NAND flash; it runs Linux 2.6 or a later operating system (OS). The USB interface is used to connect a memory card for local data storage, especially video monitoring data. The 4 LED indicators of the IAGW represent different working states, corresponding to power on, network connect/disconnect, data transmission, and alarm on/off, respectively.

The IAGW proposes an onboard 22-pin internal interface and an RS232/485 external interface connected to the mainboard, which are convenient for ZigBee SN integration. If user needs to connect and control other wireless standard home devices, the corresponding SN can be redeveloped and integrated through the two interfaces. The dimensions of the onboard internal interface that adjusts to the ZigBee SN are shown in Figure 3.

3.2. Functional Architecture

The functional architecture of the IAGW is shown in Figure 4. The USN layer interface is realized through the ZigBee radio and its networking ability. The public network interface mandates an IP-based network, such as 2G/3G/4G, or Ethernet. The USN Manager module manages the home USN, which consists of providing a uniform network interface to the packet manager or other modules, detection of USN network status (connection status OK/NG), and acquisition of all of the USN network service types through the USN I/F.

The “Registration” module is used to manage node registration to the IAGW and request gateway registration to the HM2M P/F. Meanwhile, the “Gateway Configuration” module provides the communication parameters and working mode configuration of the IAGW through HM2M P/F. The “Node Mngr” module manages CNs, including aspects such as node ID management, node status monitoring, and node control. The node monitor is a submodule of the node manager that monitors the node’s status. The “Packet Mngr” module of the proposed IAGW repacketizes data received from CNs to a standard form and sends them to HNASC P/F, parses requests initiated by the platform, and packetizes them into the appropriate form to send to the CNs. The “Security” module includes authorization/authentication and en/decryption, and the “QoS (Quality of Service)” module guarantees service quality. The “Remote Maintenance” module supports remote maintenance, such as IAGW and SN software upgrades from the HM2M P/F.

3.3. Adaptive Access and M2M Business Interaction Method

As shown in Figure 5, the IAGW based HNA system can be divided into 2 kinds of communication interfaces: the HMMP- (Home M2M protocol-) S and HMMP-A.

The HMMP-S interface (step ) realizes a ZigBee-based wireless communication standard protocol between the CNs and the IAGW, so as to solve the access of the various types of home terminals. It relates to home network attributes, reading the CNs’ ID and description information and setting the communication port of the ZigBee SN. It relates to home network services, acquiring all of the home network service types through the IAGW. The HMMP-A protocol (steps , , and ) belongs to the data transmission interface between the IAGW and the HM2M P/F. The HMMP-S interface protocol is forwarded directly to the HMMP-A interface via the IAGW, and HMMP-A protocol includes the packet of the HMMP-S. Meanwhile, if the IAGW connects to the HNASC platform, the HMMP-A protocol should be the expansion of the HMMP-S protocol, so that the reliability of communication between the IAGW and the HM2M P/F, HM2M P/F, and HNASC can be secured.

The HM2M P/F uses CONFIG_SET command to configure the various home terminals. As shown in Figure 6, the adapter software according to a home terminal transmits through the HM2M P/F (step 1) and remote push to the IAGW (step 2).

Aiming at CN node management based on HMMP-S protocol, the IAGW takes appropriate action based on the status, such as adjusting the data sending rate or the error status. Meanwhile, it reports node status to the HM2M P/F through the IAGW, allowing to manage the status regularly. HMMP-S protocol also implements control of the CNs’ working behaviors, and node control commands are initially issued by the IAGW or HNASC P/F. Home node data acquisition and processing flow are shown in Figure 7: step 0 represents the configuration of the home CN, including data acquisition and data reporting rules; step 1 represents the home node using sensor adapter protocol, which is loaded by the HM2M P/F to read data; step 2 indicates that the home node uses TRANSPARENT_DATA command to transmit data to the HNASC P/F; step 3 presents the hand-held monitoring and displays CN sensing data and status.

3.4. User Development Procedure

Figure 8 shows the user development step and interface in the proposed HM2M P/F based home network system. By configuring the communication port of the IAGW, the communication between the IAGW and SN is secured. After port configuration is finished, it would be autosaved to the internal memory of the IAGW.

If the HMMP-S communication configuration is finished, then the communication parameters of the HMMP-A can be set. The main parameters that should be configured include the IP address, the port, and the secret keys of the HNASC P/F. The IAGW also can be configured in encryption mode. When the COMM_CONFIG data are executed, the IAGW sends a communication key request to the HM2M P/F, which is automatically assigned by the latter. Between the CNs and the IAGW, also the IAGW and the M2M P/F, monitoring and maintenance of communication are implemented with HEART_BEAT and HEART_BEAT_ACK packets. Hence, the data transmission link of the HNA system has been established; the HM2M P/F can implement remote management for the IAGW and CNs, and through the HNASC P/F to support kinds of home services for user.

4. System Implementation

4.1. Prototype Gateway Based HNA

As shown in Figure 9, a testbed of a home network system for validating the basic functions of the proposed smart IAGW has been created. The testbed includes an IAGW (SN), two IAQ nodes, a WCS node, a smoke detector, a passive infrared (PIR) node installed in the doorway, and an alarm node, and the external antenna of the ZigBee radio is installed in the Wi-Fi antenna interface (as shown in Figure 2), while the Wi-Fi module used an onboard antenna. The comparison between the traditional gateway and the IAGW is listed in Table 1. The IAGW and the CN nodes communicate with each other by a ZigBee-based mesh network. A monitoring camera communicates with the IAGW and two types of user service clients (consisting of a local client and a remote hand-held client) through Wi-Fi wireless technology.

The IAGW starts up after connecting to PC using RJ-45 cable, and its working parameters are configured by a web browser, as shown in Figure 10, and after its configuration is complete, it will reboot automatically in response to the parameter configuration. The connection configuration graphic user interface (GUI) of the IAGW is shown in Figure 10(a). In the platform selection suboption, the IAGW chooses to connect to the HM2M P/F. In the basic info suboption, it configures the IP address, port number, and transmission protocol of the HNASC P/F. In the registration mode suboption, it inputs the IAGW serial number and the base, up and down passwords. As shown in Figure 10(b), the communication parameters between the mainboard of the IAGW and the ZigBee SN are implemented according to the ZigBee configuration options.

Figure 11 shows the local monitoring client of the home network system. The GUI functions include data acquisition and management, graphic displays, person-machine dialogue, and real-time and historical database storage. User can control every device in the home network conveniently by using this service client. Three standard monitoring scenes for the home network system, including away monitoring, disarming mode, and a stop alarm, are set for choosing. User can conveniently select the working mode of the system. Once an alarm occurs, it will automatically occur in the PC client and locate the alarm event in the event map GUI. The hand-held remote client can receive the alarm SMS notification; it also has remote access to the home camera, making it convenient for the user to confirm the alarm.

User can remotely check the home environment parameters in real-time and access live video through the hand-held MPs. The GUI running on the user MPs consists of 5 modules, including warning information, node management, real-time data, service instruction, and system configuration. As shown in Figure 12, (a) is the indoor temperature monitoring chart and (b) is the monitoring video of the proposed testbed. The former uses different colors to distinguish the temperature alarm interval, which makes it convenient for user to understand whether it exceeds a set threshold. The latter uses the Wi-Fi network attached to the user’s MPs to acquire real-time monitoring video and ensure home safety.

4.2. Demonstration Experiment

Some tests are carried out to evaluate the stability of our IAGW based HNA system. The IAQ node in the proposed testbed senses the home environment in real time; the temperature, humidity, and CO2 data are collected and sent to the HNASC P/F through the IAGW at intervals of 5 seconds. The tests last for 24 hours, and the data are stored and visualized at the HNASC P/F in real time. The sample results of the home environmental monitoring experiments are shown in Figure 13. At 17:10 and 4:10, the large curve fluctuations are caused by blowing air to an IAQ node, and the room temperature, humidity, and CO2 changes during one day are displayed in these figures.

Figure 14 plots node-to-node spacing versus confidence level for situations where there is no directional antenna and no line-of-sight present. The testing method is carried out by continuously broadcasting the control data and receiving the successfully returned signal via the ZigBee network. It is certain that when a link is set up inside a building, it will exhibit a shorter range than that suggested by the free-space guidelines, even when a line-of-sight is present. In cluttered environments, the range reduction can be very significant. In fact, radio waves will propagate through brick walls, concrete floors, and plasterboard partitions, among other materials, but a loss will be incurred (as compared with free-space propagation).

The IAGW supports both ZigBee and Wi-Fi 2.4 GHz band wireless standards. In our proposed HNA system, the demand for ZigBee-based data transmission is much larger than that for Wi-Fi communication. The influence of Wi-Fi-based video transmission on ZigBee wireless communication is shown in Figure 15. When the home network system only uses ZigBee wireless data transmission, the system packet loss rate is about 0.4%; when the user starts the remote video monitoring task, the system packet loss rate reaches about 7.6%. Hence, in the HNA system, the user needs to balance video access with system data packet loss. The optimal working mode of the HNA system is to minimize the number of video access services unless an alarm occurs. This can improve system reliability effectively.

Based on the HM2M P/F, the remote data interaction between the IAGW and the USN layer can be monitored in real time. Figure 16 indicates the periodically monitoring results of packet loss in a live cellular network, which helps to evaluate the wireless communication quality and emergency response. In poor wireless network condition, the failed transmitted test data of the USN layer will be cached in the IAGW integrated storage and will be submitted to the HNASC in the next data transmission process with the normal network link working stage.

5. Conclusions

A smart gateway architecture for improving the efficiency of home network applications is proposed in this paper. The gateway has stack architecture and provides on-board standard internal and external interfaces which make wireless communication module integration convenient. Among the gateway and various home sensor nodes, as well as between the gateway and the service layer, the gateway realizes the interface standard. Therefore, it can easily realize the standardization of the home network system. The hardware and business management logic separation of the gateway improve the scalability of the system. The working mode and parameter configuration of the gateway can be set through a web browser. After the completion of the configuration, the system will directly enter the work mode properly, which can reduce the development workload of new home network applications. Experimental results show that the proposed gateway successfully realizes home network applications using little infrastructure, and it provides a faster and more flexible approach for building and deploying home automation networks.

Conflict of Interests

The authors declared that they have no conflict of interests regarding this work.

Acknowledgments

This work is partially supported by National Major Project (Grant no. 2010ZX03006-006), National 863 Program (Grant no. 2014AA01A702), National Natural Science Foundation Project of China (Grant nos. 61272379 and 61325018), Jiangsu Provincial Key Technology R&D Program (Grant no. BE2012165), and the Ministry of Education Science and Technology Innovation Engineering Major Cultivation Project of China (Grant no. 107053). The authors would like to thank Ke-fa Wang and Kai-jian Yin for help with the experiments.