1. Introduction
Based on short-range communication protocols, wireless sensor networks (WSNs) have a communication range of 100 meters. If a greater range is required, multi-hop modes can be used to extend coverage. However, more routes must be deployed as distance increases, making the system costly and difficult to maintain. Monitoring systems built on WSNs can use other methods to extend their communication distance; for example [
1,
2,
3,
4,
5], used a gateway with multiple communication nodes. Sha et al. designed a multi-mode gateway that included wireless local area networks (WLAN) and 3G/4G mobile data networks [
3], enabling healthcare professionals and the family of patients in a hospital setting to connect to the hospital monitoring system via different communication networks.
Although the gateway design above provides users with greater flexibility, the remote monitoring functions fail if WLAN and mobile data networks are unstable. Military warehouses, for example, are usually located in regional areas with poor telecommunication infrastructure, making it extremely problematic to effectively build a WSN monitoring system. Wired communication systems commonly use twisted pair cabling for dial-up networking, but the problem with this approach is that the quality of the connection is often unstable. Although wireless networks have greater signal transmission range and can enable better network access in remote areas, signal quality is determined by distance to the mobile phone tower. In areas with poor coverage, therefore, it is essential that remote monitoring systems are designed with back-up capabilities for communication networks.
Ju et al. and Maleki et al. set out the communication architecture for a monitoring system that combines both WSN and wired networks [
6,
7]. The advantage of this hybrid approach is that, should the wired network fail, the system can immediately switch to communicating via WSN. The disadvantage is that such systems are extremely complex and costly to build, as well as difficult to maintain. In the hybrid monitoring mechanism developed by Wei et al. [
8], when the wired network shows errors or irregularities, these data are conveyed back to the server via pre-allocated routes and used to enhance the transmission rate of the wireless network.
According to the results of [
6,
7], it is obvious that the monitoring and control system must have communication backup capabilities. However, the solution to the system backup mentioned in the above articles is achieved by using switching of wired and wireless communication networks. The monitored area is in a location where signal coverage is poor, and therefore we must consider other communication methods (such as mobile communication) to prevent system failure.
The National Communications Commission (NCC) of Taiwan provides a Mobile Communications Service Information System [
9], which can be used to search for the signal coverage and reception quality of 3G/4G mobile phone networks in any area (see
Figure 1).
In the figure, green indicates areas with high reception quality. This means that mobile phone users in these areas can place calls and transmit data over a stable and consistent connection. The yellow regions have standard reception quality. Phone calls are uninterrupted and audio is clear, but the data connection may occasionally be unstable. The orange zones have acceptable reception quality, meaning that data connections may be partially unstable. Finally, the white or transparent zones have poor reception, meaning it is difficult to successfully make calls and audio is unclear. Most of the mountainous areas in Taiwan are not covered by mobile communications, and the system does not mark additional colors, so the mountains present the dark green of the original satellite imagery. If WSNs were built in the yellow and orange zones, these would be considered communication blind spots. We would be limited to using GSM/SMS [
10,
11,
12] communication for remote monitoring.
Using GSM/SMS signals, which can more easily cover multiple monitoring areas, we developed an anti-blind spot gateway, which we deployed in monitoring systems for military warehouses in remote locations. We gathered data on each ZigBee-controlled device.
When wireless networks are operating as expected, this gateway uses the Ethernet model to communicate with the remote monitoring server. In the event of network failure, a back-up mechanism is immediately activated, and the system automatically switches to communicating via GSM/SMS. This offers a solution to the current problem of being unable to implement monitoring systems in military warehouses located in communication blind spots.
The Taiwan National Army has many warehouses in remote areas and lacks the infrastructure for network data communication. This type of warehouse requires a communication backup mechanism to ensure that monitoring data can be transmitted to the monitoring center. Therefore, the design of the gateway in the WSN system is very important. How the gateway communicates with the wireless sensor network and how to automatically switch backup communication is the main problem in this study.
6. Performance Testing and Discussion
The objective of this test was to compare the delays experienced when transmitting sensor data using the Ethernet and GSM/SMS. The test process was as follows: (1) User commands server to collect sensor data. (2) Server issues data transmission command. (3) Data are transmitted via Ethernet/GSM to the gateway. (4) Gateway system receives the command. (5) WSN is ordered to collect sensor data. (6) Gateway receives data (20 Bytes) from WSN. (7) Data are transmitted via Ethernet/GSM to the server. (8) Server receives and displays data. We conducted testing using the above procedure 10 times. There was a 2.7-s delay when transmitting and receiving data through the Ethernet. However, the average delay time for SMS was 22 s. The test results for communication delay time over Ethernet or SMS are shown in
Figure 19.
After reviewing the literature on the operating principles of GSM/SMS, we identified three possible reasons for why we experience longer delays when transmitting data via SMS: (1) Signal quality for mobile phones is determined by the distance from the area being monitored to the nearest mobile phone tower. Also, different cellular antennas may provide different signal and reception quality. (2) Text messages take longer to process. The message from the sender is received and stored by the telecommunications provider in an SMS Management Center (SMC), which must then locate the user details of the desired recipient and finally forward the message. (3) We measured the round-trip transmission delays between Monitoring Server and Gateway Server, so the SMS for longer delays (22 s), but the Ethernet communicating utilized a local area network (LAN), having a short time delay (2.7 s).
In this paper, the abnormal proportion of Ethernet and SMS transmission decreases to zero, thereby using a reliable data collection scheme in consideration of efficiency and management [
15].
7. Conclusions
In this study, we designed an embedded gateway with wired/wireless communication capabilities for military warehouse monitoring systems. In addition to extending the communication range of the ZigBee monitoring system, this gateway can also solve the problem of military facilities being located in communication blind spots or lacking cable networks. We tested the ability of the system to monitor the temperature and humidity of a military warehouse in order to verify the effectiveness of the embedded gateway. The results showed that the gateway is capable of automatically switching to communicating via GSM/SMS when the Ethernet connection fails. Data takes longer to transmit when using GSM/SMS, compared to the Ethernet. However, in a scenario where speed of transmission is not a priority and the Ethernet connection has failed, the GSM/SMS functionality ensures that the system remains operational.
Finally, an embedded gateway with communication extension and backup capabilities for ZigBee-based monitoring and control systems was constructed to monitor the temperature, humidity, and pressure of the weapons in the storage tank at the National Chung-Shan Institute of Science & Technology to validate the feasibility and practicality of the proposed architecture. The results of this research will be a useful reference for developing long-distance or large-scale ZigBee monitoring systems in the future.