Abstract

A low-cost hybrid wireless sensor network (WSN) that utilizes the 917 MHz band Wireless Smart Utility Network (Wi-SUN) and a 447 MHz band narrow bandwidth communication network is implemented for electric metering and room temperature, humidity, and CO2 gas measurements. A mesh network connection that is commonly utilized for the Internet of Things (IoT) is used for the Wi-SUN under the Contiki OS, and a star connection is used for the narrow bandwidth network. Both a duty-cycling receiver algorithm and a digitally controlled temperature-compensated crystal oscillator algorithm for frequency reference are implemented at the physical layer of the receiver to accomplish low-power and low-cost wireless sensor node design. A two-level temperature-compensation approach, in which first a fixed third-order curve and then a sample-based first-order curve are applied, is proposed using a conventional AT-cut quartz crystal resonator. The developed WSN is installed in a home and provides reliable data collection with low construction complexity and power consumption.

1. Introduction

Indoor temperatures are traditionally controlled using thermostats and their corresponding actuators or valves, as shown in Figure 1(a). In order to sense the room temperatures of everyday living spaces efficiently, wireless sensors utilizing the industrial, scientific, and medical (ISM) 2.4 GHz radio band with wireless link distances that are usually restricted within a single room, as shown in Figure 1(b), have recently been developed.

It is essential to monitor the indoor air quality of residential and commercial apartment complex areas efficiently based on measured room temperatures, humidity levels, CO2 gas amounts, and other factors to control the indoor environmental conditions properly. A particular monitoring system usually depends on the existing building automation system (BAS), as shown in Figure 2, as well as on the data collected by the numerous sensors in the building and stored in a BAS server. The exploitation of wireless sensor network (WSN) technology can provide further efficiency and flexibility in data collection approaches [1, 2]. Energy usage data, such as those collected from electric metering in the advanced metering infrastructure (AMI), can also be collected efficiently through collaboration with environment data collection. Furthermore, a WSN can deliver energy information to the in-home display (IHD) system efficiently [3]. The sensor node, which is considered in this paper, can deliver electrical energy usage information and measure temperature and humidity values. The proposed WSN can transfer and collect both energy and environment data.

For mass deployment in residential spaces or office rooms, both the construction cost and the complexity of a WSN should be minimized while still maintaining reliable wireless link margins [4, 5]. Based on an Internet of Things (IoT) technique using IPv6, we can construct a WSN. However, instead of implementing the IoT WSN for all sensors, including the end nodes, which could result in a high cost, partially adopting the IoT WSN can reduce the implementation cost and decrease the power consumption. In order to build a low-cost IoT-based WSN, a hybrid WSN that exploits both high and low data-rate bands is developed [6]. In the hybrid WSN, the high-rate wireless link controls a mesh network in order to collect and transmit data to a server based on the IoT, and the low-rate wireless link collects data directly through a star-connected narrow bandwidth (NB) communication channel at low data rates in order to guarantee long-lasting wireless links [7]. The Korean regulations for NB radio stipulate an 8.5 kHz bandwidth with 12.5 kHz channel spacing, while the high-rate wireless link can have a much broader bandwidth.

In this paper, a low-cost hybrid WSN system utilizing the 917 MHz and 447 MHz radio bands is developed and implemented for energy and environmental monitoring [8]. The RFID/USN, or Wi-SUN (IEEE802.15.4 g), 917 MHz radio band with 200 kHz channel spacing is used to achieve a more stable RF link margin than the one that the 2.4 GHz-ISM band can achieve. In apartment and home environments, transmitted RF signals can reach other rooms due to diffraction of the signals. Hence, a lower frequency of 917 MHz is advantageous to a 2.4 GHz frequency for a high data-rate network [7, 9]. In a low data-rate network, the use of NB radios utilizing the 447 MHz band can significantly reduce the number of gateways. In order to achieve both low-power and low-cost goals, a duty-cycling algorithm [10] is developed at the physical layer of the receiver. Also, a digitally controlled temperature-compensated crystal oscillator (DCTCXO) [11] in which a low-cost microcontroller unit (MCU) controls the oscillation frequency by utilizing several functions of the RF integrated circuit (RFIC) is developed.

This paper is organized as follows. In Section 2, the architecture of the proposed low-cost hybrid WSN is described. In Section 3, an implementation of the network in residential indoor environment monitoring is introduced. In Section 4, a low-cost implementation of an RF radio component containing a DCTCXO is discussed. The paper is concluded in the final section.

2. The Low-Cost Hybrid Wireless Sensor Network

In this section, a low-cost implementation of the hybrid WSN for indoor environment monitoring is introduced.

The IoT technique, which utilizes Wi-Fi or Wi-SUN, can be employed to gather the indoor temperature data for temperature control. The distance ranges for most commonly used Wi-Fi (IEEE802.11) are 20–70 meters and 100–250 meters for indoor and outdoor environments, respectively. Hence, each house should have an individual IoT gateway, as shown in Figure 3. The sub-1 GHz Wi-SUN band can also implement IoT-based sensors, and each gateway can collect more data from several houses than it can in the Wi-Fi case because of the narrower receiver bandwidth and better diffraction properties. The wider collection capability of Wi-SUN can reduce the implementation cost when compared to that of the Wi-Fi case. However, a much lower implementation cost is required for practical residential environment monitoring.

As illustrated in Figure 2, a 447 MHz band NB radio can be used in a customized network to gather sensed data. In this case, a simple gateway can collect the data from numerous sensors in several houses similarly to the way it can in a Wi-SUN implementation, as shown in Figure 4. However, because the customized network is simpler than the network used in the Wi-SUN case, the installation cost of the WSN, which is based on the use of NB radios in a customized network, is significantly lower than the costs of both the Wi-Fi and Wi-SUN installations. The simple gateway in Figure 4 can be connected to Ethernet through a Wi-Fi interface in order to transmit the collected data to a data server.

If a small number of sensors are scattered over a wide area (e.g., over a whole building), then the LoRa modulation technology is an appropriate candidate for NB radio because of its long-range capability and its low data rate of 18 bps operating at a 7.8 kHz receiver bandwidth, as shown in Figure 4. However, assuming that the number of sensors is large, collecting all of the data from a single gateway under the very low data rate of LoRa technology requires a considerably long time. In order to alleviate the low data-rate problem occurring in NB radios while achieving a long wireless distance, a hybrid WSN system [6], as illustrated in Figure 5, is employed in this study. To collect the sensed data efficiently, the hybrid WSN includes both a low data-rate network based on a customized star connection and a high data-rate network based on a standard mesh connection. The low data-rate network is constructed using NB radios to ensure that the RF link has a long range because it is generally believed to minimize transmission power and protocol while achieving a very low implementation cost. On the other hand, the high data-rate network collects sensed data from the sensors corresponding to the low data-rate star connection, gathering them through the high data-rate mesh connection, to send them to a server. The power-consumption constraint is not as significant for the sensor nodes in the high data-rate network as it is for those in a low data-rate one.

3. Implementation of the Hybrid Wireless Sensor Network

In this section, an implementation of the hybrid WSN in indoor environment monitoring is introduced. In the implemented network, the low data-rate network transmits sensed data periodically through the NB radios under a nonslotted ALOHA protocol. On the other hand, the high data-rate network operates through radios with relatively wider bandwidths under a constrained application protocol (CoAP) using the Contiki OS.

Figure 5 shows an overview of the implemented hybrid WSN system in which three types of components are used: simple wireless sensors, CoAP wireless sensors, and a CoAP gateway. Simple wireless sensors can measure room temperature and humidity without consuming much power and can transmit the sensed data to the corresponding collector, the CoAP wireless sensor, through an NB air link utilizing the 447 MHz band. This process corresponds to that of the low data-rate star connection in the hybrid WSN. A mesh network utilizing a 917 MHz band RF link under the routing protocol for low-power and lossy networks (RPL) as well as the low-power IPv6 network (6LowPAN) protocol using the Contiki OS is constructed among the CoAP wireless sensors. The CoAP wireless sensors (CoAP server) can measure the amount of present CO2 gas as well as the local temperature and humidity. The CoAP gateway (CoAP client), which is an Ethernet-based mesh network gateway, transmits collected data to the BAS server through Ethernet under the CoAP RESTful application-layer protocol.

In order to manufacture the hybrid WSN system efficiently, an integrated wireless sensor module (IWSM) is developed, as shown in Figure 6. The IWSM contains an RF radio module, which is composed of a low-cost MCU (TI, MSP430G2553), an RFIC (Silicon Labs, Si4463) with a frequency reference, and a temperature and humidity sensor. The option of adding a CO2 gas sensor is available. The CO2 sensor, which is based on the metal-oxide-semiconductor (MOS) technology (IAQ-CORE), is employed for low-power consumption with a small size instead of the conventional nondispersive infrared (NDIR) type sensors. The NDIR-based CO2 sensor can usually provide accurate measurements of the CO2 gas amount. However, the sensor size is relatively big and requires high powers with a long standby time. On the other hand, the MOS-based CO2 sensor can efficiently measure the CO2 gas amount in an indirect method with low-power consumption. The low-cost MCU has a flash memory of 16 kB and a RAM of 512 B but does not have any hardware multiplier. In the standby and active modes, the MCU consumes currents of 0.5 μA and 330 μA, respectively, at an operating voltage of 3.0 V. An NB radio for use in an industrial temperature range from −40°C to 85°C requires a temperature-compensated crystal oscillator (TCXO) component with a frequency error of ±2 ppm to ensure communication. Even though the present study only requires sensing indoor temperatures in commercial temperature range of 0°C–70°C, the industrial specification is applied to the NB radio design. Operated at a data rate of 2.4 kbps with an 8.5 kHz receiver bandwidth and a modulation index of 0.5 based on GFSK modulation, the receiver sensitivity of the proposed IWSM design is −118 dBm with a bit error rate less than 0.1% and a transmission power of 10 dBm. The typical accuracies of temperature and humidity sensors are ±0.3°C and ±2% RH, respectively.

As shown in Figure 7(a), the simple wireless sensor is composed of an IWSM without a CO2 sensor and is powered by two “AA” batteries for ease of installation and maintenance in residential areas. Hence, both its power consumption and implementation cost should be very low as mentioned in the properties of the low-cost hybrid WSN. A lithium iron disulfide (Li-FeS2) battery can be used to sense outdoor temperatures as low as −40°C. The sensors in each room of several houses can transmit measured data to the corresponding CoAP wireless sensors via star connections at the same low data rates as those of 447 MHz band NB communications.

The CoAP wireless sensor, which is based on a Cortex-M3 processor, collects measured data from simple wireless sensors through the 447 MHz band RF module of the IWSM. Then, it shares the data with other CoAP wireless sensors and with the CoAP gateway via a mesh wireless network utilizing the IPv6 network protocol under both the Contiki OS [12] and CoAP through the 917 MHz band RF module, as shown in Figure 7(b). The CoAP sensor uses AC power and can measure the amount of CO2 gas present. The CoAP gateway contains a Cortex-A8 platform (Beaglebone Black) to communicate through Ethernet with the BAS server under the Linux OS, as shown in Figure 8. The gateway also forms a mesh network with the CoAP wireless sensors under the 917 MHz band. For a network with ten CoAP wireless sensors and a CoAP gateway, the average transmission delay time was 13.8 ms at a transmission rate of 99.9%.

4. Low-Power and Low-Cost Wireless Sensors

For a low-cost implementation of the simple wireless sensor with low-power consumption, the RF module should consume little power in both receiving and transmitting modes. A superregenerative receiver can significantly reduce both the power consumption and implementation cost under a low operating voltage [13]. In this paper, the superheterodyne receiver of a commercially available RFIC is used to achieve a longer range than that of a superregenerative receiver. In order to reduce the power consumption of the RFIC, a duty-cycling algorithm is employed based on a fast direct preamble detection algorithm. The DCTCXO algorithm is then implemented.

4.1. Duty-Cycling Receiver Algorithm

In order to reduce the average power consumption of the RF module receiver, an efficient duty-cycling algorithm is employed in which the receiver is turned on and off periodically to detect the transmitted preamble signal. Here, the duty cycle is proportional to the average operating current of the receiver. The receiver checks the existence of the preamble signal over a short period of activity. If the preamble signal is detected, then the receiver remains on until the reception of the entire data packet is complete. If there is no preamble signal, the receiver is turned off immediately. In order to reduce the average operating current, a fast detection scheme is developed to decrease the preamble detection time. In the scheme, the MCU of the RF module observes each directly received signal to verify whether the signal is correct or not while decoding the packet. Without a duty-cycling algorithm, the average current is 16.7 mA, which can be reduced to 10.4 mA using a conventional duty-cycling algorithm with synchronized detection. However, the average current can be further reduced to 5.6 mA by applying the proposed duty-cycling algorithm based on fast preamble detection.

4.2. Digitally Controlled Temperature-Compensated Crystal Oscillator

In order to obtain a sufficient RF link margin, an NB RF module with a TCXO component can be employed, as shown in Figure 9(a). The operating current of the TCXO component is 1.8 mA. Therefore, using a conventional crystal resonator instead of the TCXO component can reduce the average operating currents in both the receiver and transmitter modes. Furthermore, replacing the expensive TCXO component with a conventional crystal resonator can significantly reduce the implementation cost. However, the frequency error, which depends on variations in temperature, increases the receiver bandwidth, and thus both the receiver sensitivity and selectivity are degraded, even though the automatic frequency control (AFC) function is active. For a crystal resonator with a frequency error of ±20 ppm, the receiver bandwidth is 36.6 kHz. Hence, the receiver is highly susceptible to adjacent channel transmissions under 12.5 kHz channel spacing. On the other hand, the frequency error of the TCXO shown in Figure 9(a) is ±2.0 ppm with a receiver bandwidth of 6.5 kHz. Narrowing the bandwidth increases the receiver sensitivity, and thus the transmission power can be reduced while still achieving a similar RF link margin. Consequently, the power consumption can be reduced [12, 13].

In this study, in order to achieve a similar receiver sensitivity performance to that of the TCXO with a frequency error of ±2.0 ppm, a DCTCXO algorithm is implemented based on a digital technique using the inherent functions of both the MCU and RFIC of the RF module for the AT-cut quartz crystal resonator, as shown in Figure 9(b). Digital techniques have been employed to design higher-precision TCXO than that which analog techniques are able to achieve. Buroker and Frerking [11] and Mroch and Hykes [14] used the available memory, the digital-to-analog converters (DACs), and the varactor diodes to compensate the crystal frequencies with both coarse analog and fine digital techniques with respect to temperature. Azcondo et al. [15] proposed microcomputer temperature compensation of a crystal oscillator by utilizing both the dual mode operation and the varactor diodes. The capacitor banks were also used to trim the crystal frequency [16, 17]. The purpose of employing the digital technique, which is introduced to the proposed DCTCXO, is to achieve the same performance as that of the analog TCXO while minimizing the production procedure by not adding any components.

A block diagram of the frequency control portion of the designed DCTCXO is illustrated in Figure 10. Instead of using the DACs and the varactor diodes, the crystal oscillation frequency can be easily controlled by the load capacitor bank, which can be selected by the MCU. From an externally connected frequency counter, the channel frequency is tuned to a temperature of 25°C by adjusting the RFIC load capacitors to provide a coarse resolution of 400 Hz/div (<1 ppm trimmable). The phase locked loop (PLL) divider register values are then calculated from the measured temperatures with a fine resolution of 15 Hz/div to compensate the crystal frequency for temperature. Here, the crystal’s temperature can be measured by the temperature sensor of either the MCU or the RFIC. The accuracy of the temperature sensors operating within the temperature range from −40°C to 85°C is usually as low as ±2°C. Furthermore, because of the heat that emanates from the RFIC when it operates in either receiver or transmitter mode, measurement of the crystal’s temperature results in transient responses with biases [17]. Hence, the measured temperatures should be compensated for according to the mode in which the RF is operating.

The proposed DCTCXO algorithm is now introduced. For the channel frequency , the relative frequency change of the AT-cut quartz crystal resonator can be represented by a third-order curve, where the frequency deviation at the inflection temperature is zero, as follows:where the numerator is the frequency change. In (1), the parameters , , and are constants that depend on the physical properties of the crystal unit, including the angle of its cut, ratios of its dimensions, and order of its overtone. The inflection temperature of the AT-cut crystal is approximately equal to 25°C. If we can obtain the parameters for a set of crystal resonators, then we can compensate the crystal frequency for temperature by using the temperature curve in (1). However, the parameters of the crystal resonators can vary during manufacturing due to nonuniform cut angles, and these parameters are determined by taking samples. Hence, the accuracy of temperature compensation performed by using a single compensation curve with fixed parameters can exhibit errors that are quite large. Therefore, a simple technique for measuring the nonuniformity of a crystal resonator sample is necessary to conduct temperature compensation more accurately. Let denote the cut-angle difference between the intended angle and the zero-temperature coefficient-reference angle , measured in degrees. For the AT-cut crystal resonator, Bechmann [18] found a change rate of for the first parameter with respect to the cut-angle change . In contrast, and had relatively lower change rates of and , respectively. Hence, the cut-angle change dominates the value of but not the values of and . In other words, various crystal resonator samples with different values of can have approximate third-order curves of (1) in which the values of vary, while and do not change significantly. Therefore, the difference between the two third-order curves of (1) can be approximated by a first-order curve. After applying temperature compensation using a fixed third-order curve of (1), the relative change of the resultant frequency can be given as a first-order curve that is equal to zero at the inflection temperature 25°C, aswhere the constant is defined as and is the first parameter of the crystal resonator sample to be temperature compensated. In (2), the numerator is the resultant frequency change. By measuring the parameter in (2), the third-order compensated frequency curve can be compensated once again to achieve an even more accurate frequency reference. In the proposed DCTCXO, the calculation of , which depends on the crystal resonator sample, is automatically performed using the frequency-offset measurement ability of the RFIC’s AFC block. As shown in Figure 11, a reference-frequency RF signal originating from a high-precision RF signal generator enters the RF module, and , the frequency offset of the crystal resonator sample at an ambient temperature of , which is different for 25°C, is calculated by the AFC. The parameter can then be obtained from the frequency-offset register of the AFC. The proposed DCTCXO algorithm can be summarized as follows.

4.2.1. DCTCXO Algorithm

First, conduct third-order temperature compensation using a fixed third-order curve of (1). Second, conduct first-order temperature compensation using the first-order curve of (2), which is obtained from the crystal resonator sample to be temperature compensated.

A more detailed description of the algorithm and practical experimental observations will be introduced in the results section.

5. Experimental Results

In this section, an experiment performed on the proposed DCTCXO is introduced first. Then, a low-cost hybrid WSN, constructed with a low-cost RF module and implemented in a home, is introduced.

5.1. Proposed DCTCXO for the Low-Cost RF Module

The relative frequency changes versus the environment temperatures of five RF module samples were obtained experimentally, as shown in Figure 9(b). AT-cut crystal resonators were used to generate the RF reference frequency of 32.0000 MHz. In Figure 12(a), the frequency errors of the five RF module samples, given in parts per million (ppm), are shown and fitted to third-order curves. Using the fitted third-order curves, the results of temperature compensation performed on the five samples are shown in Figure 12(b). The compensation reduced the maximum frequency error from ±9.3 ppm to ±2.8 ppm. As addressed in (2), the compensated curves are first-order curves whose shapes depended on the crystal resonator samples. As shown in Figure 13(a), first-order fitting was conducted on each compensated result appearing in Figure 12(b). The second iteration of temperature compensation was then performed using the first-order curve corresponding to each crystal resonator sample. The final compensated curves are shown in Figure 13(b), revealing that the maximum frequency error was reduced significantly to ±0.68 ppm.

Unfortunately, first-order fitting using all the crystal sample data, shown in Figure 13, is not practical. Hence, a simple, practical technique, in which a frequency-offset measuring technique was employed by the RFIC’s AFC block, was used to find the first-order curve of the crystal sample, as shown in Figure 11. In Figure 14, the frequencies measured using the frequency-offset register of the AFC are depicted versus the true frequency offsets. Biases existed depending on the input frequency offsets, and a first-order curve was used to describe the bias curve. Hence, in order to use the frequency measured from the frequency-offset register of the AFC at a specific ambient temperature that is higher than the inflection temperature , compensation using the inverse function of the bias curve should be applied. A curve of (2) obtained this way is then given by the parameter asThe first-order curves obtained from both the frequency-offset registers and (3) are depicted in Figure 15(a), and the compensated results are shown in Figure 15(b). The fitting increased the maximum frequency error slightly to ±1.3 ppm from that of Figure 13(a). In the experiment shown in Figure 15, the ambient temperature was °C. For a practical RF module design, it is important to measure one frequency error at a specific temperature and to conduct automatic compensation, even though the temperature-compensation performance is degraded slightly, especially at a low temperature range. The memory required to implement the proposed DCTCXO was 520 B, and the execution time of the 1 MHz-clock MCU was 3.5 ms.

The NB RF module of the 477 MHz band was tested at a bit rate of 2.4 kbps in a home environment and compared with a wider bandwidth receiver operating at the same rate. The experimental results are illustrated in Figure 16. The transmitter was located on the eighth floor, and the receiver was moved around the space to measure both the RSSI values and the packet error rates (PERs). The narrower bandwidth receiver demonstrated better packet error rates and could provide longer transmission ranges than the wider bandwidth receiver could. From the results shown in Figure 16, it is clear that the CoAP wireless sensor could cover more than five of the building’s stories.

5.2. Experiment Performed on the Hybrid WSN

The proposed hybrid WSN system was constructed in a five-story library building. Each story had one CoAP gateway, two CoAP wireless sensors, and eight simple wireless sensors to collect temperature and humidity data. The data measured in one day, depicted in Figure 17, provided meaningful information with respect to the rooms’ locations. In Figure 18, the MOS-based CO2 sensor of IWSM was compared with the conventional NDIR-based CO2 sensors in an office environment with moving people. We can notice that the MOS-based CO2 sensor can efficiently measure the CO2 gas amount change below 2000 ppm similarly to the NDIR-based sensor cases.

6. Conclusion

A low-cost hybrid wireless sensor network utilizing the 917 MHz and 447 MHz RF bands is implemented for indoor environment monitoring. A duty-cycling receiver algorithm and a digitally controlled temperature-compensation crystal oscillator (DCTCXO) are implemented to achieve low-power and low-cost wireless sensor nodes. In the proposed DCTCXO, a two-step compensation is performed, in which a fixed third-order curve is applied first and a first-order curve is applied after that, to achieve a high-precision frequency reference. The first-order compensation curve for a given crystal resonator sample is automatically obtained from the frequency-offset measurement conducted in the AFC block. By implementing both the duty-cycling algorithm and the proposed DCTCXO, the average operating current of the RF module is reduced from 16.7 mA to 4.0 mA.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

Acknowledgments

This work was supported by Korea Institute of Energy Technology Evaluation and Planning (KETEP) and by the Ministry of Trade, Industry & Energy (MOTIE) of the Republic of Korea (20151210200240 and 20141010501840).