Global Emergency System Based on WPAN and LPWAN Hybrid Networks
Abstract
:1. Introduction
2. State of the Art
3. Architecture
- 1.
- Technologies: Depending on the communication technologies chosen, the location of the devices and their topology may change.
- 2.
- System Structure: The diverse levels of the communication topology are described.
- 3.
- Hardware: Once we know the communication technology and topology, we can choose the hardware to accomplish high availability and low energy consumption.
3.1. Technologies
3.2. System Structure
3.2.1. Layer 1: WPAN Subnet of Sensor Nodes
3.2.2. Layer 2: LPWAN LoRa RAW Network in a Star Topology
- IDSERVICE (Byte 〈3: 0〉): This represents the header that identifies the service. Messages that do not have the value assigned to the network service will be discarded.
- IDNETWORK (Byte 〈5: 4〉): This identifies the network of each available system. Each set of homes connected to a Sigfox gateway sends the information with this data. It is simply informative since there could be the possibility that a gateway of another system does not work, and these systems can also transmit through another, which provides greater robustness to the system, despite creating duplication in the data.
- IDGATEWAY (Byte 〈6〉): This identifies the gateway that sends the message.
- IDNODE (Byte 〈7〉): This identifies the node that sends the message.
- CNTMSG (Byte 〈8〉): This is a message counter.
- ALARM (Byte 〈9〉): This is a flag that indicates the alarms that have occurred. 0x01: Temperature alarm; 0x02: Gas alarm; 0x04: Battery alarm; 0x08: Push button alarm.
- CHECKSUM (Byte 〈10〉): This ensures the correct transmission of the frame. As the last piece of data, the 2’s complement of the sum of all the previous values of the communication frame is transmitted. This value will be checked at the destination to ensure that the received frame is correct.
3.2.3. Layer 3: Access to the Cloud by LPWAN Sigfox
3.3. Hardware
- At the hardware level, it is necessary to find a microcontroller capable of reducing its average energy consumption to values in the order of µHours in standby mode. The first tests of the system were carried out with an Espressif microcontroller [27], the ESP32 model [28]. This microcontroller has a wide range of peripherals, such as a Bluetooth transceiver. This component is widely used, and throughout the Internet, many software resources for its programming can be found, owing to the community behind this product. The proposed solution allows for the development of both a node and a prototype LoRa gateway (see Figure 7). After the first tests of the system, we detected that its consumption levels, even in its different low consumption modes, were too high for this type of application. Therefore, we decided to use a more efficient alternative. This alternative is a microcontroller model that meets the requirements at the level of connectivity and consumption: the STM32WB55 [29] from STMicroelectronics [30]. This microcontroller has several low-power methods, improving battery life over the previous version to approximately 2300% (see Table 5). For the first tests, an evaluation board was chosen that mounts the model BME680 [31] from the manufacturer Bosch (c.f. Figure 7a,b, PCB A, from Figure 7). Figure 7 shows the prototypes developed. In Figure 7a, the designed PCBs are displayed: the BME680 measurement sensor (A), the Buzzer peripheral board for audible alarms (B), the LoRa transceiver accessory board (C), and the main board that will supervise the processing and powering of peripheral boards (D). In Figure 7b, the peripheral boards used are assembled. In Figure 7c, the devices used for the first tests of the system are shown, from purpose-built nodes/gateways to the Sigfox gateway purchased from Pycom. Figure 7d shows the node/sensor prototype based on STM32 whose consumption is much more appropriate according to the energy requirements of the system.
- At the firmware level, the system must switch between different operating modes for optimal energy efficiency. As it is a temperature-based fire detection system, it must wake up every short period of time, in this case, every 30 s, and act in the event of a detecting temperature increment. The system continuously measures the environment to detect any temperature exceeding a set threshold (e.g., 70 °C [32]). If so, the system enables the WPAN transceiver and connects to the LoRa gateway to transmit the alarm. The LoRa gateway always works in active mode as a BLE client, when the server node wants to transmit an alarm, it will be announced so that the gateway client can connect and receive the alarm information. Next, it will generate a frame that will be transmitted by LoRa to the last gateway, where it will be verified that the data are correct. Figure 8 shows an example of alarm transmission, from the node to the web client of the emergency center. Figure 8a shows how the node collects values such as temperature, humidity, or air quality, amongst others. For instance, when a combination of critical parameters reaches a threshold, an alarm occurs and must be notified. According to the generated alarm, a code associated with the type of alarm is sent together with the identifier of the node. Figure 8b shows how a connection with the advertised device is established. The gateway receives two data reported by the node: the identifier and the type of alarm. Figure 8c shows how a byte frame is received; these are the packets previously formed by the LoRa gateway associated with the emergency site. It contains all the information necessary to locate the exact location of the event. This image also shows how a check was previously made where the frame corresponds to the service and that the received data is correct on account of the checksum. Figure 8d displays an example of a client web application that can view the information collected by the system. Due to a cross-over in its databases, the information provided allows for a geographic visualization of the emergency, as well as the emergency code, allowing the emergency service to act according to the generated alarm.
4. Results
4.1. Consumption
- 1.
- The value in standby mode may be higher due to the different leakage currents or consumption of the pull-up resistors that the circuit contains (i.e., the pull-ups of the I2C communication).
- 2.
- The difference in value between the consumption at the time of reading may also be due to consumption peaks that occur when the microcontroller wakes up, which might make it necessary to carry out the measurement with higher-resolution instrumentation in order to extend the data acquisition in the temperature measurement period and to read and calculate the value after the current peak during startup.
STM32 (Standby Mode) + BME680 (Standby) | STM32 (Run1 Mode) + BME680 (Measuring Temp) | |
---|---|---|
Theorical Consumption (mA) | 0.00239 | 7.838 |
Measured Consumption (mA) | 0.0045 | 18.5 |
4.2. Coverage
4.3. Latency
4.4. Cost
- 1.
- Device Cost: Node/sensor and BLE/LoRa Gateway: Both devices can be considered the same hardware because their core is the same; however, depending on the function, this core is complemented by a peripheral. If the core is used as a sensor node, Buzzer, button, and the BME680 sensor are connected. If it is used as a gateway, only the LoRa transceiver is connected. The cost [35] of these prototypes is as follows:
- (a)
- Node/sensor: €40.56
- (b)
- Gateway: €37.41. This price includes: PCB, components, assembly, and taxes; however, this price will change if it is manufactured as a product, since the price of the components is considerably reduced if purchased in larger quantities.
- (c)
- LoRa/Sigfox Gateway: This device is composed of the following:
- i.
- Pycom Lopy4: €34.95
- ii.
- Pymark v3: €16
- iii.
- Battery: €5
- iv.
- Waterproof case: €22
The total price is: €77.95. This price includes a 1 year subscription to the Sigfox service. - 2.
- Service/proprietary infrastructure cost: Mainly two services are needed:
- (a)
- Subscription to Sigfox: €18.14 including taxes. This service is necessary to use the Sigfox network and services for one year.
- (b)
- AWS Linux server: The system needs a server with a fixed IP to receive the notifications, storage, and display of the alarms to the end user. Its cost is approximately 4€ per month (total price: €66.14 year).
5. Conclusions and Future Work
- implement LoRaWAN as a final technology as a unique and global service;
- upgrade the architecture with bidirectional communication to check system status, configuration setup, and request relevant information;
- build an energy harvesting system to increase the devices’ autonomy using renewable sources such as solar panels or wind turbines;
- integrate additional environmental measurement sensors (e.g., gas, passive infrared, ultrasound, and medical sensors).
Author Contributions
Funding
Conflicts of Interest
References
- The Fire Brigades Union. Why Emergency Response Times Matter To Firefighters And The Public. 2010. Available online: https://www.epsu.org/sites/default/files/article/files/6367-Its-about-time-LOW-RES2.pdf (accessed on 13 October 2022).
- Fortune Business Insights Global IoT Market to be Worth USD 1463.19 Billion by 2027. Available online: https://www.globenewswire.com/en/news-release/2021/04/08/2206579/0/en/Global-IoT-Market-to-be-Worth-USD-1-463-19-Billion-by-2027-at-24-9-CAGR-Demand-for-Real-time-Insights-to-Spur-Growth-says-Fortune-Business-Insights.html (accessed on 13 October 2022).
- David Maayan, G. 2020 Computing The IoT Rundown For 2020: Stats, Risks, and Solutions. Available online: https://securitytoday.com/Articles/2020/01/13/The-IoT-Rundown-for-2020.aspx (accessed on 13 October 2022).
- Beinat Sensors Fire Probes Technical Specifications. Available online: https://www.beinat.com/wp-content/uploads/2021/11/Sonde-Incendio_EN.pdf (accessed on 13 October 2022).
- System Sensor-Honeywell. 100 Series Plug In Thermal Sensors. Available online: https://prod-edam.honeywell.com/content/dam/honeywell-edam/hbt/en-us/documents/literature-and-specs/datasheets/5151_100Series_DataSheet_SPDS841.pdf (accessed on 13 October 2022).
- UniPOS Sensor FD3010. Available online: http://unipos-bg.com/en/wp-content/uploads/2015/09/FD3010_v2_print.pdf (accessed on 13 October 2022).
- MileSight IoT. EM300-TH Temperature & Humidity Sensor. Available online: https://www.milesight-iot.com/lorawan/sensor/em300-th/ (accessed on 13 October 2022).
- Ferreira, C.M.S.; Oliveira, R.A.R.; Silva, J.S. Low-Energy Smart Cities network with LoRa and Bluetooth. In Proceedings of the 7th IEEE International Conference on Mobile Cloud Computing, Services, and Engineering (MobileCloud), Newark, CA, USA, 4–9 April 2019. [Google Scholar]
- Semtech: Application Brief. Fire Detection. 2017. Available online: https://www.semtech.com/uploads/technology/LoRa/app-briefs/Semtech_HB_FireDetection_AppBrief-FINAL.pdf (accessed on 13 October 2022).
- Muheden, K.; Erdem, E.; Vançin, S. Design and Implementation of the Mobile Fire Alarm System Using Wireless Sensor Networks. In Proceedings of the 17th IEEE International Symposium on Computational Intelligence and Informatics (CINTI), Budapest, Hungary, 17–19 November 2016; pp. 000243–000246. [Google Scholar] [CrossRef]
- ADM. Security Systems. 2020. Available online: https://adt.com.es/ (accessed on 13 October 2022).
- Sector Alarm. 1995. Available online: https://www.sectoralarm.com/ (accessed on 13 October 2022).
- Prosegur. 2022. Available online: https://www.prosegur.com/ (accessed on 13 October 2022).
- Heyitech Alarms. HY-W20 WIFI/2G/3G/4G Alarm System Apartment Connect IP Camera Home Safety Alarm System For Personal Usage Kit. 2012. Available online: http://www.heyitech.com/alarm-system/alarm-system-apartment-connect-ip-camera-home.html (accessed on 13 October 2022).
- Securitas Direct. Fire Alarm. 2022. Available online: https://www.securitasdirect.es/servicios/alarma-contra-incendios (accessed on 13 October 2022).
- Securitas Direct ATN Brochure. Available online: https://www.securitasdirect.es/servicios/inhibidores-de-frecuencia (accessed on 13 October 2022).
- Zigbee CSA Alliance. Available online: https://csa-iot.org/all-solutions/zigbee/ (accessed on 13 October 2022).
- Thread Group IoT Technology Official Page. What is Thread? Available online: https://www.threadgroup.org/What-is-Thread/Thread-Benefits (accessed on 13 October 2022).
- Vodafone Services NB IoT Service Cost. Available online: https://www.vodafone.es/c/empresas/es/narrowband-iot/ (accessed on 13 October 2022).
- LoRa-MAC (Raw LoRa) LoRa-MAC (Raw LoRa). Available online: https://docs.pycom.io/tutorials/networks/lora/lora-mac/ (accessed on 13 October 2022).
- Sigfox. Connecting Your Physical World. Available online: https://www.sigfox.com/en/ (accessed on 13 October 2022).
- Mekki, K.; Bajic, E.; Chaxel, F.; Meyer, F. A Comparative Study of LPWAN Technologies for Large-Scale IoT Deployment. ICT Express 2019, 5, 1–7. Available online: https://www.sciencedirect.com/science/article/pii/S2405959517302953 (accessed on 13 October 2022). [CrossRef]
- Adelantado, F.; Vilajosana, X.; Tuset-Peiro, P.; Martinez, B.; Melià-Seguí, J.; Watteyne, T. Understanding the Limits of LoRaWAN. IEEE Commun. Mag. 2017, 55, 34–40. [Google Scholar] [CrossRef] [Green Version]
- Pycom. Lopy4. Available online: https://pycom.io/product/lopy4/ (accessed on 13 October 2022).
- Sigfox. Make Things Come Alive in a Secure Way. Available online: https://www.sigfox.com/sites/default/files/1701-SIGFOX-White_Paper_Security.pdf (accessed on 13 October 2022).
- Pycom. Electronics Design And Manufacturing Company Focused On Wireless Communications. 2020. Available online: https://pycom.io (accessed on 13 October 2022).
- Espressif. Wi-Fi & Bluetooth MCUs and AIoT Solutions. 2022. Available online: https://www.espressif.com/ (accessed on 13 October 2022).
- Espressif. ESP32: A Feature-Rich Mcu With Integrated Wi-Fi and Bluetooth Connectivity for a Wide-Range of Applications. 2022. Available online: https://www.espressif.com/en/products/socs/esp32 (accessed on 13 October 2022).
- STMicroelectronics. STM32WB Series-Bluetooth, Wireless Microcontrollers. Available online: https://www.st.com/en/microcontrollers-microprocessors/stm32wb-series.html (accessed on 13 October 2022).
- STMicroelectronics. STMicroelectronics. Available online: https://www.st.com/content/st_com/en.html (accessed on 13 October 2022).
- Bosch Sensortec GmbH. BME680: Gas Sensor Measuring Relative Humidity, Barometric Pressure, Ambient Temperature and Gas (VOC). 2021. Available online: https://www.bosch-sensortec.com/products/environmental-sensors/gas-sensors/bme680/ (accessed on 13 October 2022).
- da Ponte, G.P., Jr. Heat Detectors. Risk Management in the Oil and Gas Industry. 2021 Heat Detectors. Available online: https://www.sciencedirect.com/topics/engineering/heat-detector (accessed on 13 October 2022).
- AlarmGrid FAQ At What Temperature Do Heat Alarms Trigger? Available online: https://www.alarmgrid.com/faq/at-what-temperature-do-heat-alarms-trigger (accessed on 13 October 2022).
- Saavedra, E.; Mascaraque, L.; Calderon, G.; del Campo, G.; Santamaria, A. A Universal Testbed for IoT Wireless Technologies: Abstracting Latency, Error Rate and Stability from the IoT Protocol and Hardware Platform. Sensors 2022, 22, 4159. [Google Scholar] [CrossRef] [PubMed]
- Perez, E.; Monzo, C.; Parada, R. Diseño e Implementación de un Sistema de Emergencias doméstico Global Basado en Redes de Sensores Inalámbricas. Available online: http://hdl.handle.net/10609/131146 (accessed on 13 October 2022).
N: Node G: Gateway | Ferreira et al. [8] | Semtech [9] | Securitas Direct [15] | Muheden et al. [10] | Heyitech Alarms [14] | Hybrid Network (Our Proposal) |
---|---|---|---|---|---|---|
Telecommunications technology | N: WPAN(BLE) G: LPWAN(LoRa) | LPWAN: LoRa | LPWAN: NB-IoT, Sigfox, LoRa | N: WLAN (Wi-Fi) G: WAN (Fiber) | N: WPAN/ RF owner G: Cellular 2G/3G/4G | N: WPAN(BLE) G1: LoRa G2: Sigfox |
Transmission rate | N: 1, 2, 3 Mbps G <50 kbps | <50 kbps | LoRa <50 kbps Sigfox <1 kbps/day NB-IoT <200 kbps | N: 802.11ac <866 Mbps G: 802.11b <1 Gbps | N: <1 Gbps G <10 Mbps | N: 1, 2, 3 Mbps G1 <50 kbps G2 <1 kbps/day |
Range | N: 10–100 m G: 5–20 km | 5–15 km | N: 10–100 m G: 5–20 km | N: 10–100 m G: 10–40 km | N: 10–100 m G: 5–15 km | N: 10–100 m G: 10–40 km |
Energy Consumption | N: very low G: very low | Very Low | Very Low | N: Medium G: High | N: Low-Medium G: High | N: very low G1: very low G2: very low |
Cost D: Device S: Service I: Infraestructure | D: Very low S: None I: High | D: Low S: None I: Very High | D: Low S: Sigfox €18.14 gate/year LoRa: None NB-IoT Very High I: Sigfox: None LoRa: High NB-IoT: Low | D: Low S: €30/month/gate I: none | D:Medium S: €50 /month/gate I: €250 + €30 /month/gate | D: Very low S: €18.14/n houses gate/year I: None |
Feature | Value |
---|---|
Working Frequency | 2.4 GHz |
Coverage | 100–200 m (open) 10–20 m (with obstacles) |
Transmission rate | Up to 1 Mbps (Bluetooth 4.2) 2 Mbps (Bluetooth 5.0) |
Network topology | Point-to-point, star or mesh |
Feature | Description |
---|---|
Communication | Bidirectional through APIs |
Working frequency | RC1: 868 MHz–878.6 MHz RC2: 902 MHz–904 MHz RC3: 922 MHz–923.5 MHz RC4: 920 MHz–922 MHz RC5: 922 MHz–923.5 MHz RC6: 865 MHz–867 MHz |
Coverage | 10 km (Urban)–40 km (rural) |
Payload | 12 bytes (140 messages per day) |
Transmission rate | 100 bps. |
Reception rate | 600 bps. |
Channels | 400 |
Feature | Description |
---|---|
Communication | Bidirectional |
Working frequency | 433 and 868 MHz (Europe), 915 MHz (America) |
Coverage | 5 km (Urban)–20 km (rural) |
Transmission rate | 27 kbps |
Topology | Mesh Star of stars. |
Device types | Class A: Oriented to transmission exclusively. Class B: Oriented to transmissions in time windows Class C: Devices oriented to continuous listening to receive information. It does not have any consumption limitation. |
Channels | 10 (Europe), 80 (USA) and 9 (China) |
Operating Mode | ESP32 | STM32 |
---|---|---|
Active (Rx/Tx) | 80–120 mA | 4.5–5.2 mA (2300%) |
Active (Without transc) | 10–20 mA | 2–3 mA (660%) |
Sleep (ESP32)/Stop (STM32) | 0.8 mA | 2.1 µA (40,000%) |
Deep Sleep (ESP32)/Standby (STM32) | 0.15 mA | 600 nA (25,000%) |
Shutdown | 2.5 µA | 13 nA (19,200%) |
STM32 Node/Sensor | ESP32 Node/Sensor | IoT Milesight EM300th Wireless [7] | Traditional Detector 1 (Unipos FD3010) [6] | Traditional Detector 2 (Honeywell Edam 100) [5] | Traditional Detector 3 (Beinat) [4] | |
---|---|---|---|---|---|---|
Average consumption (mA) | 0.0196 | 2.97 | 0.091 * | 0.040 | 0.08 | 9.77 (Idle) |
Power consumption (mW) | 0.0588 | 9.801 | 0.32 * | 0.9 | 1.92 | 117 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Pérez, E.; Parada, R.; Monzo, C. Global Emergency System Based on WPAN and LPWAN Hybrid Networks. Sensors 2022, 22, 7921. https://doi.org/10.3390/s22207921
Pérez E, Parada R, Monzo C. Global Emergency System Based on WPAN and LPWAN Hybrid Networks. Sensors. 2022; 22(20):7921. https://doi.org/10.3390/s22207921
Chicago/Turabian StylePérez, Eduardo, Raúl Parada, and Carlos Monzo. 2022. "Global Emergency System Based on WPAN and LPWAN Hybrid Networks" Sensors 22, no. 20: 7921. https://doi.org/10.3390/s22207921
APA StylePérez, E., Parada, R., & Monzo, C. (2022). Global Emergency System Based on WPAN and LPWAN Hybrid Networks. Sensors, 22(20), 7921. https://doi.org/10.3390/s22207921