Full text
Universidade do Minho Escola de Engenharia Filipa Alexandra Esteves de Araújo Edge of the Network Device for a Low Power Wide Area Network January 2019 UMinho | 2019 Filipa Araújo Edge of the Network Device for a Low Power Wide Area Network
Filipa Alexandra Esteves de Araújo Edge of the Network Device for a Low Power Wide Area Network Dissertação de Mestrado Engenharia Eletrónica Industrial e Computadores Trabalho efetuado sob a orientação do Professor Doutor Jorge Cabral Universidade do Minho Escola de Engenharia January 2019
DIREITOS DE AUTOR E CONDIÇÕES DE UTILIZAÇÃO DO TRABALHO POR TERCEIROS Este é um trabalho académico que pode ser utilizado por terceiros desde que respeitadas as regras e boas práticas internacionalmente aceites, no que concerne aos direitos de autor e direitos conexos. Assim, o presente trabalho pode ser utilizado nos termos previstos na licença abaixo indicada. Caso o utilizador necessite de permissão para poder fazer um uso do trabalho em condições não previstas no licenciamento indicado, deverá contactar o autor, através do RepositóriUM da Universidade do Minho. Licena concedida aos utilizadores deste trabalho ii
Acknowledgements I would like to thank Professor Jorge Cabral for giving me the opportunity of developing this project, and for all the guidance throughout the development of this work. Thank you to everyone from the ESRG lab in IBS, for the tremendous support given. To my family, for always being there for me every step of the way. To my mom, for all the incentive. A huge thanks to my dad, for always pushing me to pursue my dreams, and being my role model. To my stepmother, for always being contagiously cheerful. To my sisters, for showing me that the the most unexpected situations can turn out to be the best we have in life. To my nephew João, who has been such a joy in my life! A huge thanks to my friends Filipa, Cunhal, Zé, Pedro and Neto, for all the good times, the advice they have given me, and for being awesome! To Sérgio and Miguel, for being my partners in this last year, and inviting me to face new challenges. To Álvaro, for all the friendship and showing me that small people can achieve great things. To João, for keeping me on track when I felt like quitting. A big thank you to Joseph, for all the patience and care given through these years. You are able to get the best of me, even when I don’t believe in myself. Thank you for always being there for me, and being my greatest supporter. To Bobby, Shelah and Jordan, for being my second family and never ceasing to amaze me with all their kindness and love. Thank you to everyone who has crossed paths with me and contributed to making me the person I am today! iii
STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. iv
Resumo A proliferação da conexão à Internet , especialmente em pequenos dispositivos (sistemas embebidos), permitiu o desenvolvimento do conceito Internet of Things (IoT), devido à possibilidade de ligação destes a micro serviços web ( Cloud ), tendo um papel crucial no desenrolar da Indústria 4.0 [1]. Tendo como principal impulsionador o avanço tecnológico das redes sem fios, foi possível ligar estes dispositivos à Internet , tornando-os acessíveis em qualquer lado. Assim, surgiram as Wireless Sensor Networks (WSNs), através da utilização de redes de dispositivos independentes (nós ou edge devices ), equipados com sensores e atuadores, possibilitando a recolha de informação sobre o meio onde estão colocados [2]. A crescente necessidade de cobrir áreas cada vez maiores para este tipo de redes, associada a requisitos mais exigentes de consumo energético reduzido nos dispositivos, abriu caminho para o aparecimento das tecnologias Low Power Wide Area (LPWA). Este tipo de tecnologias consegue alcances superiores em relação às redes sem fios convencionais ( Wi-Fi , Bluetooth , entre outros), permitindo maior autonomia dos nós sensores [3], tornando-se assim ideais para a sua utilização em áreas alargadas. As recentes tragédias de incêndios que ocorreram em Portugal, em particular nos anos de 2017 e 2018, tiveram grande impacto tanto a nível económico como social. A deteção e alerta precoce de incêndios são fatores cruciais para evitar a sua propagação [4]. Utilizando as tecnologias LPWA em contexto florestal poderá criar-se um caso de estudo para a ocorrência de incêndios em florestas. Através da utilização de edge devices , poderá ser possível recolher dados provenientes deste meio que indiquem a existência de um incêndio a deflagrar, e enviar alertas para as unidades de combate a incêndios. Nesta dissertação foi desenvolvida a arquitetura dos nós sensores, a serem integrados numa Low Power Wide Area Network (LPWAN). Utilizando tecnologia LoRa para obter um longo alcance entre os nós e o coordenador da rede, poderá desta forma ser possível os nós sensores recolherem e enviarem dados para as camadas superiores. Foi possível, com a utilização de sensores nos nós, recolher informações sobre o ambiente e perceber o potencial da tecnologia LoRa para o envio destes dados para as camadas superiores. Palavras-chave: Low Power Wide Area , Redes de sensores, Nó sensor, LoRa. v
Abstract The widespread of Internet connection, particularly on small devices (embedded systems), has allowed the development of the Internet of Things (IoT) concept, due to the connection of these devices to web micro services (Cloud), and has had a major role in Industry 4.0 [1]. Through the advances of wireless technologies, these devices were able to have an Internet connection, becoming available everywhere. The creation of Wireless Sensor Networks (WSNs) has enabled the use of networks composed of independent devices (nodes or edge devices), equipped with sensors and actuators, and made it possible to collect information about the environment where they are deployed [2]. The growing necessity of having a wider coverage area for Wireless Sensor Networks, along with the demanding low power requirements on devices has enabled Low Power Wide Area (LPWA) technologies to arise. These technologies are able to reach further coverage than conventional wireless technologies (such as Bluetooth, Wi-Fi, ZigBee etc), as well as raising the energy autonomy of the devices [3], which makes LPWA technologies ideal for wider areas. The recent tragedies of wildfires in Portugal, in both 2017 and 2018, had great impact on economic and social levels. Early detection and alerts about wildfires are crucial to prevent them from spreading [4]. Therefore, by using LPWA technologies in forests, a case study can be made for the wildfire occurrences in forests. Through the use of independent devices equipped with sensors, data can be collected from the environment that might detect that a fire is starting, and then send alerts to fire fighting units. In this Master’s thesis it was developed the architecture of sensor nodes, to be integrated in a Low Power Wide Area Network (LPWAN). By using the LoRa technology to achieve a long range between the sensor nodes and the network coordinator, it is possible for edge devices to collect and send data to upper levels of the network. It was possible to gather information about the environment and further understand LoRa’s potential for sending all the data to the upper levels of the network. Keywords: Low Power Wide Area, Wireless Sensor Networks, Edge Device, LoRa. vii
List of Tables 2.1 Data Rate and respective maximum MAC payload size (in bytes) for EU863-870 band..................................... 28 2.2 Data Rate and respective data transmission configuration for EU863-870 band. 30 2.3 Types of semiconductor and respective behaviour to different gases. . . . . . 38 2.4 IP rating against solid objects. . . . . . . . . . . . . . . . . . . . . . . . . 44 2.5 IP rating against liquids. . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 2.6 UL94 Flammability Standard . . . . . . . . . . . . . . . . . . . . . . . . 46 5.1 Nodes’ distance to the Gateway and line of sight for the first set of tests. . . . 86 5.2 Nodes and Gateway geolocation for the first set of tests. . . . . . . . . . . . 86 5.3 Received Rate Percentage for each node for the first set of tests. . . . . . . . 87 5.4 Nodes’ distance to the Gateway and line of sight for the second set of tests. . . 88 5.5 Nodes and Gateway geolocation for the second set of tests. . . . . . . . . . 89 5.6 Received Rate Percentage for each node for the second set of tests. . . . . . 89 xv
List of Listings 5.1 Test message sent from a node as seen in the Application Server . . . . . . . 84 xvii
List of equations 2.1 Nitric oxide formation equation. . . . . . . . . . . . . . . . . . . . . . . . 33 2.2 Nitrogen dioxide formation equation. . . . . . . . . . . . . . . . . . . . . . 33 2.3 Carbon Monoxide formation equation. . . . . . . . . . . . . . . . . . . . . 34 2.4 Carbon dioxide formation equation. . . . . . . . . . . . . . . . . . . . . . 34 2.5 Beer-Lambert equation. . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 xix
Acronyms List ABP Activation By Personalization. ADC Analog to Digital Converter. ADR Adaptive Data Rate. AES Advanced Encryption Standard. API Application Programming Interface. BPSK Binary Phase-Shifting Key. CPS Cyber Physical System. CRC Cyclic Redundancy Check. EUI Entexded Unique Identifier. HAL Hardware Abstraction Layer. IDE Integrated Development Environment. IoT Internet Of Things. IP Ingress Protection. LoRa Long Range. LPWA Low Power Wide Area. LPWAN Low Power Wide Area Network. LTE Long Term Evolution. xxi
MCU Microcontroller Unit. MIC Message Integrity Check. NDIR Non-Dispersive Infrared. NTC Negative Temperature Coefficient. OTAA Over-The-Air Activation. PTC Positive Temperature Coefficient. RPMA Random Phase Multiple Access. RTD Resistance Temperature Detector. RTOS Real Time Operating System. SF Spreading Factor. SWD Serial Wire Debug. TTN The Things Network. TxPower Transmission Power. WSN Wireless Sensor Network. xxii
Chapter 1 Introduction The wide spread of Internet connection occurred not only on conventional computers, but also on small devices. In this context, the Internet Of Things (IoT) came to life [5], which is based on small devices being connected between themselves and the Internet. Therefore, any small device equipped with sensors can collect and share information, as well as interact with the environment. When combined, they are part of smart networks that allow innovative and flexible systems, whose purpose is to monitor, and manage their own devices automatically. These networks allow better human-machine and machine-to-machine interactions, as more devices are connected. The IoT domain has appeared in a technological revolution that shapes the future of computation and communication, and its development is fully dependent on other innovations, such as sensors and wireless technologies. The IoT system architecture defines how the edge devices interact with each other and the upper levels. As it is not a specific concept, it is hard to find a convention for the network architecture [6]. However, in order to be functional, an IoT system must have sensors, a network, communication, and computational technologies. Along with these, there may also be a number of services and a web application, which can serve as a user interface. The groups of devices are heterogeneous when it comes to their own resources, lifetime, and communication technologies. This allows IoT systems to be based on a Service-Oriented Architecture (SOA), which is a collection of services that communicate with each other. This type of model makes it possible to insert and interact with the systems that contain heterogeneous devices, making the integration with new technologies easier. As a result, it is possible to rely on Cloud services to give the abstraction level that would otherwise require a large set of computational power. These Cloud services provide processing functionalities, storage capacity, and the integration of services, thus allowing the devices that collect data to have lower processing power 1
2 Chapter 1. Introduction requirements and be more low power oriented. This makes their deployment easier, while also reducing maintenance needs due to extended battery life. It is due to these integrations of technologies, Cloud, and services, that the IoT has grown as one of the major fields of research and development, with a vast amount of devices being deployed. 1.1 Contextualization All of these new concepts have brought many developments related to connections between devices and have introduced Industry 4.0, which is heavily based on the IoT concept. Wireless technologies have allowed such connections to evolve, hence being the major contributor for such evolution. This allows small devices to be connected to the Internet, which in turn opens a range of new possibilities for applications. Nowadays, these small devices are becoming more common, allowing data to be collected from wherever they are deployed. They are used for the purposes of data collection and further decision making based on the information gathered. Not only do these small systems allow an easy placement in any spot, but also they can be low cost due to the small number of components that they have. Their connectivity to upper levels, such as cloud and web services, makes the gathering of information easily accessible. These groups of devices that gather data on the environment and proceed to send it for further data collection and processing are called Wireless Sensor Networks. The necessity of longer signal coverage to connect small devices in these systems has brought to light the Low Power Wide Area Networks (LPWANs). This has allowed the development of networks with a long range and low power consumption for devices, making it useful for monitoring systems in remote areas. Rather than only monitoring small or enclosed areas, it is now possible to take into consideration a larger set of applications, such as addressing environmental issues. With higher range for networks, some deployments can occur in places like forests, where connectivity and energy are limited or even non existent. Forests are undeniably imperative for air quality due to their crucial role in the transformation of carbon dioxide into oxygen. Furthermore, they also harbor several species and contain a huge amount of biological systems.
Chapter 2. State of the Art 9 processors should have low processing capabilities, as they will not perform complex functionalities, and should be oriented for low power operation. Typically, the chosen processing unit should take into account the available budget, and therefore this choice should be carefully considered as to fulfill the system’s specifications while not being too expensive. The transceiver unit is what makes the interface with the upper levels by using a radio module. Generally, this unit includes an antenna, which can either be internal (PCB assembled) or external. Figure 2.2: Typical WSN structure. A typical WSN structure, as shown in Figure 2.2, is composed of a central station (base station), also known as the coordinator, which deals with all the data that comes from the sensor nodes. These coordinators might have a connection to the Internet or a web service, which allows the information to be stored and reach the user [2]. There are several ways which the nodes and the coordinator can be connected, which basically define the network topology. 2.1.2 Network Topologies Networks can follow different patterns of information flow. As so, there have been distinct topologies for networks that can be used by WSNs.
10 Chapter 2. State of the Art 2.1.2.1 Star Topology In this topology, all nodes are connected to a central device (base station or gateway), as seen in figure 2.3. Information flows between each node and the central station back and forth. The nodes do not communicate with eachother. Although this type of network is very simple, it is required that the nodes be in reach of the central device. Figure 2.3: Star Topology. The lighter colour represents the nodes, while the darker colour represents the central station. 2.1.2.2 Mesh Topology This topology is based on the nodes communicating with other nodes that are in range. This can be used to send information to any other node, or the coordinator. Mesh network topology can be seen in figure 2.4. One of this topology’s main advantage is that, if the node that it is intended to communicate with is not in reach, the message can flow through other nodes until it reaches its destination. This means that not only will it have redundancy, but also it will be more scalable, as introducing nodes should be fairly easy. However, such a vast number of communications makes this topology more prone to higher energy consumption on the nodes. 2.1.2.3 Other Topologies There are other network topologies that can be used, such as the tree topology, or other more complex topologies, or even mixes of several different ones.
Chapter 2. State of the Art 11 Figure 2.4: Mesh Topology. The lighter colour represents the nodes, while the darker colour represents the central station. 2.2 Cyber-Physical Systems Cyber Physical Systems (CPSs) are systems that contain physical and computational components [15]. Through a combination of both of these components, it is possible to collect data and control physical variables through the use of sensors, while having small devices with processing capabilities interconnected in a network. By monitoring and collecting information on the physical variables and providing processing power to devices, it is possible to monitor physical processes and further actuate, inducing changes in the environment where the CPS is deployed. CPS development has progressed due to the proliferation of sensors and actuators, along with the development of low cost computational devices with low power consumption, and the development of wireless communication technologies[16]. Taking into account the division on Cyber Physical Systems into the two components, it is important to mention that the physical part of the system is controlled by the computational part, which, apart from the processing functions, also has connectivity. It is precisely due to having connectivity that CPSs are different from conventional embedded systems, as they are more complex, configurable, and scalable [17]. This allows them to be connected to each other, creating a system that is composed of several sub-systems, in which each device is a sub-system itself. The connection between devices can be done by either physical or wireless connections [18], and the flux of information between all systems must be managed, while also allowing more efficient actuation responses. The interactions between devices bring a higher level of complexity and also raise the amount of possible vulnerabilities of the system. It is then crucial to take into account security factors
12 Chapter 2. State of the Art in order to minimize the number of susceptibilities. Such security requisites to keep in mind are related to confidentiality, integrity, availability and authenticity. As a whole, Cyber Physical Systems enhance Wireless Sensor Networks, adding features and complexity, as well as actuation properties on the environment. 2.3 Low Power Wide Area Networks Systems made for wider areas imply the use of longer range communication technologies. Taking this into consideration, and also keeping in mind the low power requisites for IoT systems, the development of LPWANs was crucial for these systems. These networks are not restricted to specific implementations or protocols, and is comprised of both proprietary and open-source networks [19]. Their main focus, as the name itself suggests, are battery operated devices, in order to make the most out of their lifetime, in long lengths of area. By combining the use of sub-GHz frequencies and low data rates, LPWANs can cover extensive areas, which are estimated to be between 5 and 50 km, allowing low consumption devices to connect to each other. Conventional wireless networks (such as Wi-Fi, Bluetooth, ZigBee etc) have shorter ranges, as well as a higher power consumption for machine-to-machine communications [3], when in comparison to LPWANs. Although cellular networks have a vast coverage, they have constraints for power consumption, as they they do not allow the energy efficiency needed for devices to keep running for several months, or even years. These types of networks also have waveforms that are more optimized for voice, messaging and high speed data, thus raising the complexity and costs of setting up a monitoring network. Therefore, they are not adequate for systems that require low complexity and low power consumption. Figure 2.5 illustrates the differences mentioned above between cellular networks, ZigBee, and LPWA technologies. Some of these properties are related to each other, such as the number of base stations needed being directly related to the range and coverage. This means that if the range, and therefore geographical coverage, is smaller, then more base stations will be required to cover as much area as another technology with longer range would. Also, the bigger the bandwidth, the higher the power consumption will be.
Chapter 2. State of the Art 13 Figure 2.5: Comparison between LPWANs and other wireless technologies (Source: [20]) As so, for applications with sensor networks that require a long range and that use battery operated devices, LPWANs become a desirable solution, even though with limitations imposed by low data transmission rates. This means that LPWANs should only be considered for applications that don’t require high data transmission rates and that aren’t affected by delays. Non-critical systems don’t have high reliability requirements, such as sensors [21], and usually have several devices connected to the network, which have low amounts of data, making energy efficiency a priority rather than performance. Hence, an assumption can be made that LPWANs are ideal for non-critical IoT systems. In short, LPWANs enable many non-existing IoT solutions, while also making them easier and cheaper, although introducing a natural trade-off between cost and security. There are several types of LPWA technologies. From these, it is worth to mention SIGFOX, LoRa, RPMA, and NB-IoT, which will be further explained in detail. 2.3.1 SIGFOX SIGFOX is a proprietary LPWA wireless network that uses Ultra Narrow Band modulation. By using this type of modulation rather than wider signal bands, SIGFOX can make a better use of channels, thus giving the network more capacity, while reducing interferences. SIGFOX operates in the unlicensed open frequencies of 902 MHz in the United States of America, and 868 MHz in Europe.
14 Chapter 2. State of the Art For radio transmission, Binary Phase-Shifting Key (BPSK) is used [22], which is usually used in technologies such as RFID or Bluetooth. This process consists of a phase modulation system that uses two phases for data signalling, by turning 0’s and 1’s in a binary message into two distinct phase states (0º or 180º). SIGFOX is composed by several base stations installed in different locations [23]. As a collaborative network, it allows the addition of a new base station without having to reconfigure the whole network. This is due to the base stations not detecting one another, but rather just further extend the network. However, configuration and maintenance are restricted to the company, which means that it can’t be remotely managed. This brings some restrictions to SIGFOX, as it started being based on exclusivity contracts for its usage with communications companies. This implies that, for a certain area, there cannot be two different SIGFOX networks. Consequentially, it means that some sort of subscription will have to be made to a network operator that controls a certain area. Uplink message size is small, with only 12 bytes. Along with the protocol payload, the total data size to transport is 26 bytes. Although it is a reduced size, and not much information can be sent, it reduces energy consumption for transmissions. Per day, only a maximum of 140 uplink transmissions can be made [24], and a the wireless throughput can be up to 100 bits per second. However, SIGFOX does not have confirmation for messages, due to restrictions for networks that operate in unlicensed frequencies. As a consequence, downlink messages are restricted to 4 messages per day, with 8 bytes each. Therefore, it is likely that some messages won’t reach the base stations, which cannot be detected by the nodes. In order to raise the probability of messages reaching their destination, redundancy is used, and thus a certain message is sent several times through different channels. As an example, one message can be transmitted 3 times on 3 different channels. This will have an impact on energy consumption, as sending more frequently will imply as many times more energy consumption as the number of times a message is transmitted. 2.3.2 LoRa Long Range (LoRa) is a proprietary technology developed by Semtech Corporation that implements a physical layer for a Low Power Wide Area Network. It is highly oriented for long range and low
Chapter 2. State of the Art 15 power consumption, while also providing secure bidirectional data transmission and the use of encryption methods [25]. LoRa uses a patented modulation technique that is based on chirp spread spectrum (CSS), and operates on the Sub-1 GHz band. The 2.4 GHz band is the conventional frequency used for wireless signals, as it is regulated worldwide. However, LoRa avoids this band due to it being more prone to interferences and its poor propagation. By using its own modulation, LoRa is able to provide long range and a reliable signal, while taking into account energy metrics. These networks also allow thousands of devices (nodes) to connect to them. Unlike SIGFOX, LoRa allows a network to be deployed by anyone [22], thus being less restricted. Therefore, in order to deploy a network, it is only required that the chosen hardware and gateways follow the LoRa specifications. This way, it is possible to created public or private LoRa flexible networks. However, up to this date, the only company that produces and commercializes radio transceivers for LoRa is Semtech. This results in a market controlled by this company, and the lack of other silicon manufacturers for this technology prevents competitive prices for radio modules. On top of the Long Range (LoRa) modulation, protocols for MAC layer can be implemented to define interoperability between the physical layer and the rest of the network. 2.3.2.1 LoRaWAN Over the physical setup, LoRa Alliance has developed a protocol that implements the MAC layer and specifies the communications and the network architecture [26]. Operating in the frequency bands of 433 MHz and 868 MHz in Europe, 915 MHz in North America, and 430 MHz in Asia, this specification defines the network deployment as a star-of-stars topology. This means that, for this protocol, the system is composed by end nodes, gateways, and a central system. The gateways are used to transmit the messages between the nodes and a central server (Network Server) through a backhaul [27]. The Network Server is then responsible for interfacing the data coming the LoRaWAN network, and pass it to the Application Server, which is developed by the user. Usually, this is done through an already available Network Server, such as The Things Network (TTN) [28]. The LoRaWAN architecture is represented in Figure 2.6, and
16 Chapter 2. State of the Art its topology can be defined as a star-of-stars due to the existence of several gateways that are linked to many devices. None of devices is tied to a specific gateway, thus the data sent can be received by several gateways, as the area of their coverage could overlap. Each gateway will forward the messages to the cloud server. Figure 2.6: LoRaWAN network topology. (Source: [29]) While nodes (represented on the left side of figure 2.6) connect to the gateways through the use of LoRa technology, the gateways connect to the server with Internet Protocol (IP) connections, whether by Wi-Fi, Ethernet, cellular data, or satellite. The server needs to filter duplicated messages sent by different gateways, by checking their consistency and, when needed, sending acknowledge messages (ACKs). By getting duplicated messages, it is possible to make a selection of the ones that present higher quality, but also enables the capability to triangulate the node’s position, in a method similar to GPS. This can be done through calculations using the time elapsed from when the messages reached the different gateways. In order to keep the network from being compromised, LoRaWAN implements some security measures to prevent tampering. By relying on AES-128 encryption for messages, all the way from nodes to the application server. Each device is also assigned a unique IEEE EUI identifier. Communication between edge devices and gateways is made using different channels and different data rates [30]. The selection of the transmission rate, which can go from 0.3 kbps up to 50 kbps [31], depends on the distance and the message length. To maximize energy efficiency,
Chapter 2. State of the Art 17 LoRaWAN uses a method called Adaptive Data Rate (ADR), which controls the data that is sent by adjusting the transmission rates according to the distance from the gateway in order to get the most out of the device’s location [32]. As these networks are meant to support thousands of devices with distinct functions and requirements, LoRaWAN specifies a division into three different classes of devices [33]. This division, along with LoRaWAN’s place in the layers division, can be seen in Figure 2.7, where the bottom represents the physical layers with LoRa’s modulation and regional ISM frequency bands, and the upper level are represented on the upper parts of the figure, respectively. LoRaWAN, as mentioned before, is implemented in the MAC layer, and therefore that’s where the classes are inserted. The three classes are shown in the figure, and a brief description of each is given below. Figure 2.7: LoRa and LoRaWAN architecture. (Adapted from [33]) All the three classes have trade-offs relative to downlink, power consumption, and latency. Class A (class for all) is the basis of the LoRaWAN protocol, and must be supported by all devices. It is meant for battery operated devices (typically with sensors or actuators with no latency constraints), and thus being the lowest power class. It allows bidirectional transmissions. For each transmission initiated by the node, there are two predefined received windows, in order to assure that a reply can be received from the server. This class is aimed at systems with
18 Chapter 2. State of the Art devices that have energy efficiency requirements, and therefore the communications are short and initiated by the devices themselves. Any transmission from the server to the devices can only happen after the device started the communication, and within the set receive windows. Class B (beaconing class) is aimed at devices with low latency, but have the need to have extra reception periods. It brings the addition of fixed time and server initiated downlink slots. This class is a low-power option, however its consumption will be higher than in class A, especially depending on the latency of the application. Class B devices will open several receive windows at scheduled times. In order to know when to receive, the devices will get a time synchronized beacon from the gateway, so the server knows when the end node is listening. Class C (continuously listening class) is meant for devices that are constantly receiving data. They will consume the most, but will offer the lowest latency. They have almost continuous receive windows that will only close when the device is transmitting. Devices in this class implement the same method of two receive windows as class A devices, however, they will not close the second receive window until they have to send data. It is up to the application server to manage the class C devices, based on the contract passed during the join procedure. These classes allow LoRaWAN to be more flexible and scalable when it comes to the possibility of different devices to be able to connect to the network, thus providing a wider range of applications that can be developed using this technology. 2.3.2.2 Symphony Link Symphony Link is a proprietary protocol developed by Link-Labs to operate over the LoRa physical layer, similarly to LoRaWAN. This protocol ensures that every message has a response, or acknowledgement, in both uplink and downlink messages, thus providing insight on whether the message reached the destination or not. One of its strongest advantages is the ability to update devices’ firmware over the air, which helps reducing the need to have manned operations on each device to update it. Symphony Link also works on both licensed and unlicensed frequency bands, which enables the removal of duty cycle limits. Like LoRaWAN, it implements Adaptive Data Rate techniques. However, since it is a proprietary protocol, there is dependency on the company when it comes to gateways and the usage itself, which have to be acquired through Link Labs, thus making it less flexible.
Chapter 2. State of the Art 25 Header The header, which is optional depending whether the message is in explicit or implicit modes, provides the payload size, in bytes, the code rate, and an optional payload Cyclic Redundancy Check (CRC) extension. This header has its own CRC, in order to avoid errors. Data Payload The payload, also known as PHYPayload, contains the data, and will be further explained in the following sections. 2.4.2.1 Join Procedure The session is initiated by the device, which starts by activating itself in the network through a join procedure. This is done by exchanging messages with the server. As previously mentioned, this process only occurs for Over-The-Air Activation. The first message sent by the node is a join-request . This message is not encrypted and contains a MAC message which is composed of the App EUI, the DevEUI, and a DevNonce (as seen in figure 2.8), which is a random value. The DevNonce values, which are kept in the network server, serves as a way to avoid attacks that try to infiltrate the network by mimicking the join process of a node, as join requests with repeated values of this parameter are ignored. Figure 2.8: Join-request message format. (Adapted from: [39]) The join-request is followed by a join-accept message, which provides the device with the necessary values for it to derive the NwkSKey and AppSKey, as well as its DevAddr. The sessions keys are not explicitly given for security purposes, as they are critical for a device’s authentication within the network. Response is only given if the node is accepted in the network, otherwise, no response is given. 2.4.2.2 Data Messages The default message structure for uplink (explicit mode), represented in figure 2.9) is composed of a Preamble, a Physical Header (PHDR) and its header CRC (PHDR_CRC), and the Physical
26 Chapter 2. State of the Art Payload (PHYPayload) and its own CRC (Payload CRC). The PHYPayload will be explained in the following section. Both CRC fields are intended to assure the integrity of the data. The physical header and CRCs are done by the radio transceiver. Figure 2.9: Explicit mode uplink message format. (Adapted from: [39]) For messages with known payload, coding rate, and CRC contents or size, the header can be omitted, in order to reduce the message size and thus the transmission time. The parameters specified in the header should be manually configured on both sides of the radio transmission, as they are not included in the message. This is called the implicit mode. This way, the uplink data message will only be composed of the Preamble, the PHYPayload, and its respective CRC, as seen in figure 2.10. Figure 2.10: Implicit mode uplink message format. (Adapted from: [39]) The downlink messages sent from the server to the nodes are similar to the uplink messages, with the exception that they don’t have Payload CRC. This is due to the duty-cycles restrictions, so it is intended to keep the messages as short as possible. The join-accept messages are treated as a normal downlink message. Figure 2.11: Downlink message format. (Adapted from: [39]) 2.4.2.3 Physical Payload (PHYPayload) The Physical Payload (PHYPayload) is composed of a MAC header (MHDR) with the message type and the version of the format that is used for encoding, a MAC Payload, and the Message Integrity Check (MIC). This structure can be seen in figure 2.12. The message type (MType) defines whether the message is a join-request , join-accept , or confirmed or unconfirmed uplink or downlink. There are a total of six different message types.
Chapter 2. State of the Art 27 Figure 2.12: Physical Payload structure. (Adapted from: [39]) While an unconfirmed message will not have any reply, a confirmed message must always be acknowledged by the receiver, which will be further explained in detail in the following sections. 2.4.2.4 MAC Payload The MAC Payload is what contains the data, and it is composed of a frame header (FHDR), an optional port field (FPort), and an optional frame payload field (FRMPayload), which is the application payload. This structure can be seen in figure 2.13. The frame payload is encrypted using one of the sessions keys. The key used for encryption is dependent on the FPort field: if this value is 0, the NwkSKey is used to encrypt the message, if FPort has any other value up to 255, the AppSKey is used instead. After the frame payload being encrypted, the Message Integrity Check (MIC) is then calculated. The MIC is calculated for the MAC header and all the MAC Payload fields combined. Figure 2.13: MAC Payload structure. (Adapted from: [39]) The FPort field defines whether the payload has MAC commands only, or if it has data. This field is absent if the payload is empty. The frame header contains the device address (DevAddr) previously mentioned, the frame control (FCtrl), a frame counter (FCnt), and the frame options (FOpts). Its structure can be seen in figure 2.14. Figure 2.14: Frame header structure. (Adapted from: [39]) The FOpts field is used to store MAC commands. The frame counter (FCnt) is divided into two frame counters that keep track of the data frames, both for uplink and downlink transmissions. These counters are kept in synchronization between
28 Chapter 2. State of the Art both the end device and the Network Server, and can be used to know how many data frames are lost. This value is reset after a join procedure. The FCtrl field contains important the fields relative to the messages that are being sent, and has two variants: one for the uplink transmissions (shown in figure 2.15), and another for the downlink transmissions (shown in figure 2.16). The common fields for both FCtrl variants are the the Adaptive Data Rate bitsClass (ADR and ADRACKReq), which allows enabling or disabling this feature, the message acknowledge bit (ACK), which is set when the receiver is responding to a confirmed data message, and the frame options field (FOptsLen). FOptsLen contains information about the size of the FOpts field, which is included in the frame header as mentioned previously. The RFU bit is reserved for class B devices, where it should be set if a device is issuing uplinks while operating as a class B device. Figure 2.15: Uplink Frame Control structure. (Adapted from: [39]) On the downlink messages, there is a FPending bit, which indicates whether there are more messages to be sent, and if so the node should be able to receive more data by opening more receive windows. Figure 2.16: Downlink Frame Control structure. (Adapted from: [39]) The MACPayload’s maximum length, which can be seen in table 2.1, is region specific and dependent on the data rate settings. Its size is also given by the existence or absence of the FOpt field. For this dissertation, it will be considered the worst case scenario (smallest payload). Table 2.1: Data Rate and respective maximum MAC payload size (in bytes) for EU863- 870 band. Data Rate Payload 051 151 Continues on the following page
Chapter 2. State of the Art 29 Table 2.1 – Continuation of the previous page Data Rate Payload 251 3115 4222 5222 6222 7222 2.4.3 Message Transmission There are some parameters that can influence the transmission of LoRa messages, such as the Bandwidth (BW), the Spreading Factor (SF), and the Data Rate (DR). Each of these parameters can be configured, although some of them are either related or dependent on others. The signal Bandwidth is the difference between the lowest frequency of the signal, and the highest frequency of the signal. The higher the available Bandwidth, the higher the amount of data that can be transmitted (bit rate). Figure 2.17: Parameters that affect LoRa message transmission. (Adapted from: [40]) LoRa data is basically sent in small pieces, that are called chirps . These chirps encode the LoRa data. The Spreading Factor indicates how fast or slow those chirps are, which means, how much data per second is sent. This means that the time on air of the messages can vary with
30 Chapter 2. State of the Art the Spreading Factor configuration, as seen in figure 2.17. The values of the SF parameter can range from 7 (SF7), to 12 (SF12). The slower data is sent, the further it can get, but also the more time on air and energy consumption it will require. This makes the network more scalable, as more data is sent when the nodes are at a closer distance to the gateways. Therefore, the SF parameter is directly related to the DR, as it defines the bit rate of the messages. This direct relationship can be seen in table 2.2, which shows how LoRaWAN related the Data Rate and the Spreading Factor values, and the respective bit rate. Table 2.2: Data Rate and respective data transmission configuration for EU863-870 band. Data Rate Configuration Bit Rate (bit/s) 0 SF12 / 125 kHz 250 1 SF11 / 125 kHz 440 2 SF10 / 125 kHz 980 3 SF9 / 125 kHz 1760 4 SF8 / 125 kHz 3125 5 SF7 / 125 kHz 5470 6 SF7 / 250 kHz 11000 7 FSK: 50 kbps 50000 As seen in section 2.3.2.1, LoRaWAN divides devices into three different classes, each with specific functionalities and restrictions. For each application, the correct class should be chosen accordingly, taking into consideration requirements such as energy consumption, frequency of message transmission, or the need to have a response to messages. Despite all this, all devices must join the network as class A devices, switching to another class afterwards. The message transmission timings for the different LoRaWAN classes are explained below. 2.4.3.1 Class A Class A is meant for devices with energy consumption metrics that do not require acknowledgment to all their messages or data sent from the server frequently. After a message is sent, and
Chapter 2. State of the Art 31 for messages that require confirmation, the node will have two receive windows, in which any message sent from the server can be taken. The device opens two receive windows at specified times after an uplink transmission, as seen in figure 2.18. In this figure, the darker colour represents the data that can be sent from the node, and the lighter colour represents the data that can be sent from the server. If the server does not respond in either of these receive windows, the server’s next opportunity to send data to the node will be after the next uplink transmission from the device. The server can respond either in the first receive window, or in the second receive window, but should not use both windows. Figure 2.18: Class A message transmission. (Adapted from: [39]) The first receive window (RX1) has a duration of approximately 20 microseconds, and occurs after the node’s message ends. It has the same frequency channel as the uplink message, and the data rate is similar to the last sent message, although these parameters are region specific. The second receive window’s (RX2) data rate and frequency are configurable, and are also region specific. To detect if a message is received by the node, its LoRa module only needs to detect a message Preamble during either of the receive windows. Another uplink message cannot be issued until either a message is received, or the second window has ended. 2.4.3.2 Class B The beaconing class is based on the principle of specific intervals for receiving messages from the server. Apart from the usual receive windows that are already implemented with class A, the node will also have a certain fixed time frame for data reception. In order to do so, the node needs to synchronize itself with the gateway, so it knows when data can be sent. This is done by the issuing of a beacon, which is sent periodically as a means to synchronize with the end devices. The time in between the issue of two beacon signals is called the Beacon Period. This enables
32 Chapter 2. State of the Art opening an extra receive window called ping slot , and it is what can be used to have downlinks sent from the server. Figure 2.19 represents an uplink message transmission issued by the end device, while in between a beacon period. It shows the beacon (B) issuing, followed by the Ping Slot, and the respective uplink data message with its receive windows (RX1 and RX2). Figure 2.19: Class B message transmission. (Adapted from: [39]) When the synchronization with the server is lost, the node will go back to being a class A device, until it is able to switch back to being a class B device. The management between swapping classes is done in the software application level of the end device. If the node changes location and a change is detected on the beacon reception, an uplink should be sent in order to adjust the downlink path to the device. 2.4.3.3 Class C Class C is aimed for devices that do not have power restrictions. Their purpose is to always have an open receive window, so data can be sent at any time. In order to do this, the RX2 window is always kept available, except when an uplink is being issued, or the RX1 window is open (which occurs after a transmission, just like in class A). Figure 2.20: Class C message transmission. (Adapted from: [39]) The opening of the second receive window occurs with the timings associated with a transmission, but it will stay open until the next uplink is issued.
Chapter 2. State of the Art 33 2.5 Gas Emission from Wildfires Wildfire occurrences have a great impact not only on the landscape, but also on the air quality. Since combustion implies chemical reactions, then consequentially the results from those combustions are gases that can be either pollutants or even toxic. As mentioned in section 1.1, pollutants such as carbon dioxide, carbon monoxide, methane and nitrous oxides are related to wildfires. Therefore, if these components are monitored and abnormal quantities are detected in the air, then it is very likely that there is a fire occurring. As so, a few of these components were selected and some details about them will be given, as to give an in-depth perception of their characteristics, and how they are formed from fire outbursts. 2.5.1 Nitrogen Dioxide Nitrogen dioxide (NO2) is a toxic gas. It has a very distinct smell and a reddish-brown colour. It is a pollutant gas which has a negative impact on human health, and can cause respiratory problems [41]. Its formation happens mostly due to electrical discharges from lightning storms, as well as natural processes that occur in plants, soil, or water [41]. NO2is also originated from combustions, due to their high temperatures [42]. The usage of motor vehicles is one of the biggest factors that has contributed for the emission of this gas. However, there are others, such as biomass combustion, which is a consequence of forest fires. A chemical reaction between the nitrogen atoms (N2) and nitrogen dioxide (NO2) occurs from high temperature combustions [43]. This reaction originates nitric oxide (NO), and is represented in equation 2.1. N2+O22 NO (2.1) Equation 2.1: Nitric oxide formation equation. On the other hand, nitric oxide reacts with oxygen, originating nitrogen dioxide. This chemical reaction is represented in equation 2.2. 2 NO +O22 NO2(2.2) Equation 2.2: Nitrogen dioxide formation equation.
34 Chapter 2. State of the Art The presence of nitrogen dioxide in the air, especially on forest areas, can imply the occurrence of a major wildfire with high temperatures. It exists in the air in quantities smaller than 1 ppm (parts per million). 2.5.2 Carbon Monoxide Carbon Monoxide (CO) is toxic gas that can cause hazards in human health, eventually leading to death. It is an odourless and colourless gas that results from incomplete combustions [44]. Carbon (C) atoms react with oxygen (O2), which are combined from the burning process, and the leading into Carbon Monoxide molecules. This reaction is represented in equation 2.3. 2 C +O22 CO (2.3) Equation 2.3: Carbon Monoxide formation equation. The usual concentration of carbon monoxide in the air is of approximately 0.2 ppm. 2.5.3 Carbon Dioxide Carbon dioxide (CO2) is an odorless and colorless gas that exists in the atmosphere. Through the photosynthesis process, plants convert carbon dioxide into oxygen [45], which is crucial for the human respiratory system. Equation 2.4 represents the chemical reaction that occurs between carbon and oxygen that originates CO2. C+O2CO2(2.4) Equation 2.4: Carbon dioxide formation equation. Carbon dioxide can be formed by the body, or by combustion. Similarly to carbon monoxide, it also results from fires. Although the equations are a bit similar, the process of its formation is the opposite, as carbon dioxide derives from combustion, whereas carbon monoxide results from incomplete combustions. The usual concentration value for CO2in the atmosphere is of approximately 400 ppm, although this value has been slowly raising over the years.
Chapter 2. State of the Art 41 2.6 Temperature sensors Nowadays, temperature sensors are used in a vast number of situations, such as refrigerator temperature control, in cars, medicine, room temperature monitoring, etc. There are several types of temperature sensors, which are: thermocouples, Resistance Temperature Detectors (RTDs), thermistors, and semiconductors. 2.6.1 Resistance Temperature Detector (RTD) An RTD sensor is based on the principle that with temperature changes, metal resistance also varies [54]. This variation can be measured and further correlated to the temperature. The linearity of its output makes measurements very accurate. RTDs are made of conducting metals, such as platinum, copper or nickel. Although the most accurate are the ones made of platinum, and therefore more commonly used, nickel or copper made RTDs are cheaper, while not as stable as the former. They are, however, the most expensive temperature sensors [55]. RTDs temperature range goes from -200 ºC to 600 ºC. 2.6.2 Thermocouples Thermocouples are simple temperature sensors that are small sized, cheap, and are easy to use. These sensors use two dissimilar metal wires that are welded together at one end, which is called a junction. Temperature changes produce a voltage difference between the two wires, causing an effect that is called the Seebeck Effect. This voltage can be measured and used to get the temperature values. Thermocouple sensors are the ones that have the widest temperature range, which can go from -200 ºC to around 1750 ºC [55]. They can make use of vast materials for different temperature ranges accordingly. However, thermocouples’ output is small, and thus requires amplification. They are also not linear. Also, due to the thermocouple wires being different metals than the copper used for circuitry, another Seebeck Effect occurs on the junctions where these metals meet. Therefore, compensation is required for this effect in these junctions, that are called cold junctions.
42 Chapter 2. State of the Art 2.6.3 Thermistors Thermistors are temperature sensors that, similarly to RTDs, experience resistance changes with temperature variations [54]. They are usually made of ceramic semiconductor materials which use metal oxides, giving them fast responses to temperature changes. There are two types of thermistors: Negative Temperature Coefficient (NTC), and Positive Temperature Coefficient (PTC). PTC thermistors’ resistance value raises with temperature increasing, whereas NTC thermistors work the opposite way, which means that its resistance decreases with temperature increases. These sensors are non-linear, although very precise. Their temperature range goes from -50 ºC to 250 ºC [55]. 2.6.4 Semiconductors Semiconductor temperature sensors are on integrated circuits and mainly based on temperature measurements using a transistor. By using its current and temperature characteristics, it is possible to convert the base-emitter voltage into temperature values. These sensors have linear outputs, and they are cheap and small sized, but they have the narrowest temperature range, which goes from -70 ºC to 150 ºC [55]. The output values can either be analog or digital. 2.7 Humidity Sensors Humidity is the amount of water vapor present in the atmosphere. It can be measured in either relative or absolute humidity [56]. Absolute humidity is the water content in the air. It is independent on the temperature and is given in grams of water vapor per cubic meter of air (g/m3). Relative humidity also measures the amount of water vapor, however, it is relative to the actual temperature, which means it is the ratio of water vapor in the air compared to the saturated level on the same environment conditions. It is measured in a percentage (RH or %RH). Relative humidity is the most often used unit, and sensors that measure it are often more accurate and cheaper.
Chapter 2. State of the Art 43 In forest scenarios, high temperatures and low humidity levels can mean a high risk for fire outbursts and fast propagation, and therefore both of these variables should be related and taken into account. As so, only relative humidity sensors will be taken into account and studied. 2.7.1 Capacitive Sensors Capacitive humidity sensors use a condenser that is humidity-dependent to measure water vapor levels, and producing almost linear outputs. They have a thin film composed of a polymer or metal oxide, which is put between two conductive electrodes [57]. The dielectric (thin film) constant varies with the relative humidity in the environment. In order to keep it from being contaminated, they are coated in either glass or ceramic. These sensors are accurate, and are functional at high temperatures. 2.7.2 Resistive Sensors Resistive humidity sensors are composed of two metal electrodes that absorb water vapor, which results in electrical conductivity variations [57]. To avoid condensation and contamination, the sensors are coated. The impedance changes are related to humidity in an inverse exponential, thus needing linearization by either analog or digital methods. These sensors are temperature dependent, and are also prone to errors when exposed to condensation, thus being sensitive to contaminants. However, they are cheap, and small. 2.8 Enclosure Outdoor applications should be designed taking into consideration the environment where they will be installed, as there are several factors that should be taken into account, such as weather hazards. Therefore, when developing outdoor electronics applications, an enclosure should be used that provides sufficient protection against different sorts of environmental hazards that can potentially damage the circuitry. There are international standards that define the levels of sealing effectiveness of enclosures against a vast number of intruding elements, such as moisture, dust, or fire.
44 Chapter 2. State of the Art 2.8.1 Ingress Protection For moisture and foreign matter intrusion, it was developed the Ingress Protection (IP) rating (figure 2.24), which is an international standard that defines the levels of sealing for liquids, and solid objects. This protection is specified in IEC 60529: “Degrees of Protection Provided by Enclosures” [58], which was made a standard by the European Union. Figure 2.24: Ingress Protection rating standard nomenclature. To define the rating, the nomenclature is composed of the Ingress Protection initials, followed by two numbers. The first number refers to the protection against solid objects, while the second against liquids [59]. Theoretically, the higher the rating, the better the protection, but also the more expensive it is. Therefore, the casing should be chosen carefully, taking into account where it will be placed, and what kind of protection will be ideal. Table 2.4 refers to the IP rating against solids objects. Table 2.4: IP rating against solid objects. Rating Type of protection 0No specific protection. 1Protection against foreign objects greater than 50 mm, such as a person’s hand. 2Protection against foreign objects greater than 12 mm, such as a person’s fingers. 3Protection against foreign objects greater than 2.5 mm, such as tools. 4Protection against foreign objects greater than 1 mm, such as wires. Continues on the following page
Chapter 2. State of the Art 45 Table 2.4 – Continuation of the previous page Rating Type of protection 5Protection against dust limited ingress. 6Protection from total dust ingress. Table 2.5 refers to the IP rating against liquids. Table 2.5: IP rating against liquids. Rating Type of protection 0No specific protection. 1Protection against vertically falling liquid drops. 2Protection against falling liquid drops when the enclosure is tilted at any angle up to 15º from its normal position. 3Protection against direct sprays of liquid at any angle up to 60º from the vertical. 4Protection against liquids sprayed from all directions. 5Protection against ingress from low pressure jets of liquid, from any direction. 6Protection against ingress from high pressure jets of liquid or heavy seas. 7Protection against the effect of full temporary immersion in liquids. The test conditions for this rating are immersion in 1 meter of water for 30 minutes without any harm done to the contents of the enclosure. 8Protection against long periods of immersion up to a certain pressure value that is specified by the manufacturer. 9k Steam directed at a hight pressure against the enclosure from any direction. 2.8.2 UL 94 Flammability Standard Since the case scenario that is being studied for this dissertation is the occurrence of wildfires in forest areas, and the devices will be placed in those locations where there is a possibility that
46 Chapter 2. State of the Art fires will reach them, it is important to study whether there are any materials that could possibly prevent or delay the fire’s effect on the devices. Although is might be impossible to stop all the effects that occur from fire presence, such as the high temperatures, which can permanently damage the circuitry and sensors, it is still relevant to prevent as much damage as possible. The UL94 Standard for Safety of Flammability of Plastic Materials for Parts in Devices and Appliances is a flammability standard that was developed for polymeric materials. It defines a material’s response to being in flames, which means its capability of either extinguishing or spreading flames. There are a total of 12 classifications, 6 of which are specified for enclosures, and are represented in table 2.6. Table 2.6: UL94 Flammability Standard Rating Type of protection HB slow burning on a horizontal specimen; burning rate < 76 mm/min for thickness < 3 mm or burning stops before 100 mm. V-2 burning stops within 30 seconds on a vertical specimen; drips of flaming particles may occur. V-1 burning stops within 30 seconds on a vertical specimen; drips of particles allowed as long as they are not inflamed. V-0 burning stops within 10 seconds on a vertical specimen; drips of particles allowed as long as they are not inflamed. 5VB burning stops within 60 seconds on a vertical specimen; no drips allowed; plaque specimens may develop a hole. 5VA burning stops within 60 seconds on a vertical specimen; no drips allowed; plaque specimens may not develop a hole. 2.9 Conclusion This chapter gave an overview of all the relevant topics that needed to be taken into account about WSNs and LPWANs, with particular emphasis on the LoRa technology and LoRaWAN protocol, as
Chapter 2. State of the Art 47 this will be the LPWA technology used for this project. It also showed all the different types of sensors that currently exist for each sensor that was chosen to be used, along with the main advantages and disadvantages of each. Lastly, it was mentioned the two different standards for enclosures. Considering this project is to be used outdoors, it was important to mention the different ratings that exist and can be considered for choosing the best enclosure according to the requirements and constraints for this project.
Chapter 3 System Specification After having a theoretical insight on the different technologies and aspects that this dissertation will focus on and having an overview of the different types of sensors that will be used, it is possible to define the components that will be part of the system. First and foremost, it is important to outline that the application scenario that this dissertation covers is wildfire detection. However, on the long run, it is intended to have a functional generic node architecture that allows the use of different sensors without significant changes in its structure and coding. This chapter presents the design and specification of the system and its architecture. All the requirements and constraints for the A general overview of the whole node is given, taking into consideration the technological study made in section 2. 3.1 System Requirements In order to properly design and conceive the system, it is necessary to define all its requirements and constraints beforehand, as it is crucial to fulfill them in the decision making process. •LoRa should be used for wireless communications. It is intended to have a long range of network coverage in order to be able to place the nodes outdoors in remote areas. •The nodes should be developed for low power consumption. 49
50 Chapter 3. System Specification Since the system is to be battery powered, all the chosen hardware and developed software should take into account power efficiency methods, in order to provide the maximum lifetime. •The system should measure a set of physical variables from the environment. The chosen physical variables to be monitored are: temperature, humidity, carbon monoxide, carbon dioxide, nitrogen dioxide, and light. •Hardware enclosure should allow its placement outdoors. As the system is intended for outdoor applications, it should be enclosed in a way that it will not suffer from weather hazards. Its encapsulation should provide some sort of water and dust resistance. •All the components should be chosen taking into account the overall budget of the system. Since it is intended to create a solution to integrate a Low Power Wide Area Network, then budget restrictions apply. In order to be able to produce a vast number of devices, their individual cost should be the lowest possible. 3.2 System Architecture As mentioned in the preceding sections, it is intended to develop a node architecture that will allow collecting environmental data and sending to the upper levels of a Low Power Wide Area Network. Taking into account the all the requirements and the study that was previously made in chapter 2, it is possible to define the system components. Firstly, the system is divided into two major layers: the hardware layer, and the software layer. The full system stack, containing all the different layer divisions and elements, is depicted in figure 3.1. The different elements that compose the hardware layer of the system are the microcontroller, the different sensors, and the radio module. The chosen sensors are a temperature sensor, a humidity sensor, a light sensor, and a gas sensor. Above this, there is the software layer. It is the microcontroller that will interface the hardware and the software layers, and thus will contain all the software elements. The software layer can be split into two different sub layers: the software low layer, and the application layer.
Chapter 3. System Specification 57 3.3.5 LoRa Module The radio frequency module that was chosen is Microchip’s RN2483 (figure 3.5). This RF module is certified for operations in 433 and 868 MHz, and uses the LoRa technology. It contains the LoRaWAN protocol in order to be able to connect to a LoRa network, and enables class A devices. Its certification is issued for LoRaWAN 1.0. This was one of the first LoRa modules on the market. There is an equivalent for the 915 MHz frequency, the RN2903 Figure 3.5: RN2483 LoRa module. (Source: [62]) Some of the RN2483’s main characteristics are: •On-Board LoRaWAN Protocol Stack •UART interface •ASCII Command Interface •Device Firmware Upgrade (DFU) over UART •Low-Power Consumption •14 GPIOs available for user control, some with Analog Input functions •Operating temperature ranges: -40°C to +85°C •Long Range Transceiver able to operate in the 433 MHz and 868 MHz frequency bands •FSK, GFSK, and LoRa Technology Modulation
58 Chapter 3. System Specification •Manufacturer’s defined range: up to 15 km coverage in areas; up to 5 km coverage at urban areas •Adjustable Transmission Power up to 10 dBm for 433 MHz and 14 dBm for 868 MHz Inside this module, a set of components can be found from which it is relevant to specifically mention the transceiver and the microcontroller. The module’s block diagram can be seen in figure 3.6. The host MCU represents the microcontroller that is chosen for the node, which is chosen by the user. It will control the application, and communicate with the RN2483 through the UART interface. All configuration for the LoRa network can also be stored in an EEPROM available in the module, which allows developers to preset some parameters, such as the sessions keys mentioned in section 2.4. The mentioned transceiver (Lora-Compliant Radio), and the RN2483’s microcontroller (MCU) can be seen in the diagram as well, and since this is the European version, the 433 MHz and 868 MHz frequency bands are supported. The module can use two antennas, one for each frequency band, although it can only operate in one at a time. Figure 3.6: RN2483 LoRa module block diagram. (Source: [63])
Chapter 3. System Specification 59 This LoRa module contains a Semtech SX1276 transceiver, which uses the LoRa modulation technique, and also offers support for FSK transmission [38]. This transceiver can operate in frequencies between 137 MHz and 1020 MHz, thus the frequency choice should be region specific. It allows the choice of bandwidth from 7.8 kHz to 500 kHz, and the spreading factors from 6 to 12 for all frequency bands. The SX1376 can achieve a high sensitivity of -148 dBm. Exclusively for LoRa communications, a First In First Out (FIFO) buffer with a size of 256 bytes is used. It is located in a RAM area, which is fully customizable by the user and provides access to all the received or transmitted data. All data from the last reception operation is available until it transitions to receive mode or when it enters SLEEP, which is when the FIFO data buffer is automatically cleared. By default, the SX1276 transceiver assigns half of the available memory for transmit data, and the other half for received data. All access to this data is done by the SPI, and thus even all configuration registers are set using this interface. The transceiver timing is given by a crystal oscillator, which is required. The RN2483 also has a PIC18LF microcontroller which allows to interface the SX1276 transceiver to a host MCU through the UART interface, and contains the LoRaWAN stack. By allowing a set of ASCII commands to optimize the command/response interface with a host MCU or system, this RF module makes applications’ development easier and quicker. It also provides a set of 14 GPIO Pins, which can be configured by the user or, in some cases, be used as analog inputs. The PIC microcontroller also offers the possibility of updating its firmware through the UART, or by using the In-Circuit Serial Programmed (ICSP) pins. At the time of the writing of this dissertation, the latest available firmware was version 1.0.4, which was released on the 11th of February of 2018, and implemented the LoRaWAN 1.0 protocol [64]. 3.3.6 Battery The chosen battery to power the nodes is the SAFT LS14500. It is a lithium AA sized battery which is provides 3.6 V [65]. One of its main characteristics is the fact that this battery keeps its voltage very steady for the most part of its life time. Its capacity is 2600 mAh.
60 Chapter 3. System Specification Figure 3.7: Chosen battery. (Source: [65]) 3.3.7 Enclosure After selecting all the components and in oder to make it possible to do the hardware implementation, it was necessary to decide which kind of enclosure to use for the nodes. Considering that the nodes will be placed outdoors, they will be prone to weather and other sorts of environmental hazards, and after studying different standards for enclosures in section 2.8, it was possible to choose the enclosure which will best fit the dissertation’s purpose. Therefore, after analysing the standards, it was decided that the enclosure should be totally protected against dust (level 6 of the IP rating for solids), and at least protection against low pressure jets of liquids (level 5 of the IP rating for liquids), thus the enclosure having a minimum rating of IP65 would be ideal. The enclosure should also provide some sort of flame protection. Even though it will not completely stop the harmful effects of fire in the node’s electronics, as the components might malfunction after being exposed to the high temperatures that occur with wildfires, it should at least a V-0 rating on the UL94 standard. After taking all the previous things into consideration, and further checking suppliers, the best fitting choice was the plastic 1554E2GYSL case with the dimensions 89.99mm x 89.99mm (length and width, respectively), manufactured by Hammond [66], which provides the rating IP66, and UL94 V-0. Due to coherence in the measurements when compared to the casings used in previous projects, these dimensions were the ideal, since they should be more than enough to fit all components. However, the pricing for this case was relatively high for the type of application that was intended, since a vast number of nodes is to be produced. Therefore, an option had to be made
Chapter 3. System Specification 61 Figure 3.8: 1554EGY, the chosen enclosure. (Source: [67]) for disregarding one of its characteristics, in order to achieve a lower price. As so, the final enclosure choice was also a plastic Hammond box, the 1554EGY (shown in figure 3.8), with the same dimensions, although with a lower flammability rating [67]. Since, as previously mentioned, it may not be possible to prevent fire damage due to the high temperatures, it was decided that this parameter would not be as relevant for the node as the protection against dust or liquids. Since the enclosure is completely sealed off, it could bring some issues not only for an accurate gas detection, but also for the temperature and humidity measurements. These sensors are meant to measure the environment variables, and being completely sealed off from it might cause wrong values. Hence, it was relevant to find some sort of system that would allow airflow within the case, as to provide a temperature inside the casing as similar as the one outside, and also the same air composition and pressure. This can be done by installing vents in the case, which can also come with IP ratings [68]. A protective vent installed on the case may allow necessary airflow, as well as prevent heat dissipation, while still maintaining the sealing requirements. Therefore, a small protective vent was chosen with a 17.1 mm diameter (figure 3.9), which should be able to fit and be installed on the chosen enclosure [69]. This vent not only allows the airflow, but also has an IP68 rating. Figure 3.9: Protective vent to be installed on the enclosure. (Source: [67])
62 Chapter 3. System Specification 3.4 Conclusion This chapter started by taking into account the main goals and the requirements, and it was further possible to analyse and build a system stack, which allowed to better choose the components. After choosing the microcontroller and the sensors, a brief overview of each was given, having in mind the application scenario. Since this project aims to build a node architecture for outside placement, it was also chosen an enclosure and some ways to prevent the environmental hazards to the electronics that it will contain. After choosing all components, it was then possible to proceed to making the circuits schematics and starting the hardware development, as well as the software development that would support it.
Chapter 4 Implementation After defining all the system specifications and components that were used, it was possible to proceed to the implementation in order to develop the nodes and fulfil the dissertation’s objectives. Therefore, this chapter provides the overview of how the system came to be. It is divided into two main sections that are relative to the hardware and software components of the system. The hardware was developed taking into consideration a general node architecture, which would make use of generic available peripherals in order to contain any type of sensors. In order to be able to test this concept, it was decided to develop two variants of the node architecture. They contained different sets of sensors, thus allowing to test and see if the concept was properly developed. The software was developed accordingly with the hardware layer, as it was necessary to develop all the code for all the peripheral interfaces. It was also necessary to take into account that the generic architecture could be used for different variants of the nodes, and thus it was developed accordingly for the two node variants, in order to further prove this concept. 4.1 Hardware Implementation This section contains the development process for the hardware. Firstly, it was chosen a general node architecture, by using the microcontroller’s graphical tool that allows mapping the peripherals and pins. Afterwards, it is shown how both variants were built and the necessary circuitry that was added. 63
64 Chapter 4. Implementation 4.1.1 Node Architecture The general node architecture was developed regardless of the sensors to be placed on the board. There were two variants of nodes that were developed for this Master’s thesis , which are explained in the following sections. It was decided to use as a general set of components, the MCU and the LoRa module. However, the enclosure that had been chosen in section 2.8 was not used. As this was a first prototype, it was opted instead to use an already available enclosure, which had already been used previously in other projects, in order to reduce the budget. The box used has an IP54 rating, and its dimensions are 100 mm x 100 mm. Since the considered sensors will have different peripheral interfaces, and they are not to be used unless when reading environment data, it was decided to use a GPIO pin to switch them on or off, accordingly. This decision was also made for the LoRa module, ir order to allow testing different approaches for node development, taking into account the two different authentication methods. To define where each peripheral would be assigned, as well as the needed GPIO pins for enabling or disabling sensors and the LoRa module, the STM32CubeMX tool was used. This software tool allows to map and set all the peripherals and GPIOs within a given STM32 MCU, and thus helps to prevent peripheral overlapping peripherals. Figure 4.1: Chosen pinout for peripherals (using STM32CubeMX tool). The chosen pin mapping, which can be seen in figure 4.1, is representative of how the node architecture was chosen. For different variants of nodes, peripherals can be activated through
Chapter 4. Implementation 65 software implementation, depending on which sensors there are. This will be further explained in the Software Implementation section. Similarly, it was used the MCU’s USART2 for the RN2483 module, and the I2C1 for the I2C sensors, as well as one USART (LPUSART) , the SPI interface, and two ADC channels. Since the considered sensors will have different peripheral interfaces, and they are not to be used unless when reading environment data, it was decided to use a GPIO pin to switch them on or off, accordingly. The sensors and the LoRa module are both activated by a specific GPIO, which was set as an output that can be changed to turn them on or off. For the LoRa module, it was named LoraEnable , and chosen the pin PB12 . For the sensors, the GPIO output was named SensorEnable , and assigned to pin PB13 . Figure 4.2: LoraEnable and SensorEnable circuitry. These pins are connected to two MOSFETs, which will give the voltage output to the peripherals, as seen in figure 4.2. When enabled, they will be directly powered by the 3.3 V that is supplied to the board by the low-dropout regulator (LDO). When the enable pin is at a low state, the first MOSFET (enhancement mode N-channel) will have a Gate-Source voltage (VGS ) of 0 V, making the second MOSFET’s gate have the value of VCC. Thus, on the enhancement mode P-channel MOSFET, its VGS will also be of 0 V, and the sensors will not be powered. When the opposite occurs, which means that the enable pin is at a high state, the N-channel VGS will have a positive value that exceeds the Gate Threshold Voltage, thus making the gate of the P-channel MOSFET have a low value. This will make the Gate-Source voltage of the P-channel MOSFET be negative, and then the sensors will be provided the same voltage as the VCC.
66 Chapter 4. Implementation Both resistors that are in this circuit are to make sure the pull-down / pull-up are done correctly when the output is off. By using this circuitry, it was possible to reduce the power consumption, as the sensors are only turned on when readings are needed. As mentioned in the previous chapter, LoRaWAN’s OTAA authentication method requires the LoRa radio to be on at all times for it not to lose the session. Even though this is a constraint, it was still added the enable pin, as it can be used for ABP, or to reset the module, and thus the same circuitry was used for this purpose. 4.1.2 Variant 1 The first variant of the nodes contained just two sensors and thus was rather simple to design. It used the Cozir CO2sensor, which already contains the SHT21 temperature and humidity sensor, as seen in section 3.3. This sensor was assigned to the LPUART , as its baudrate was enough for this peripheral. As there was no need to add a SHT21 sensor, the I2C line contained only the light sensor. As mentioned in the previously, the USART2 was also used for the LoRa module. All the other peripherals were deactivated. This node’s board design can be seen in figure 4.3. The schematics and Printed Circuit Board design can be found in Appendix A. (a) 3D board design. (b) Board and its box. Figure 4.3: Final result of the node variant 1
Chapter 4. Implementation 73 Figure 4.9: System startup flowchart. The system contains three main tasks: the Data Acquisition task ( vDataAcquisition ), the Data Sender task ( vDataSend ), and the Data Process task ( vDataProcess ). Figure 4.10: Data Acquisition task flowchart.
74 Chapter 4. Implementation The data acquisition (figure 4.10) task is mainly responsible for getting the data out of the sensors. It is this task that retrieves the data for the sensors and saves the collected values. After the data is read, the sensors are turned off through the SensorEnable pin. The data is then forwarded to the next task, which is responsible for processing it. Figure 4.11: Data Process task flowchart. When developing a CPS, some parts of data processing occur on the lower levels, rather than just acquiring data and sending it over and over. As this would cause a high consumption due to the LoRa module transmission, especially when at lower bit rates, data is only sent, for the most part, when the values are outside of some predefined limits. This allows that the upper layer can
Chapter 4. Implementation 75 make predictions based either on the weather forecast, or the season, and send that information to the node, so the acceptable values for each sensor threshold can be adjusted. The data process task receives the information previously collected on the previous task, and will compare the values with those predefined limits. Data will be sent if it is a scheduled transmission, or if the values are outside of the threshold limits. In the latter, the node is assigned a specific frequency, called the emergency frequency . Since the gateway does not have access to the data, this is a way for it to know that an important message is being sent. Since the nodes work with 8 channels, to force the emergency frequency , all channels except one are disabled, and that channel is forced at the emergency frequency . Figure 4.12: Data Sender task flowchart. If data is supposed to be sent, it will be forwarded to the next task, which is the sender task. This task is responsible for formating the data, and send it through the LoRa module. If the authentication method is ABP, then the LoRa module will be turned off. However, if the authentication method is OTAA, then the LoRa module will have to be permanently on, and thus will only be placed in sleep mode after sending the message.
76 Chapter 4. Implementation Low Power Mode In order to optimize and reduce the power consumption, the nodes are set to a low power mode when they are not acquiring or sending data. This is possible due to the manufacturer [75] The chosen MCU has seven different low power modes. Ideally, the Standby mode should have been used, as it has the lowest power consumption. Since it has a variant that can be awaken using the RTC, this would be the ideal implementation. In this mode, only the LSE or LSI oscillators are running, and the CPU, Flash memory, and RAM memory are deactivated. Only the RTC back up registers are available, which is a total of 20 registers. However, due to the hardware implementation of the nodes, and having in mind that the LoRa module needs to stay on the whole time due to the OTAA session, this was not fit for this application, as the hardware peripherals are switched off in this mode. Consequently, the best mode to be used was the Stop mode, which keeps the RAM memory and the RTC backup registers, hence stopping the CPU. Similarly to the Standby mode, this one is also able to wake up from the RTC, although it can also be awaken from other peripherals such as the USART, I2C, Low Power UART, or the Low Power timer. It was developed a module to contain the internal RTC initialization, its configuration, the activation and configuration of the Wake Up and deactivation of the Wake Up. The RTC synchronous prescaler was set to 1 Hz to provide a 1 second minimum timebase/wake up time, and a maximum of 18 hours. Figure 4.13: Flowchart of the pre-sleep routine.
Chapter 4. Implementation 77 Before the node gets into a low power mode, it goes through a FreeRTOS specific routine that occurs right before entering the low power mode, whose flowchart can be seen in figure 4.13. This routine allows doing any necessary coding before the MCU is put in a low power state, and thus it was used to change the peripheral mapping and set the pins as analog inputs for less power consumption (except for the LoRa module USART and its enable), and to configure the RTC registers in order to have the correct wake up time. The node then enters the low power mode. Similarly, FreeRTOS has a specific routine that occurs when the node comes out of the low power state, whose flowchart can be see in figure 4.14. Since the RTC is what gives the wake up through its interruption, the node will enter the post sleep subroutine and deactivate the RTC so it won’t generate any more interruptions until it enters the next low power cycle. This routine will also restore the peripheral configurations, as it will be making measurements on the sensors. Figure 4.14: Flowchart of the post-sleep routine. 4.3 Conclusion This chapter described all the development process in order to achieve a final product. It detailed how both nodes were developed, along with their similarities and differences.
78 Chapter 4. Implementation Some hardware choices had to be made that differed from the Specification chapter due to restrictions, such as choosing the box, or the board shapes.
Chapter 5 Tests and Results This chapter contains the tests made to the system. As it was intended to study the LoRa technology and how a LoRaWAN network is built, the tests made reflect that study. It was also necessary to check whether the nodes successfully connected with the upper levels of the network and transmitted information. 5.1 Building an Example LoRaWAN Network To understand the LoRa modulation and the LoRaWAN protocol, Microchip’s LoRa Technology Evaluation Kit - 800 [76] was used, which contains two example nodes (LoRa Mote), and a gateway. By using this kit, it was intended to observe how a LoRaWAN network works, as the kit provided a User Guide which described how to set up the nodes, the gateway, and how to create and run a LoRa server. The LoRa Mote is a demonstration board which contains an 8-bit PIC18LF45K50 MCU, an RN2483 LoRa module, an LCD display, a light sensor, a temperature sensor, and an AAA battery pack [77]. This node also contains two antenna connectors that allow the use an antenna of a 868 MHz frequency, or one of 433 MHz frequency. The PIC MCU can be programmed through the available In-Circuit Serial Programmer (ICSP). To program this Mote, it was used the PICkit 3 [78]. To program the LoRa Mote, it was used the MPLAB X IDE and the C language. The developed code was based on the source code provided by Microchip, which contains an example application for this node. This application had basic commands for the RN2483 module, as well as data collection from the light and temperature sensors integrated in the LoRa Mote. 79
80 Chapter 5. Tests and Results Figure 5.1: Microchip’s LoRa Technology Evaluation Kit - 800 , which contains two LoRa Motes, and a gateway. When first testing the kit, LoRa Suite guide [79] was followed. The LoRa Development Utility , allows the usage of the LoRa Technology Evaluation Kit - 800 , and provides a Graphical User Interface (GUI) that allows setting up the nodes, the gateway, and the server. It allows to set all the parameters on the nodes and gateway, from the LoRaWAN keys, node Device Address, or the gateway IP. Figure 5.2: LoRa Development Utility containing all the connected nodes, gateways, and the LoRa server. The LoRa server was ran in Docker, which allows virtualization. The server was provided in a Docker Image by Microchip. Although it was possible to properly set up in the LoRa Development
Chapter 5. Tests and Results 81 Utility the nodes, the gateway, and running the server (as seen in figure 5.2), this software had a lot of issues and did not allow to fully understand how the LoRa technology works, as the messages sent from the nodes could not be seen on the LoRa server. For one, the server was not able to receive the messages from the nodes, even though they could be seen on the gateway traffic. It was only possible to see that the gateway was connected to the server every once in a while, and its status was not consistent. It was therefore decided to move on to another approach, and use a custom gateways that was developed in parallel with this Master’s thesis for the purpose of the LPWAN. This was crucial, as the gateway that was used along this project allowed to store and further study the data received by the nodes, whereas Microchip’s gateway had a closed firmware and did not allow any sort of changes. 5.2 Transmission Tests In order to fully understand how the LoRa transmissions worked, a set of tests was done, which consisted of sending messages through the LoRaWAN protocol. These tests took into consideration the different parameters: Spreading Factor, and Data Rate. They are invariably connected, as seen previously on the study made about LoRa. It was important to know how they impacted the transmission time and consumption of the RN2483 module. The tests done for this used an equivalent resistance of 2.5 � in series with the RN2483 module and the oscilloscope probes on the resistance to measure the behaviour of the LoRa module when transmitting through LoRaWAN with different Data Rates. The results have numbering on each section, which makes the following correspondence accordingly: 1. Module is turned off. 2. Moment when the module is turned on, and a serial reply to a small verification command is sent, as well as the serial reply to the ABP. 3. Two serial replies to the commands setting the SF and TxPower parameters. 4. LoRaWAN transmission.
82 Chapter 5. Tests and Results 5. Two serial replies, indicating that the LoRaWAN transmission has finished (typically, the node replies with a command acknowledge message, which indicates whether it got a valid command or not, and a message indicating whether the message transmission was successful). Figure 5.3: First transmission test. Data Rate was set to 0, thus the SF value was 7. Three Data Rates/Spreading Factor values were chosen, which were the highest (DR5/SF12) and lowest value (DR0/SF7), and a middle range value (DR2/SF10). The first test (figure 5.3) was done with the Data Rate set to 0, which corresponds to the lowest SF value, SF 7. This means that the message was transmitted at the bit rate of 250 bps. This is the lowest speed at which the LoRaWAN module can transmit. As expected, the message transmission took a longer time than in the other tests, taking approximately more than 1 second. The second test (figure 5.4) had the Data Rate set to 2, which corresponds to a Spreading Factor value SF10. Hence, the message was transmitted at a bit rate of 980 bps. Compared to the first test, it is possible to see that the transmission time is relatively shorter. The third test (figure 5.5) had a Data Rate value of 5, which is the highest possible value for this parameter. This set the bit rate at 5470 bps, and as seen in by the result, the transmission is the fastest when compared to the other tests.
Chapter 5. Tests and Results 89 Table 5.4 – Continuation of the previous page Node Distance to gateway Line of sight Node 3 2.84 km Yes The testing method was similar to the first test, with the Spreading Factor (SF) and Transmission Power (TxPower). The SF values varied from SF7 to SF12, whereas the TxPower values used were only three (Txp1, Txp3 and Txp5). For each SF value, starting from the highest (SF12) to the lowest (SF7), one hundred messages were sent combining the SF values and the three TxPower, from highest (Txp1) to the lowest (Txp5) values. One test was made per location, for the node that was moved from one place to the other, with a total of 1800 messages sent for each test. The stationary node (N3) was continuously transmitting. Table 5.5: Nodes and Gateway geolocation for the second set of tests. Device Latitude Longitude Elevation Node 1 41,560078 -8,400911 189 m Node 2 41,546564 -8,398164 205 m Node 3 41,541495 -8,406812 203 m Gateway 41,555111 -8,378013 381 m The results of the tests made can be found in table 5.6, where the percentages of packages received by each node can be seen for each different SF value. Table 5.6: Received Rate Percentage for each node for the second set of tests. Node SF7 SF8 SF9 SF10 SF11 SF12 N1 85% 90% 100% 100% 100% 100% N2 80% 85% 90% 100% 100% 100% N3 0% 0% 0% 0% 0% 0% The gateway was placed at Bom Jesus. There was a possibility of placing it in Sameiro, which is a higher point. However, it was decided not to do so because Sameiro contains several antennas near its location, which could play a high role on causing interference with the message reception. Since the location of the gateway on the first set of tests already had this factor, as Penha contains
90 Chapter 5. Tests and Results antennas, it was important to see how the results would be affected without having this factor. The results obtained were significantly better, even considering that the nodes were located at a longer distance from the gateway than in the first set of tests. The lowest percentage of messages received was for the highest DR values (lower SF values). The first node was located on a parking lot, which had a direct line of sight to the gateway location, on a lower elevation. From the moving nodes, this was the closest. Most of the messages sent by this node were successful, especially for the lower DR values (higher SF parameter value). For the higher DR values, there were some messages that were not received, which was expected for such a distance in an urban area. The second node was also located in a parking lot with direct line of sight. It was on a lower elevation than the gateway, although a bit higher than the first node. This was the furthest node from the mobile nodes, and its results were also successful for the lower DR values. For the lower DR values (SF7, SF8, and SF9), there was some packet loss that was slightly higher than in the previous node, which may have been due to the distance effect. The third node was the furthest away for both tests. This node was placed on the fifth floor of a balcony, with a direct line of sight to the gateway location, and was constantly transmitting the messages as it was cycling through the different parameter combinations. Comparing its results to the results obtained in the previous test, in which no message was received from the furthest node, it could be concluded that distance was the main factor that prevent the message reception, as non of the messages were delivered. The Received Signal Strength Indication and Signal-to-Noise Ratio graphics from both the first test and the second test can be seen in Appendix C and Appendix D respectively.
Chapter 6 Conclusions and Future Work After the whole implementation of the nodes, conclusions can be made from the developed work and the results obtained. This chapter aims to make an overview of the results obtained and what can be concluded from them, as well as suggest further improvements that can be made in future implementations. 6.1 Conclusion The conclusions are based on all the tests made to both variants of the nodes. The LoRa module was tested extensively, in order to have an in-depth comprehension of how this protocol actually works, its limitations, and maximum range that can be achieved. It was also possible to see how the different parameters could affect the transmissions, which has an impact on the energy consumption of the nodes. The authentication with the Network and Application server was successful, and it was possible to send data to the upper levels. However, due to restrictions from the TTN regarding the downlink messages, it was not possible to test the confirmed messages. LoRa proved to be effective for long range transmissions, as the results obtained in an urban city environment showed that it is possible to send message within the distance of kilometres. However, more tests should be done in remote areas, such as vast forests, as the city environment contains a lot more interference than remote areas. The position of the gateway and the nodes is also an important factor for the success rate, as objects in-between can interfere with the quality of the signal. The gateway should also be set on a higher location than the nodes, as this proved to be a good approach. It was also tested the possibility of having a node transmit to another. However, this solution did not seem viable. Even though it was possible to send and receive messages from node to node, 91
92 Chapter 6. Conclusions and Future Work the LoRa module some limitations to receiving messages. Firstly, it can only receive one message at a time, having either a continuous receive mode, or a limited time for message reception. This means that the nodes would have to be well coordinated in order to send messages between them. As they receive messages from any node that is on the same frequency, there is a high probability of a node receive an unintended message, while missing a message it was supposed to receive. Furthermore, to send this type of message, it is only using the LoRa modulation and not the LoRaWAN protocol, which contains no security or encryption. As it was intended to do some first studies into the LoRa technology and create a node architecture, there was only two nodes developed for this concept, and thus it was not possible to make extensive tests regarding how the network would handle multiple communications at the same time. In order to do this, a larger number of nodes would be required, and syncing them all to send several messages. One of the biggest difficulties in reducing the production price for these nodes is the cost of gas sensors. As the most accurate sensors can be very expensive, it is necessary to either chose accuracy or a lower costs. However, it will not be as precise, and therefore a compromise should be made between accuracy, and cost. However, if using other types of sensors, this should not be an issue. 6.2 Future Work For an upcoming version of the nodes, the board size can be further reduced to the enclosure that was mentioned in the Specification chapter. This box is actually the one mostly used for the research group’s project, and thus would fit the standard sizing that is usually used for projects that involve sensor nodes. An external RTC should also be added, as the internal one of the MCU is not very precise. There were some difficulties with implementing the lowest power modes along with FreeRTOS. Although it was possible to implement all the low power modes, with FreeRTOS this was only done with the Sleep mode, which was not the ideal mode. Finding a solution to this would be ideal for the nodes’ low power consumption. It would be crucial to test both nodes and LoRa’s effectiveness in a real application scenario, which would mean leaving both the nodes and the gateway outdoors. The ideal test would be
Chapter 6. Conclusions and Future Work 93 in an area where firefighters could make use of the system in their training exercises, and this would not only help to prove the system’s functionality and intuitiveness for emergency services, but also to see how the system would react in a real world scenario. It would also provide the needed data for the upper layers to be able to make predictions on fire occurrences. Lastly, it should also be tested the confirmed data messages, as it was implemented but not tested. Ideally, it would be better to use a custom Application Server, as having information dependent on a third party might not be a good approach for sensible data. This could be done by doing some encryption on the payload, and since the chosen microcontroller supports AES encryption, it is possible to make a full integration of the encryption keys on both the nodes and the Application Server.
Appendix A Variant 1 Schematics and Layout 95
1 1 2 2 3 3 4 4 D D C C B B A A Title Number RevisionSize A4 Date: 31/01/2019 Sheet of File: C:\Users\..\MCU.SchDoc Drawn By: VDD 1 PC13 2 PC14-OSC32_IN 3 PC15-OSC32_OUT 4 PH0-OSC_IN 5 PH1-OSC_OUT 6 NRST 7 VSSA 8 VDDA 9 PA0 10 PA1 11 PA2 12 PA3 13 PA4 14 PA5 15 PA6 16 PA7 17 PB0 18 PB1 19 PB2 20 PB10 21 PB11 22 VSS 23 VDD 24 PB12 25 PB13 26 PB14 27 PB15 28 PA8 29 PA9 30 PA10 31 PA11 32 PA12 33 PA13 34 VSS 35 VDDIO2 36 PA14 37 PA15 38 PB3 39 PB4 40 PB5 41 PB6 42 PB7 43 BOOT0 44 PB8 45 PB9 46 VSS 47 VDD 48 U1 STM32L081CB GND NRST R1 10k GND USART1_TX USART1_RX Sensor_enable SDA SCL LPUART1_TX LPUART1_RX IN 1 GND 2 EN 3 GND 4 OUT 5 U2 TPS783 GND GND GND SWCLK SWDIO + BATT1 LS14500 GND USART1_RX USART1_TX SDA SCL LPUART1_RX LPUART1_TX VCC VCC GND GNDGND GND GND GND Vin VCC VCC VCC VCC VCC C1 1uF C12 NC 10uF GND VCC Sensor_enable 7 2 1 8 G DS Q1A FDS9934C 5 4 3 G D S 6 Q1B FDS9934C Sensor_VCC R6 2k R7 2k VCC R2 1M R4 100k 1 2 3 4 5 P1 SW-DP VCC R9 22R R10 22R R11 22R GND R8 4.7k SWDIO SWCLK NRST JP2 Jumper 2way JP1 Jumper 2way GND VCC LORA_Enable 7 2 1 8 G DS Q2A FDS9934C 5 4 3 G D S 6 Q2B FDS9934C LORA_VCC R3 1M R5 100k LORA_Enable C4 100nF C5 100nF C6 100nF C3 100nF C2 100nF LORA_TX LORA_RX Sensor_VCC SDA SCL COZIR_TX COZIR_RX VCC GND LORA_VCC U_Node_1 Node_1.SchDoc Sensor_VCCLORA_VCC PIBATT101 PIBATT102 PIBATT103 COBATT1 PIC101 PIC102 COC1 PIC201 PIC202 COC2 PIC301 PIC302 COC3 PIC401 PIC402 COC4 PIC501 PIC502 COC5 PIC601 PIC602 COC6 PIC1201 PIC1202 COC12 PIJP101 PIJP102 COJP1 PIJP201 PIJP202 COJP2 PIP101 PIP102 PIP103 PIP104 PIP105 COP1 PIQ101 PIQ102 PIQ107 PIQ108 COQ1A PIQ103 PIQ104 PIQ105 PIQ106 COQ1B PIQ201 PIQ202 PIQ207 PIQ208 COQ2A PIQ203 PIQ204 PIQ205 PIQ206 COQ2B PIR101 PIR102 COR1 PIR201 PIR202 COR2 PIR301 PIR302 COR3 PIR401 PIR402 COR4 PIR501 PIR502 COR5 PIR601 PIR602 COR6 PIR701 PIR702 COR7 PIR801 PIR802 COR8 PIR901 PIR902 COR9 PIR1001 PIR1002 COR10 PIR1101 PIR1102 COR11 PIU101 PIU102 PIU103 PIU104 PIU105 PIU106 PIU107 PIU108 PIU109 PIU1010 PIU1011 PIU1012 PIU1013 PIU1014 PIU1015 PIU1016 PIU1017 PIU1018 PIU1019 PIU1020 PIU1021 PIU1022 PIU1023 PIU1024 PIU1025 PIU1026 PIU1027 PIU1028 PIU1029 PIU1030 PIU1031 PIU1032 PIU1033 PIU1034 PIU1035 PIU1036 PIU1037 PIU1038 PIU1039 PIU1040 PIU1041 PIU1042 PIU1043 PIU1044 PIU1045 PIU1046 PIU1047 PIU1048 COU1 PIU201 PIU202 PIU203 PIU204 PIU205 COU2 PIBATT102 PIBATT103 PIC102 PIC301 PIC401 PIC501 PIC601 PIC1202 PIP103 PIQ101 PIQ201 PIR101 PIR401 PIR501 PIU108 PIU1023 PIU1035 PIU1047 PIU202 PIU204 PIQ202 PIR502 PIU1025 NLLORA0Enable PIQ205 PIQ206 PIU1013 NLLPUART10RX PIU1012 NLLPUART10TX PIC201 PIJP101 PIJP202 PIU201 PIU203 PIP101 PIR801 PIP102 PIR901 PIP104 PIR1002 PIP105 PIR1102 PIQ104 PIQ107 PIQ108 PIR201 PIQ204 PIQ207 PIQ208 PIR301 PIR102 PIU1044 PIU102 PIU103 PIU104 PIU105 PIU106 PIU1010 PIU1011 PIU1014 PIU1015 PIU1016 PIU1017 PIU1018 PIU1019 PIU1020 PIU1021 PIU1022 PIU1027 PIU1028 PIU1029 PIU1032 PIU1033 PIU1038 PIU1039 PIU1040 PIU1041 PIU1045 PIU1046 PIR1101 PIU107 NLNRST PIR601 PIU1042 NLSCL PIR701 PIU1043 NLSDA PIQ102 PIR402 PIU1026 NLSensor0enable PIQ105 PIQ106 PIR902 PIU1037 NLSWCLK PIR1001 PIU1034 NLSWDIO PIU1031 NLUSART10RX PIU1030 NLUSART10TX PIC101 PIC202 PIC302 PIC402 PIC502 PIC602 PIC1201 PIJP102 PIQ103 PIQ203 PIR202 PIR302 PIR602 PIR702 PIR802 PIU101 PIU109 PIU1024 PIU1036 PIU1048 PIU205 PIBATT101 PIJP201
1 1 2 2 3 3 4 4 D D C C B B A A Title Number RevisionSize A4 Date: 31/01/2019 Sheet of File: C:\Users\..\Node_1.SchDoc Drawn By: GND 1 N/C 2 3.3V 3 N/C 4 Nitrogen Zero 8 Tx 7 N/C 6 Rx 5 Analog Output 9 Fresh Air Zero 10 U4 COZIR-A GND GND GND GND LORA_RX LORA_TX COZIR_RX COZIR_TX GND LORA_VCC Sensor_VCC GND GND SDA SCL LORA_VCC GND LORA_TX LORA_TX LORA_RX LORA_RX Sensor_VCC SDA SCL COZIR_TX COZIR_RX SDA SCL COZIR_RX COZIR_TX GND GND Sensor_VCC VCC VCC VCC 1 GND 2 A0 3INT 4 SCL 5 SDA 6 700-MAX44009EDT+T EP 7 SENSOR1 GND 1 UART_RTS 2 UART_CTS 3 RESERVED 4 RESERVED 5 UART_TX 6 UART_RX 7 GND 8 GPIO13 9 GPIO12 10 GND 11 VDD 12 GPIO11 13 GPIO10 14 NC 15 NC 16 NC 17 NC 18 NC 19 GND 20 GND 21 GND 22 RFH 23 GND 24 RFL 25 GND 26 GND 27 GND 28 NC 29 PGC_INT 30 PGD_INT 31 RESET 32 GND 33 VDD 34 GPIO0 35 GPIO1 36 GPIO2 37 GPIO3 38 GPIO4 39 GPIO5 40 GND 41 NC 42 GPIO6 43 GPIO7 44 GPIO8 45 GPIO9 46 GND 47 U5 RN2483 GND GND E1 Antenna SMD GND GND Sensor_VCC C7 1uF C10 10uF C11 10uF C8 100nF C9 100nF C13 100nF LORA_VCC LORA_VCC PIC701 PIC702 COC7 PIC801 PIC802 COC8 PIC901 PIC902 COC9 PIC1001 PIC1002 COC10 PIC1101 PIC1102 COC11 PIC1301 PIC1302 COC13 PIE101 PIE102 PIE103 COE1 PISENSOR101 PISENSOR102 PISENSOR103 PISENSOR104 PISENSOR105 PISENSOR106 PISENSOR107 COSENSOR1 PIU401 PIU402 PIU403 PIU404 PIU405 PIU406 PIU407 PIU408 PIU409 PIU4010 COU4 PIU501 PIU502 PIU503 PIU504 PIU505 PIU506 PIU507 PIU508 PIU509 PIU5010 PIU5011 PIU5012 PIU5013 PIU5014 PIU5015 PIU5016 PIU5017 PIU5018 PIU5019 PIU5020 PIU5021 PIU5022 PIU5023 PIU5024 PIU5025 PIU5026 PIU5027 PIU5028 PIU5029 PIU5030 PIU5031 PIU5032 PIU5033 PIU5034 PIU5035 PIU5036 PIU5037 PIU5038 PIU5039 PIU5040 PIU5041 PIU5042 PIU5043 PIU5044 PIU5045 PIU5046 PIU5047 COU5 PIU405 NLCOZIR0RX POCOZIR0RX PIU407 NLCOZIR0TX POCOZIR0TX PIC701 PIC801 PIC901 PIC1002 PIC1102 PIC1301 PIE101 PIE102 PISENSOR102 PISENSOR103 PISENSOR107 PIU401 PIU501 PIU508 PIU5011 PIU5020 PIU5021 PIU5022 PIU5024 PIU5026 PIU5027 PIU5028 PIU5033 PIU5041 PIU5047 POGND PIU507 NLLORA0RX POLORA0RX PIU506 NLLORA0TX POLORA0TX PIC902 PIC1001 PIC1101 PIC1302 PIU5012 PIU5034 POLORA0VCC PIE103 PIU5023 PISENSOR104 PIU402 PIU404 PIU406 PIU408 PIU409 PIU4010 PIU502 PIU503 PIU504 PIU505 PIU509 PIU5010 PIU5013 PIU5014 PIU5015 PIU5016 PIU5017 PIU5018 PIU5019 PIU5025 PIU5029 PIU5030 PIU5031 PIU5032 PIU5035 PIU5036 PIU5037 PIU5038 PIU5039 PIU5040 PIU5042 PIU5043 PIU5044 PIU5045 PIU5046 PISENSOR105 NLSCL POSCL PISENSOR106 NLSDA POSDA PIC702 PIC802 PISENSOR101 PIU403 POSensor0VCC POVCC POCOZIR0RX POCOZIR0TX POGND POLORA0RX POLORA0TX POLORA0VCC POSCL POSDA POSensor0VCC POVCC
PABATT101 PABATT102 PABATT103 COBATT1 PAC102 PAC101 COC1 PAC201 PAC202 COC2 PAC302 PAC301 COC3 PAC401 PAC402 COC4 PAC501 PAC502 COC5 PAC601 PAC602 COC6 PAC702 PAC701 COC7 PAC801 PAC802 COC8 PAC902 PAC901 COC9 PAC1002 PAC1001 COC10 PAC1101 PAC1102 COC11 PAC1202 PAC1201 COC12 PAC1302 PAC1301 COC13 PAE101 PAE102 PAE103 COE1 PAJP101 PAJP102 COJP1 PAJP201 PAJP202 COJP2 PAP101 PAP102 PAP103 PAP104 PAP105 COP1 PAQ105 PAQ106 PAQ107 PAQ108 PAQ104 PAQ103 PAQ102 PAQ101 COQ1 PAQ205 PAQ206 PAQ207 PAQ208 PAQ204 PAQ203 PAQ202 PAQ201 COQ2 PAR102 PAR101 COR1 PAR202 PAR201 COR2 PAR302 PAR301 COR3 PAR402 PAR401 COR4 PAR502 PAR501 COR5 PAR602 PAR601 COR6 PAR702 PAR701 COR7 PAR802 PAR801 COR8 PAR902 PAR901 COR9 PAR1002 PAR1001 COR10 PAR1102 PAR1101 COR11 PASENSOR101 PASENSOR102 PASENSOR103 PASENSOR105 PASENSOR104 PASENSOR106 PASENSOR107 COSENSOR1 PAU101 PAU102 PAU103 PAU104 PAU105 PAU106 PAU107 PAU108 PAU109 PAU1010 PAU1011 PAU1012 PAU1013 PAU1014 PAU1015 PAU1016 PAU1017 PAU1018 PAU1019 PAU1020 PAU1021 PAU1022 PAU1023 PAU1024 PAU1025 PAU1026 PAU1027 PAU1028 PAU1029 PAU1030 PAU1031 PAU1032 PAU1033 PAU1034 PAU1035 PAU1036 PAU1037 PAU1038 PAU1039 PAU1040 PAU1041 PAU1042 PAU1043 PAU1044 PAU1045 PAU1046 PAU1047 PAU1048 COU1 PAU205 PAU204 PAU203 PAU202 PAU201 COU2 PAU409 PAU4010 PAU401 PAU402 PAU403 PAU404 PAU405 PAU408 PAU407 PAU406 COU4 PAU5021 PAU5022 PAU5023 PAU5024 PAU5025 PAU5026 PAU5027 PAU5028 PAU5029 PAU5030 PAU5031 PAU5032 PAU5033 PAU5034 PAU5035 PAU5036 PAU5037 PAU5038 PAU5039 PAU5040 PAU5041 PAU5042 PAU5043 PAU5044 PAU5045 PAU5046 PAU5047 PAU501 PAU502 PAU503 PAU504 PAU505 PAU506 PAU507 PAU508 PAU509 PAU5010 PAU5011 PAU5012 PAU5013 PAU5014 PAU5015 PAU5016 PAU5017 PAU5018 PAU5019 PAU5020 COU5 PAU1012 PAU405 PAU1013 PAU407 PABATT102 PABATT103 PAC102 PAC301 PAC401 PAC501 PAC601 PAC701 PAC801 PAC901 PAC1002 PAC1102 PAC1202 PAC1301 PAE101 PAE102 PAP103 PAQ101 PAQ201 PAR101 PAR401 PAR501 PASENSOR102 PASENSOR103 PASENSOR107 PAU108 PAU1023 PAU1035 PAU1047 PAU202 PAU204 PAU401 PAU501 PAU508 PAU5011 PAU5020 PAU5021 PAU5022 PAU5024 PAU5026 PAU5027 PAU5028 PAU5033 PAU5041 PAU5047 PAQ202 PAR502 PAU1025 PAU1030 PAU507 PAU1031 PAU506 PAC902 PAC1001 PAC1101 PAC1302 PAQ205 PAQ206 PAU5012 PAU5034 PAE103 PAU5023 PAJP101 PAJP202 PAU201 PAU203 PAP101 PAR801 PAP102 PAR901 PAP104 PAR1002 PAP105 PAR1102 PAQ104 PAQ107 PAQ108 PAR201 PAQ204 PAQ207 PAQ208 PAR301 PAR102 PAU1044 PAR1101 PAU107 PAR601 PASENSOR105 PAU1042 PAR701 PASENSOR106 PAU1043 PAQ102 PAR402 PAU1026 PAC702 PAC802 PAQ105 PAQ106 PASENSOR101 PAU403 PAR902 PAU1037 PAR1001 PAU1034 PAC101 PAC202 PAC302 PAC402 PAC502 PAC602 PAC1201 PAJP102 PAQ103 PAQ203 PAR202 PAR302 PAR602 PAR702 PAR802 PAU101 PAU109 PAU1024 PAU1036 PAU1048 PAU205 PABATT101 PAJP201
Appendix C Received Signal Strength Indication and Signal-to-Noise Ratio First Test The following image displays the graphics of the Signal-to-Noise Ratio (SNR) (vertical axis) and the Received Signal Strength Indication (RSSI) (horizontal axis) obtained from the first set of tests. Graphic a) is relative to Node 1, graphic b) is relative to Node 2, and graphic c) is relative to Node 4. 105
Appendix D Received Signal Strength Indication and Signal-to-Noise Ratio Second Test The following image displays the graphics of the Signal-to-Noise Ratio (SNR) (vertical axis) and the Received Signal Strength Indication (RSSI) (horizontal axis) obtained from the second set of tests. The top graphic is relative to Node 2, and the bottom graphic is relative to Node 1. 107
References [1] N. Jazdi, “Cyber physical systems in the context of Industry 4.0,” in 2014 IEEE International Conference on Automation, Quality and Testing, Robotics . IEEE, may 2014, pp. 1–4. [Online]. Available: http://ieeexplore.ieee.org/document/6857843/ [2] C. Buratti, A. Conti, D. Dardari, and R. Verdone, “An Overview on Wireless Sensor Networks Technology and Evolution,” Sensors , vol. 9, pp. 6869–6896, 2009. [Online]. Available: www.mdpi.com/journal/sensors [3] U. Raza, P. Kulkarni, and M. Sooriyabandara, “Low Power Wide Area Networks: An Overview,” IEEE Communications Surveys & Tutorials , vol. 19, no. 2, pp. 855–873, 2017. [Online]. Available: http://ieeexplore.ieee.org/document/7815384/ [4] A. A. A. Alkhatib, “A Review on Forest Fire Detection Techniques,” International Journal of Distributed Sensor Networks , vol. 10, no. 3, p. 597368, mar 2014. [Online]. Available: http://journals.sagepub.com/doi/10.1155/2014/597368 [5] S. Ornes, “Core Concept: The Internet of Things and the explosion of interconnectivity.” Proceedings of the National Academy of Sciences of the United States of America , vol. 113, no. 40, pp. 11 059–11 060, oct 2016. [Online]. Available: http://www.ncbi.nlm.nih.gov/pubmed/27702874http://www.pubmedcentral.nih. gov/articlerender.fcgi?artid=PMC5056067 [6] S. Madakam, R. Ramaswamy, and S. Tripathi, “Internet of Things (IoT): A Literature Review,” Journal of Computer and Communications , vol. 3, no. 3, pp. 164–173, 2015. [Online]. Available: http://dx.doi.org/10.4236/jcc.2015.35021 [7] S. P. Urbanski, W. M. Hao, and S. Baker, “Chemical Composition of Wildland Fire Emissions,” Developments in Environmental Science , vol. 8. [Online]. Available: https://www.fs.fed.us/rm/pubs_other/rmrs_2009_urbanski_s001.pdf 109
110 REFERENCES [8] Edward A. Johnson and Kiyoko Miyanishi, Forest Fires: Behavior and Ecological Effects . Elsevier, 2001. [Online]. Available: https://books.google.co.in/books/about/Forest_Fires. html?id=MXa8npbbahQC&pgis=1&hl=pt-PT [9] “Tudo o que se sabe sobre “o pior dia de incêndios do ano” – Observador.” [Online]. Available: http://observador.pt/2017/10/16/ tudo-o-que-se-sabe-sobre-o-pior-dia-de-incendios-do-ano/ [Accessed: 2017-11-28] [10] “Relatório da Comissão Técnica Independente,” 2017. [Online]. Available: https:// www.parlamento.pt/Paginas/2017/outubro/CT-Independente-analise-incendios.aspx [Accessed: 2017-10-24] [11] International Electrotechnical Commission, “Internet of Things: Wireless Sensor Networks.” [Online]. Available: http://www.iec.ch/whitepaper/pdf/iecWP-internetofthings-LR-en.pdf [12] S. Kumar and D. Shepherd, “SensIT: Sensor information technology for the warfighter,” Proc. 4th Int. Conf. on Information Fusion , no. January 2001, pp. 1–7, 2001. [Online]. Available: http://isif.org/fusion/proceedings/fusion01CD/fusion/searchengine/pdf/TuC11.pdf [13] E. Cayirci, R. Govindan, T. Znati, and M. Srivastava, “Wireless sensor networks,” Computer Networks , vol. 43, no. 4, pp. 417–419, nov 2003. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S1389128603003517?via%3Dihub [14] S. Kumar Gupta and P. Sinha, “Overview of Wireless Sensor Network: A Survey,” International Journal of Advanced Research in Computer and Communication Engineering , vol. 3, no. 1, 2014. [Online]. Available: https://ijarcce.com/wp-content/uploads/2012/ 03/IJARCCE7D__a_sanjeev_overview.pdf [15] R. Baheti and H. Gill, Cyber-Physical Systems: From Theory to Practice , 2011, no. 1. [16] R. R. Rajkumar, I. Lee, L. Sha, and J. Stankovic, “Cyber-physical systems,” in Proceedings of the 47th Design Automation Conference on - DAC ’10 . New York, New York, USA: ACM Press, 2010, p. 731. [Online]. Available: http://portal.acm.org/citation.cfm?doid= 1837274.1837461
REFERENCES 111 [17] R. Poovendran, “Cyber–Physical Systems: Close Encounters Between Two Parallel Worlds [Point of View],” Proceedings of the IEEE , vol. 98, no. 8, pp. 1363–1366, aug 2010. [Online]. Available: http://ieeexplore.ieee.org/document/5512708/ [18] A. Hellinger and H. Seeger, Cyber-Physical Systems - Driving force for innovation in mobility, health, energy and production , acatech – National Academy of Science and Engineering, Ed., 2011. [19] “LPWAN - The Benefits of LPWAN Technology vs. Other IoT Connectivity Options | IoT For All.” [Online]. Available: https://www.iotforall.com/ lpwan-benefits-vs-iot-connectivity-options/ [Accessed: 2017-09-11] [20] “I-ON Communications Blog: LPWA (Low Power Wide Area), the core of IoT.” [Online]. Available: https://ioncomm.blogspot.com/2016/10/lpwa-low-power-wide-area-core-of-iot. html [Accessed: 2017-12-13] [21] Ericsson AB, “5G radio access – capabilities and technologies.” [Online]. Available: https://www.ericsson.com/assets/local/publications/white-papers/wp-5g.pdf [22] “SigFox Vs. LoRa: A Comparison Between Technologies & Business Models.” [Online]. Available: https://www.link-labs.com/blog/sigfox-vs-lora [Accessed: 2018-08-08] [23] “How Sigfox plans to spread its low-power IoT network across the U.S.” [Online]. Available: https://www.networkworld.com/article/3029253/internet-of-things/ how-sigfox-plans-to-spread-its-low-power-iot-network-across-the-u-s.html [Accessed: 2017- 09-14] [24] “Sigfox Technology Overview | Sigfox.” [Online]. Available: https://www.sigfox.com/en/ sigfox-iot-technology-overview [Accessed: 2017-09-11] [25] Semtech, “Smart Cities Transformed.” [Online]. Available: https://www.semtech.com/ lora/resources/lora-white-papers [26] “About LoRaWAN™ | LoRa Alliance™.” [Online]. Available: https://lora-alliance.org/ about-lorawan [Accessed: 2018-08-10]
112 REFERENCES [27] R. S. Sinha, Y. Wei, and S.-H. Hwang, “A survey on LPWA technology: LoRa and NB-IoT,” ICT Express , vol. 3, no. 1, pp. 14–21, mar 2017. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S2405959517300061?via%3Dihub [28] “Network Architecture | The Things Network.” [Online]. Available: https://www. thethingsnetwork.org/docs/network/architecture.html [Accessed: 2018-09-10] [29] “What is LoRaWAN ? - ResIOT LoRaWAN Network Server and IoT Platform.” [Online]. Available: https://www.resiot.io/en/what-is-lorawan/ [Accessed: 2018-08-23] [30] “lora-alliance | Technology.” [Online]. Available: https://www.lora-alliance.org/technology [Accessed: 2017-09-07] [31] LoRa Alliance, “LoRaWAN™ 1.1 Specification,” LoRaWAN™ 1.1 Specification , no. 2017, p. 97331, 2017. [Online]. Available: https://lora-alliance.org/sites/default/files/2018-04/ lorawantm_specification_-v1.1.pdf [32] “Adaptive Data Rate | The Things Network.” [Online]. Available: https://www. thethingsnetwork.org/docs/lorawan/adr.html [Accessed: 2018-09-04] [33] “A technical overview of LoRa® and LoRaWAN ™,” 2015. [Online]. Available: https://docs.wixstatic.com/ugd/eccc1a_ed71ea1cd969417493c74e4a13c55685.pdf [34] “RPMA | u-blox.” [Online]. Available: https://www.u-blox.com/en/rpma [Accessed: 2017-09-18] [35] “RPMA — Overview of Ingenu’s LPWAN Technology – IoT For All – Medium.” [Online]. Available: https://medium.com/iotforall/ rpma-overview-of-ingenus-lpwan-technology-3d72c47f0461 [Accessed: 2017-09-18] [36] “Narrowband – Internet of Things (NB-IoT) | Internet of Things.” [Online]. Available: https://www.gsma.com/iot/narrow-band-internet-of-things-nb-iot/ [Accessed: 2017-11- 24] [37] Y. D. Beyene, R. Jantti, O. Tirkkonen, K. Ruttik, S. Iraji, A. Larmo, T. Tirronen, Torsner, and Johan, “NB-IoT Technology Overview and Experience from Cloud-RAN Implementation,”
REFERENCES 113 IEEE Wireless Communications , vol. 24, no. 3, pp. 26–32, 2017. [Online]. Available: http://ieeexplore.ieee.org/document/7955908/ [38] Semtech Corporation, “SX1276/77/78/79 Datasheet,” no. August, 2016. [Online]. Available: https://www.semtech.com/uploads/documents/DS_SX1276-7-8-9_W_APP_ V5.pdf [39] LoRa Alliance, “LoRa Specification.” [Online]. Available: https://lora-alliance.org/sites/ default/files/2018-05/2015_-_lorawan_specification_1r0_611_1.pdf [40] “Spreading Factor (SF), Time on Air and (Adaptive) Data Rate | Zakelijk KPN Forum.” [Online]. Available: https://zakelijkforum.kpn.com/lora-forum-16/ spreading-factor-sf-time-on-air-and-adaptive-data-rate-10908 [Accessed: 2019-01-02] [41] “Nitrogen dioxide (NO2) - Air quality fact sheet.” [Online]. Available: http: //www.environment.gov.au/protection/publications/factsheet-nitrogen-dioxide-no2 [Accessed: 2018-04-16] [42] NASA, “Nitrogen Dioxide.” [Online]. Available: https://eospso.gsfc.nasa.gov/sites/default/ files/publications/NO2poster_508.pdf [43] “Sources of Nitrogen Oxides - Chemistry LibreTexts.” [Online]. Available: https://chem.libretexts.org/Core/Environmental_Chemistry/Acid_Rain/Sources_ of_Nitrogen_Oxides [Accessed: 2018-04-16] [44] “Fire & Carbon Monoxide,” 2018. [Online]. Available: https://earthobservatory.nasa.gov/ global-maps/MOD14A1_M_FIRE/MOP_CO_M [Accessed: 2018-10-24] [45] “Carbon dioxide.” [Online]. Available: https://www.sciencedaily.com/terms/carbon_ dioxide.htm [Accessed: 2018-10-26] [46] B. Kleven, “A Summary of Gas Detection,” no. 520, 2016. [Online]. Available: https://www.goacd.com/downloads/documentation/gas-det-summary.pdf [47] G. Korotcenkov, Handbook of Gas Sensor Materials , ser. Integrated Analytical Systems. New York, NY: Springer New York, 2014, vol. 1. [Online]. Available: http://link.springer. com/10.1007/978-1-4614-7388-6
114 REFERENCES [48] “Gas Detection Handbook.” [Online]. Available: http://www.gilsoneng.com/reference/ gasdetectionhandbook.pdf [49] “Measuring air pollution with low-cost sensors.” [Online]. Available: http://ec.europa.eu/ environment/air/pdf/Brochurelower-costsensors.pdf [50] P. J. D. Peterson, A. Aujla, K. H. Grant, A. G. Brundle, M. R. Thompson, J. V. Hey, and R. J. Leigh, “Practical Use of Metal Oxide Semiconductor Gas Sensors for Measuring Nitrogen Dioxide and Ozone in Urban Environments,” 2017. [Online]. Available: https://pdfs.semanticscholar.org/55f5/f8e0a0b425f55b9f53eaff881da0f6babbf6.pdf [51] G. F. Fine, L. M. Cavanagh, A. Afonja, and R. Binions, “Metal Oxide Semi-Conductor Gas Sensors in Environmental Monitoring,” Sensors , vol. 10, no. 6, pp. 5469–5502, jun 2010. [Online]. Available: http://www.mdpi.com/1424-8220/10/6/5469 [52] M. Aleixandre and M. Gerboles, “Review of Small Commercial Sensors for Indicative Monitoring of Ambient Gas.” [Online]. Available: http://www.aidic.it/cet/12/30/029.pdf [53] X. Liu, S. Cheng, H. Liu, S. Hu, D. Zhang, and H. Ning, “A Survey on Gas Sensing Technology,” Sensors , vol. 12, no. 7, pp. 9635–9665, jul 2012. [Online]. Available: http://www.mdpi.com/1424-8220/12/7/9635 [54] “Types of Temperature Sensors | DigiKey.” [Online]. Available: https://www.digikey.pt/ en/blog/types-of-temperature-sensors [Accessed: 2018-10-29] [55] “4 Most Common Types of Temperature Sensor | Ametherm.” [Online]. Available: https: //www.ametherm.com/blog/thermistors/temperature-sensor-types [Accessed: 2018-10- 29] [56] “Absolute vs. Relative Humidity - What’s the Difference?” [Online]. Available: http://info. zehnderamerica.com/blog/absolute-vs.-relative-humidity-whats-the-difference [Accessed: 2018-11-04] [57] “Choosing a Humidity Sensor: A Review of Three Technologies | Sensors Magazine.” [Online]. Available: https://www.sensorsmag.com/components/ choosing-a-humidity-sensor-a-review-three-technologies [Accessed: 2018-10-31]