Abstract
Energy efficiency is the key requirement to maximize sensor node lifetime. Sensor nodes are typically powered by a battery source that has finite lifetime. Most Internet of Thing (IoT) applications require sensor nodes to operate reliably for an extended period of time. To design an autonomous sensor node, it is important to model its energy consumption for different tasks. Each task consumes a power consumption amount for a period of time. To optimize the consumed energy of the sensor node and have long communication range, Low Power Wide Area Network technology is considered. This paper describes an energy consumption model based on LoRa and LoRaWAN, which allows estimating the consumed power of each sensor node element. The definition of the different node units is first introduced. Then, a full energy model for communicating sensors is proposed. This model can be used to compare different LoRaWAN modes to find the best sensor node design to achieve its energy autonomy.
Keywords: communicating sensors, energy consumption, autonomy constraint, LoRa, LoRaWAN, energy optimization
1. Introduction
Wireless Sensor nodes enable a wide range of applications, such as infrastructure security, environment monitoring, event detection, etc. [1]. Such applications have the purpose of collecting information about a given phenomena or event. These sensor nodes are generally deployed in harsh and inaccessible environments. For these reasons, sensor nodes are supposed to operate over long time periods without human intervention [1,2].
Modeling of energy consumption is an important consideration in the design of communicating sensors for monitoring a specific target application. Communicating sensors should perform the following tasks for most applications [1,3]: sense events, local information processing of sensed events and packet transmission to the access point [3,4]. Each task consumes a power consumption amount during a given time duration. Therefore, an accurate energy consumption model of the sensor node is essential to estimate the sensor lifetime [5]. This energy model allows optimizing the power consumption of the sensor node.
The proposed energy model is based on LoRa and LoRaWAN technologies. The LoRa system operates at the ISM frequency bands, which makes it an attractive solution for the Internet of Things and Machine to Machine (M2M) systems [6,7]. Its low power associated to the long range communication pushes LoRa to the top of the LPWAN technologies. Due to its unique modulation, LoRa is a very versatile technology that can be adapted to different environment types and application classes [8].
In this paper, we focus on the LoRaWAN protocol which was developed by LoRa Alliance to serve IoT applications. The LoRaWAN characteristics have a great influence in determining the battery lifetime of the sensor node [9,10]. In fact, using LoRaWAN technology can optimize the energy consumption by adapting its principal parameters.
The goal of this work is to propose an energy consumption model for sensor nodes using LoRa modulation and LoRaWAN protocol. This model is evaluated using different LoRaWAN modes. Besides, we study the impact of LoRaWAN parameters such as acknowledged transmission, spreading factor, coding rate, payload size and communication range on the sensor node consumption.
The rest of the paper is organized as follows. Section 2 presents related works. The wireless sensor design is described in Section 3. Section 4 depicts our energy consumption model. The LoRa modulation technique and the LoRaWAN characteristics are exposed in Section 5. Numerical results are explained in Section 6. Finally, conclusion and future works are given in Section 7.
2. Related Works and Contributions
LoRa and LoRaWAN technologies are relatively recent standards [11]. Most existing research based on LoRa and LoRaWAN has focused on features such as delay, range, throughput and network capacity [8,11,12,13]. Since the LoRa modulation is deployed for sensor applications, several papers evaluated this new technology with respect to its energy consumption.
Driven by the challenges of energy consumption of wireless sensor applications, many recent works have focused on the power dissipation of communicating sensors. Terrasson, et al. present an energy model for Ultra-Low Power sensor nodes in [14,15]. In these papers, the authors described the modeling of a sensor node dedicated to wireless sensor network applications. However, the RF module used in this study was the CC1100 module (a short range device) which did not include the LoRa technology. An other energy estimation model is presented in [16], The goal of this work is to obtain a low power consumption of sensor nodes. To save power, Mare S. et al. have concluded that the communication module and the microcontroller must be in idle state as long as possible when they are not active. This work proposes interesting results, but LoRa and LoRaWAN technologies are not integrated into this study. Phui, et al. proposed a comparison of LoRaWAN classes and their power consumption in [17]. The objective of this study is to offer an experimental comparison of LoRaWAN classes to verify the published current levels of different operating modes in LoRa datasheets. The measurement results allow to estimate the lifetime of end-node devices. However, in this paper, the authors did not study the effect of different LoRaWAN parameters such as coding rate, communication range and transmission power level on the total consumed energy.
Many other studies provide the power consumption of sensor nodes based on LoRa/LoRaWAN. Most of the current values were obtained from the datasheet or by empirical means [18,19,20], without developing an energy model that can estimate and optimize the energy consumption of the wireless sensors. Casals, et al. developed current models that allow the characterization of LoRaWAN devices lifetime and energy cost in [21]. The proposed models were very important and derived from measurement results using a currently prevalent LoRaWAN platform. However, Casals, et al. did not include the energy consumption of the processing and the sensor units. In our paper, we have modeled these units for an application scenario of connected sensor. Another major difference is that we have illustrated our energy model with optimization of LoRaWAN parameters such as the spreading factor SF, the coding rate CR, the bandwidth BW, the payload size and the communication range. Optimizing these parameters is very important to reduce the energy consumption of the sensor node.
The previous works were proposed to estimate the amount of energy consumption by a sensor node. Some of these studies have not included LoRa technology into their energy models, so they used different RF transceivers which are mainly dedicated to short range communication. Other works did not study the energy optimization of sensor nodes. In fact, optimizing LoRa and LoRaWAN parameters are very interesting to reduce the energy consumption by the communicating sensor.
To estimate and optimize the consumed energy by the sensor node, we propose a full energy model based on LoRa/LoRaWAN technologies. This model is based on LoRaWAN Class A, which is the most energy efficient class in the protocol. The proposed model takes into account the modeling of the sensor node units and especially the processing and the sensor units using a real IoT application. Then, different LoRaWAN transmission modes are studied to choose the best mode that can optimize energy consumption. Besides, a detailed optimization study of LoRa/LoRaWAN parameters such as spreading factor, coding rate, bandwidth, communication range and transmission power is presented to maximize the sensor lifetime. The energy model takes into account the transmission acknowledgment and its energy consumption cost using different LoRaWAN scenarios.
3. Sensor Node Design
The proposed node model is depicted in Figure 1. The sensor node can transmit data to an access point using the LoRa/LoRaWAN radio module. To carry out its different operations, the sensor needs an embedded energy source [22]. This source is a battery in this study. In this paper, we consider a connected sensor to measure the acceleration values. Internal memory integrated into the microcontroller is enough for this type of application and we don’t consider external memory.
The three main units of the sensor are the sensor unit, the processing unit and the radio module. Each block is briefly described in the following paragraphs.
3.1. Sensor Unit
The sensor unit can detect and respond to different inputs from the environment. These specific inputs can be light, heat, pressure, acceleration, etc. The input signal is generally an analog signal that is converted to digital form with an Analog to Digital Converter (ADC). The ADC unit is integrated into the sensor unit in this study. Both sensing and conversion processes take time and consume power [11].
3.2. Processing Unit
The processing manages all the resources utilized for the system operation [22]. This block is responsible for acquisition of output signal from the sensor unit, process the data after acquisition and communicate these data to the LoRa transceiver. Our embedded system is based on the STM32L073 microcontroller from ST Microelectronics [12]. This microcontroller can be optimized for very low power consumption.
3.3. Communicating Unit
Once the essential data processing is done, the information can be communicated to the access point [22]. Several standards have been proposed in the recent years for the IoT applications [11,12]. Among these, Low-Power Long-Range radio (LoRa and LoRaWAN) are gaining a lot of interest because of the high receiver sensitivity (down to −137 dBm). These technologies can reach long transmission distance (up to 20 km). In our design model, LoRa/LoRaWAN are implemented using the Semtech’s SX1272 transceiver.
4. Energy Consumption Model
To study the node autonomy, it is necessary to model each node block. In this section, we present different operating modes of sensor nodes. Then, the consumed energy of each mode is calculated and the consumption energy model is deduced.
4.1. Methodology and Assumptions
Figure 2 illustrates a possible working sequence of the sensor node and allows defining different operating modes, which are managed by the processing unit.
Our energy consumption model is based on the following assumptions:
As proposed in [1,4,14,15], the processing unit is in on-state along the working sequence. To optimize the consumed power by the MCU unit, this assumption can be improved to make the MCU unit in low-power modes during most of the activity cycle.
Each step of the sensor working sequence is characterized by a constant time duration.
The radio module transmits a packet of information at a fixed transmission power level.
No local storage of information is considered in this model but we assume a real-time transmission of all measured data.
4.2. Proposed Energy Model
This part defines the different operating modes of the communicating sensor. A first approach consists in considering all elements active during a fixed time duration and inactive for the rest of the time cycle. Most of the time, the wireless sensor is in sleep mode. The consumed energy in this mode could impact the power consumption amount of the sensor. Then, it is necessary to consider the sleep mode consumption in our model. In this study, all peripherals are powered at the same voltage level equal to 3.3 V, except the sensor unit which is powered at 2 V. The total consumed energy used by the communicating sensor for one cycle is given by Equation (1):
(1) |
where and are the dissipated energy by the node in the sleep mode and the total energy consumption during the active mode of the microcontroller, respectively. is expressed as:
(2) |
where and are the power consumption and the time duration in the sleep mode, respectively.
The total energy consumption is calculated as the sum of the energy consumption of each part of the sensor node. It is given by the following equation:
(3) |
where , , , , and are, respectively, the consumed energies in the system wake-up, the data measurement, the microcontroller processing, the wake-up of the LoRa transceiver, the transmission mode and the reception mode. Then, before doing measurements, the wake-up of the sensor node is managed by the processing unit. The consumed energy during the wake-up duration is given by:
(4) |
where and are the consumed power by the microcontroller (which depends on the microcontroller frequency ) and the wake-up duration, respectively.
After the wake-up time, the sensor realizes data measurements. Equation (5) presents the amount of dissipated energy during this phase:
(5) |
where and are the consumed power and the corresponding time duration of measurements, respectively.
After the measurement step, the microcontroller proceeds to data processing. The time duration depends on microcontroller operating frequency and on the number of instructions (). In Equation (6), we calculate the consumed energy by the processing unit (we assume one instruction/clock period):
(6) |
Then, the consumed energy during the transceiver wake-up is given by:
(7) |
where is the consumed power during the wake-up of the transceiver. After that, the consumed energy by the transmit mode is expressed as:
(8) |
where is the dissipated power by the transmit mode and is its time duration, it is given by Equation (9):
(9) |
where and are, respectively, the number of transmitted bits and the duration of one bit transmission.
In the case of acknowledgment transmission, the consumed power by the sensor node denoted is given by the following equation:
(10) |
where is the dissipated power by the reception mode and is the corresponding time duration.
Moreover, the consumed energy by the microcontroller in on-state is given in Equation (11):
(11) |
where the microcontroller time duration depends on the overall working time in the different modes. It can be written as the following:
(12) |
After developing our energy model, the next section depicts the characteristic of the communication link between the sensor node and the gateway, using the LoRa/LoRaWAN technologies.
5. LoRa and LoRaWAN Technologies
In this section, we discuss several LoRa/LoRaWAN characteristics. We start by introducing the overview of these technologies. Then, the different LoRa/LoRaWAN basics are presented.
5.1. LoRa and LoRaWAN Overview
The LoRa is a long range technology with low power consumption that uses the ISM band (the unlicensed radio spectrum in the industrial, scientific and medical radio band). The objectives of this technology is to increase sensor battery lifetime and reduce the device cost [23]. LoRa uses the CSS modulation (Chirp Spread Spectrum) to maintain low power characteristics for the benefit of increasing communication range [9]. The LoRaWAN is a wireless communication protocol developed by LoRa Alliance to serve for different challenges faced with long range communication in IoT applications [9].
Figure 3a depicts the LoRaWAN network architecture. The End-devices (different sensor types) communicate to the gateway using LoRa/LoRaWAN RF interface. The gateway transmits frames to the server through a non-LoRaWAN network such as Ethernet, 3G/4G, Wi-Fi, etc. [24]. Figure 3b shows the LoRaWAN communication stack. As can be seen, the physical layer defines the ISM band (868 Mhz in Europe). In this paper, we focus on LoRa modulation without considering the Frequency Shift Keying (FSK) modulation because the LoRa modulation is more adapted to long range communication with low power consumption as indicated in [25]. The CSS modulation has been implemented by Semtech in the LoRa modulation layer. Then, the LoRa Alliance has defined the LoRaWAN communication protocol specifications in the protocol layer [26].
Taking into account the application needs, The LoRaWAN specification defines three classes available for different power usage strategies [26]. These classes are illustrated in Figure 4 and can be briefly described as follows:
Class A: In this case, sensor can initiate an uplink transmission based on their own needs. This class allows bi-directional communication, each uplink transmission is followed by two short downlink messages. Class A has the lowest power consumption [26,27].
Class B: The gateway initiates the communication by transmitting downlink messages (ping slots), so the end-device can receive additional windows at scheduled fixed time-intervals. A periodic beacon from the gateway is required for synchronization. This class has the medium power consumption [27,28].
Class C: End-devices of this class have nearly continuously open receive windows, which can only be closed when transmitting. Class C end-devices use more power to operate than Class A or B but they offer the lowest latency for server to end-device communication [27].
Table 1 summarizes the LoRaWAN class characteristics. As mentioned before, all transactions are started by the sensor in the case of Class A, whereas the network server can only transmit two downlink slots [17]. Then, the radio receiver stays active until the downlink frame is demodulated. If a frame was detected and subsequently demodulated during the first receive window and the frame was intended for this end-device after address and MIC (message integrity code) checks, the end-device does not open the second receive window. This class have the minimum impact on the battery lifetime of the sensor. For all of these reasons, LoRaWAN Class A will be studied in the rest of this paper.
Table 1.
Class | Brief Description | Power Consumption |
---|---|---|
Class A | Sensor initiate communication, downlink after transmission | Most energy efficient |
Class B | Slotted communication synchronized with beacon frames | Efficient with controlled downlink |
Class C | Devices listen continuously, downlink without latency. | high power consumption |
5.2. LoRa Modulation Technique
5.2.1. LoRa basics
The LoRa radio has different configuration parameters: the carrier frequency, the spreading factor, the bandwidth and the coding rate [9,10]. The combination of these parameters provides different energy values and transmission ranges:
Carrier Frequency (CF): The CF is the center frequency used for the transmission band. For the SX1272 transceiver, CF is in the range of 863 MHz to 870 MHz in Europe.
Spreading Factor (SF): The SF is the number of chips per symbol. Its value is an integer number between 6 and 12. The greater value of SF, the more capability the receiver has to move away the noise from the signal. Thus, the greater value is taken, the more time is taken to send a packet.
Bandwidth (BW): The BW represents the range of frequencies in the transmission band [16]. It can only be chosen among three options: 125 kHz, 250 kHz or 500 kHz. If a fast transmission is required, a 500 kHz value is better. However, if a long range is needed, a 125 kHz value must be configured.
Coding Rate (CR): The coding rate expression is , n is from 1 to 4. It denotes that every four useful bits are encoded by 5, 6, 7 or 8 transmission bits. The smaller the coding rate is, the higher the time on air is to transmit data.
The nominal bit-rate (in bits per second), is obtained taking into account these parameters. The expression of the bit-rate is given in Equation (13):
(13) |
Table 2 presents the chirp packet length based on the SF parameter. Modifying this parameter provides a trade-off between increasing the communication distance and decreasing the data transfer rate. Each symbol is spread through a chirp code whose length is . The receiver divides the received code into length blocks which can be then decoded.
Table 2.
Spreading Factor: SF | Chirp Code Length (Bit) |
---|---|
7 | 128 |
8 | 256 |
9 | 512 |
10 | 1024 |
11 | 2048 |
12 | 4096 |
5.2.2. LoRa Packet Structure
This part presents the LoRa frame definition. This frame starts with a preamble which is used for the synchronization between the receiver and the transmitter [9,10,11]. After the preamble, an optional header carries the size of the payload and the information about the LoRa configuration. It is noted that the header is always encoded with a . The payload is encoded with a variable CR. An optional Cyclic Redundancy Check (CRC) is sent at the end of the frame. Figure 5 depicts the LoRa frame content.
To calculate the time on air (or packet duration), we start with the calculation of the payload symbol [16]. For a given payload noted (in bytes), a spreading factor SF and a coding rate CR, the number of symbols used to transmit the payload can be calculated by Equation (14):
(14) |
where ceil indicates the ceiling function, ; with when the header is enabled and when no header is present and ; with when the low data rate optimization is enabled and for the other case. Then, the time on air is the sum of the preamble and the payload duration:
(15) |
where , and are, respectively, the packet duration, the preamble duration and the payload duration. The preamble duration is expressed as:
(16) |
where is the preamble symbol number and is the symbol period. It is defined as the time taken to send chips. Then, recalling that the bandwidth is equal to the chip rate, the symbol period is given by Equation (17):
(17) |
The payload duration is defined in Equation (18):
(18) |
We introduce the energy per useful bit in this paper, which is an important metric to evaluate the power consumption of the sensor node. The expression is given in Equation (19):
(19) |
where , and the payload size, the total consumed energy and the total consumed power which depends on transmission power. Using Equations (15), (16) and (18), the energy per useful bit can be rewritten in the following equation:
(20) |
Replacing with its expression in Equation (17), we can write as a function of the spreading factor . As can be seen, the is an increasing function according to :
(21) |
Table 3 presents different transmission power levels and corresponding current consumption that can be used with the LoRa SX1272 transceiver [29].
Table 3.
Transmission Power (dBm) | Power Consumption (mW) |
---|---|
20 | 412.5 |
17 | 297 |
13 | 92.4 |
7 | 95.4 |
5.2.3. Acknowledgment Transmission, Communication Range and Sensitivity
As presented in Figure 6, following each uplink transmission, the sensor node opens two short receive slots in the Class A. The first message uses the same frequency channel as the uplink frame (the RX Delay 1 is equal to 1 s for the SX1272 LoRa transceiver). The second receive window uses a fixed configurable frequency and data rate (the RX Delay 2 is equal to 2 s for the SX1272) [30]. These RX messages can be considered as a transmission acknowledgement (ACK). The internal structure of the ACK message is depicted in Figure 6. The ACK packet is ending with the Message Integrity Code (MIC).
To calculate the communication range of LoRaWAN system, different statements can be found reaching from multiple kilometers to a maximum range of 15 km [27]. The communication range noted d can be estimated using the path-loss expression:
(22) |
where f is the LoRa frequency, c is the light speed and n is the path-loss exponent, it can be equal to 2 (for free space), 3 (for urban area) and 6 (for high obstruction). Then, the link budget for the transmission path is expressed as:
(23) |
where and are, respectively, the transmitted power and the receiver sensitivity, which depends on spreading factor and bandwidth. The sensitivity of the receiver is defined by the minimum received power to detect the signal. This sensitivity is obtained for a minimum Signal to Noise Ratio (SNR) equal to , where is the energy per bit and is the noise power spectral density. Define equal to this minimum:
(24) |
We have where is the received power and is the bit duration. The relation between and is . Assuming that , Equation (24) can be written:
(25) |
Then, Equation (25) can be rewritten as the following:
(26) |
Using the datasheet of the SX1272 transceiver [29], the receiver sensitivity can be defined in the following equation:
(27) |
where NF, k, T and are the receiver architecture noise figure, the Kelvin constant, the temperature and the Signal to Noise Ratio, respectively. Comparing Equations (26) and (27), the is given in Equation (28):
(28) |
where equals 15 dB for the SX1272 transceiver [29].
Then, to have the estimation value of maximum communication range of LoRa link, we assume that there are no antenna gains and set the path loss equal to . Equation (29) depicts the expression:
(29) |
Using Equations (22), (23), and (27)–(29), the LoRaWAN range noted d can be estimated as follow:
(30) |
The LoRaWAN range is an increasing function according to SF (meaning that we should use high SF values to reach long LoRaWAN range).
6. Numerical Results and Discussions
In this section, we start by presenting a use case of our energy consumption model. Then, simulation results of LoRa/LoRaWAN are presented. We finish by discussing the performance of our energy model using different LoRaWAN modes.
6.1. Application Case
To illustrate the application of our energy model, the considered use case is the monitoring of high voltage electrical network pylons. The purpose of this application is to measure the pylon movement. The system composition is depicted in Figure 7. The whole hardware/software system is powered by a battery. The sensor unit is composed of an accelerometer which measures the pylon deviation and sends data measurements to the processing unit. The processing unit will retrieve the acceleration measurements and it will do the necessary treatment. Then, the LoRa transceiver ensures the data transmission to the corresponding gateway.
Table 4 depicts the main parameters of this application.
Table 4.
Parameters | Values |
---|---|
Useful bits to transmit | 32 bits |
Battery capacity | 950 mAh |
Self-discharge current of the battery | mA |
Transmission power | 13 dBm |
Supply voltage (MCU, transceiver) | 3.3 V |
Supply voltage (Sensor unit) | 2 V |
In summary, the communicating sensor realizes periodical measurements of the acceleration. After the sensing phase, data frames are sent to the access point using LoRa technology. Then, energy consumption of LoRa Class A will be discussed taking into account the acknowledgment transmission.
6.2. Modeling of LoRa/LoRaWAN
This section focuses on the LoRa modulation scheme and the LoRaWAN protocol taking into account the variation effect of the spreading factor, the coding rate and the bandwidth, which are critical parameters permitting a trade-off between energy consumption and nominal data rate [22]. Table 5 summarizes the characteristics of three LoRaWAN modes that can be used with the SX1272 transceiver.
Table 5.
Modes | Characteristics | Explanations |
---|---|---|
Mode 1 | kHz, , | Largest distance mode (max range and slow data rate) |
Mode 2 | kHz, , | Intermediate mode |
Mode 3 | kHz, , | Minimum range, high data rate and minimum battery impact |
6.2.1. Effect of SF and CR on Consumed Energy
Using Equation (15), Figure 8 displays the time on air as a function of payload size at different SF and CR values. The bandwidth channel is set to 500 kHz. When the SF is high, the time on air increases (Figure 8a), which means that the sensor node consumes more power to transmit data. The effect of CR on the time on air is depicted in Figure 8b. We note that increasing the number of encoding bits causes an increase of packet transmission, which allows consuming more power by the radio module.
Figure 9a presents the consumed energy per useful bit as a function of the payload at different spreading factors (SF). Using Equation (21), it is noted that this energy decreases with the increase of the number of useful bits. This result is shown in Figure 9b, which depicts the evolution of the energy per useful bit as a function of SF for constant payload size (equal to 10 bits). As mentioned before, the greater value of SF, the more time is taken to send a packet, so the more consumed energy is needed to transmit data.
The effect of the coding rate (CR) on the energy per useful bit is depicted in Figure 10. When the coding rate decreases, the time on air and the consumed energy are increased.
The results presented in Figure 8, Figure 9 and Figure 10 show that optimizing the LoRa parameters such as SF, CR and payload size is a key element to reduce the consumed energy by the sensor node.
6.2.2. LoRaWAN Communication Range
Referring to Equation (30), Figure 11 presents the required output power as a function of the LoRaWAN communication range at different spreading factor SF (assuming a path-loss exponent equal to 3 for urban area). Using LoRaWAN protocol, the theoretical maximum range that can be achieved at determined power level is obtained with SF equal to 12. In fact, with SF = 12, the sensor node needs 10 dBm to transmit data for 5 km in urban area with little obstructions. However, the sensor needs 25 dBm to transmit the same data for the same distance with SF = 7.
The maximum LoRaWAN range as a function of SF at different transmission powers is depicted in Figure 12 using Equation (30). As we can see, if the SF increases, the LoRaWAN range increases. For a constant SF value, the LoRaWAN range increases with increasing transmission power. In fact, to reach a communication range of 4 km with SF equal to 9, we can use both 17 and 20 dBm. However, for high communication ranges (greater than 10 km), the transmission power must be fixed 20 dBm with SF equals 12. These observations are very important for the conception of our energy model: by setting a LoRaWAN transmission distance and using results in Figure 11 and Figure 12, we can have an idea about the optimal output power and spreading factor to use for our application, which help to minimize the energy consumption by the sensor node.
Using Equations (21) and (30), Figure 13 presents the energy per useful bit evolution as a function of maximum range at different payload sizes for both 7 dBm and 13 dBm. The maximum range is reached with SF equals to 12 for both cases (we can reach 4 km with 7 dBm in Figure 13a and 6.1 km with 13 dBm in Figure 13b). It can be noticed that, if the payload size increases, the energy per useful bit decreases for high SF values (for low SF values, the payload variation does not have important effect on energy per useful bit). To reach 3 km with payload size equal to 4 bytes, we must configure SF at 11 with transmission power 7 dBm which consumes 0.21 mJ/bit. However, using transmission power 13 dBm, we can use SF equals 9 to reach the same distance 3 km with energy consumption of only 0.08 mJ/bit.
In summary, using results found in Figure 11, Figure 12 and Figure 13, we note that there is a trade-off among the LoRaWAN communication range, the spreading factor and the transmission power. In this case, the increase of the transmission power is more interesting in terms of consumed energy than the increase of the spreading factor. Then, we can refer to these results to find the best LoRaWAN parameter values for our application and to optimize the energy consumption of the sensor node.
6.3. Full Communicating Sensor-Energy Consumption Results
In this part, we will evaluate the performance of our energy consumption model using LoRaWAN mode 3 (Table 5) because the provided range is enough for our application and this allows saving the use of the battery. For that, the following scenario is proposed:
The sensor node realizes measurements of the acceleration and transmits acceleration value every 30 s. It is noted that the microcontroller operating frequency is equal to 4 MHz in this study. Table 6 shows the power and time parameters of the model. These parameters are given in the BMA220, STM32L073 and SX1272 datasheets [29,32,33].
Table 6.
Task | Time Duration (ms) | Consumed Power (mW) |
---|---|---|
Sensor (BMA220) | 25 | 10.5 |
Data transmission (SX1272) | 6.5 | 92.4 |
MCU STM32L073 (4 MHz) | 33.5 | 1.8 |
Figure 14 depicts possible scenarios of the sensor node based on LoRaWAN Class A. The first scenario is to transmit data to the gateway without receiving both RX1 and RX2. The second one is to transmit data and receive RX1 without receiving RX2. The third scenario is to transmit data and demodulate RX1 which contains transmission error, so that the node must demodulate RX2.
6.3.1. Consumed Energy: Scenario 1
Figure 15 presents the power consumption amount by each task of the communicating sensor. As indicated before, the main energy consumers are the microcontroller unit ( = 0.061 mJ), the sensor unit ( = 0.26 mJ) and the RF unit ( = 0.59 mJ). It is noted that the transceiver part is the main energy consumer in the sensor node. In this case, the LoRa frame must be retransmitted by the sensor node. As indicated in [34], if the downlink message is lost for any reason, the LoRa specifications recommends to transmit packet up to eight times.
Figure 16 depicts the battery life as a function of measurement period, with a capacity of 950 mAh and a supply voltage of 3.3 V, the sensor node autonomy is estimated at 5 years, 1 month and 24 days (61.8 months) when the measurement period is equal to 30 s.
6.3.2. Consumed Energy: Scenario 2
In this scenario, we suppose that the sensor node transmits data to the gateway, then it receives the first acknowledgment RX1 to confirm data transmission (in this case, the sensor node will not demodulate the second acknowledgment RX2). The energy consumption by the communicating sensor is given in Figure 17. As can be seen, the difference from Scenario 1 are the dissipated energy by the LoRa receiver ( = 0.27 mJ) and the consumed energy by the MCU unit.
Figure 18 presents the sensor node lifetime using the same battery characteristics (capacity equals 950 mAh and supply voltage of 3.3 V). The sensor node autonomy is estimated at 4 years, 6 months and 12 days (54.4 months) for the same measurement period (30 s), which is 7.4 months shorter than Scenario 1 (i.e., there is a loss equal to 12% of the battery life compared to Scenario 1).
6.3.3. Consumed Energy: Scenario 3
For this scenario, the communicating sensor transmits data to the gateway and receives the RX1 acknowledgment which contains transmission error for example. The sensor node must demodulate the RX2 acknowledgment to verify the transmission success (which means that it will consume more energy than Scenario 2). The dissipated energy by the communicating sensor is given in Figure 19. We remark that the consumed energy is tdouble that consumed by the LoRa receiver ( = 0.54 mJ).
The sensor node lifetime is depicted in Figure 20. The autonomy of the node is estimated at 4 years and 21 days (48.7 months) for this case (i.e, there is a loss equal to 22.2% of the battery life compared to Scenario 1).
6.3.4. Comparison between Proposed Scenarios
Table 7 presents comparison between the proposed scenarios. As we can see, the sensor node lifetime in Scenario 1 is higher than Scenarios 2 and 3. These results show the energy consumption cost of receiving downlink messages from the gateway.
Table 7.
Scenario | Characteristics | RF Energy Consumption (mJ) | Sensor Autonomy (Months) |
---|---|---|---|
Scenario 1 | TX; RX1 and RX2 not done | = 0.59; = 0 | 61.8 |
Scenario 2 | TX; RX1 done; RX2 not done | = 0.59; = 0.27 | 54.4 |
Scenario 3 | TX; RX1 not done; RX2 done | = 0.59; = 0.54 | 48.7 |
Equation (31) depicts the total consumed energy as a function of the probability of having Scenario 3 noted p:
(31) |
where and are the total consumed energies using Scenarios 2 and 3, respectively. Using results in Section 6.3.2 and Section 6.3.3, the sensor node autonomy as a function of probability p is given in Figure 21. We remark that the sensor node lifetime decreases from 54.4 months when p = 0 (which is the sensor node lifetime using Scenario 2) to 48.7 months when p =1 (the probability that Scenario 3 occurs).
In the ideal case (data transmission with acknowledgment reception and without transmission error), Scenario 2 is the most frequent one (meaning that the probability p is closed to 0). Thus, Scenario 2 is selected for the rest of this paper.
6.4. Effect of LoRaWAN Mode in Sensor Node Lifetime
Table 8 shows the effect of different LoRaWAN modes on the sensor node autonomy. As mentioned in Table 5, Mode 3 is the higher data rate with lower range which have the minimum battery impact (the sensor node autonomy can reach 4 years, 6 months and 12 days). However, Mode 1 gives the shortest battery life because of the high value of SF (the sensor node consumes a lot in this case).
Table 8.
Mode | Total Consumed Energy Per Transmission (mJ) | Sensor Node Autonomy (Month) |
---|---|---|
Mode 1 | 115 | 1.12 |
Mode 2 | 14.7 | 8.2 |
Mode 3 | 1.2 | 54.4 |
6.5. Effect of Microcontroller Frequency in Sensor Node Lifetime
To show the effect of the microcontroller operating frequency on the sensor node autonomy, we refer to Figure 22 (the voltage supply is set to 3.3 V) [33]. We note that the energy consumption of the node depends on the microcontroller speed (it increases with frequency). In fact, the higher the microcontroller frequency is, the lower the processing time is (meaning that the processing time decreases) which causes the decrease of the microcontroller time duration , but the higher the amount of the microcontroller power is. Consequently, the node autonomy decreases with increasing the MCU frequency.
7. Conclusions
Energy consumption is one of the most constraining requirements for design and implementation of communicating sensors. In this paper, we present an optimized energy model for sensor nodes using LoRa/LoRaWAN technologies. This model allows the analysis of different LoRaWAN modes and scenarios for a specific Internet of Things application based on LoRaWAN Class A. In fact, to evaluate the energy consumption of the sensor node, we proposed different LoRaWAN scenarios. We concluded that receiving a transmission acknowledgment consumes an energy amount which reduces the sensor node lifetime. Then, the proposed energy model was evaluated using different LoRaWAN modes: this mode must be optimized to minimize the dissipated energy by the communicating sensor.
The developed model also allows studying the impact of the hardware and the software choices into the node autonomy. We showed through numerical results that the consumed energy changes with different LoRa/LoRaWAN parameters such as spreading factor, coding rate, payload size and bandwidth. Optimizing these parameters is very important to reduce the energy consumption of the sensor node.
The microcontroller operating frequency plays important role in optimizing the sensor node lifetime. Increasing the microcontroller frequency has an effect on the consumed energy which reduces the sensor node autonomy.
Besides, we showed through the optimization study that there is a trade-off between the LoRaWAN communication range, the spreading factor and the transmission power. This optimization study is very interesting to choose and configure LoRa/LoRaWAN parameters. In fact, the increase of transmission power is more interesting in terms of consumed energy per useful bit than the increase of spreading factor.
Finally, to show the real application case of our energy model, we considered a connected sensor for IoT applications. A specific application is discussed in this paper which is the monitoring of high voltage electrical network pylons. Using the proposed energy model, the energy consumption of LoRaWAN Class A and the sensor node lifetime can be estimated taking into account an acknowledgment transmission.
In future works, this energy model could be used in power management algorithms for communicating sensor powered by energy harvesting sources in order to maximize the sensor node lifetime.
Acknowledgments
This work was funded by a resourcing project CEA Tech in the region of Pays de la Loire, in partnership with IETR laboratory, CEA Leti and Eolane. I would like to acknowledge the CEA project managers: David Moussaud and François Nepveu and the IETR members Marc Brunet and M. Guillaume Lirzin for their appreciative helps and supports.
Author Contributions
T.B. and J.-F.D. developed the energy model for the sensor node. T.B., J.-F.D. and J.-J.C. studied LoRa/LoRaWAN characteristics and developed corresponding results. R.J. and G.A. contributed to results evaluation. All authors participated to write and correct the paper.
Funding
This research received no external funding.
Conflicts of Interest
All authors declare no conflict of interest.
References
- 1.Terrassona G., Brianda R., Basrourb S., Arrijuriaa O. Energy Model for the Design of Ultra-Low Power Nodes for Wireless Sensor Networks. Procedia Chem. 2009;1:1195–1198. doi: 10.1016/j.proche.2009.07.298. [DOI] [Google Scholar]
- 2.Moises N.O., Arturo G., Mickael M., Andrzej D. Evaluating LoRa Energy Efficiency for Adaptive Networks: From Star to Mesh Topologies; Proceedings of the IEEE 13th International Conference on Wireless and Mobile Computing, Networking and Communications (WiMob); Rome, Italy. 9–11 October 2017. [Google Scholar]
- 3.Culler D., Estrin D., Srivastava M. Overview of Sensor Networks. IEEE Comput. 2004;37:41–49. doi: 10.1109/MC.2004.93. [DOI] [Google Scholar]
- 4.Dupe V., Terrasson G., Estevez I., Briand R. Autonomy constraint in microsensor design: From decision making to energy optimization; Proceedings of the IEEE International Conference on Green Computing and Communications; Besancon, France. 20–23 November 2012; pp. 647–650. [Google Scholar]
- 5.Lossec M. Micro-kinetic generator: Modeling, energy conversion optimization and design considerations; Proceedings of the 15th IEEE Mediterranean Electrotechnical Conference; Valletta, Malta. 25–28 April 2010; pp. 1513–1521. [Google Scholar]
- 6.Oliveira R., Guardalben L., Sargento S. Long Range Communications in Urban and Rural Environments; Proceedings of the IEEE Symposium on Computers and Communications Conference (ISCC); Heraklion, Greece. 3–6 July 2017. [Google Scholar]
- 7.Elodie M., Mickael M., Roberto G., Andrzej D. Comparison of the Device Lifetime in Wireless Networks for the Internet of Things. IEEE Access. 2017;5:7097–7113. [Google Scholar]
- 8.Martin B., Utz R. LoRa Transmission Parameter Selection; Proceedings of the 13th International Conference on Distributed Computing in Sensor Systems; Ottawa, ON, Canada. 5–7 June 2017; pp. 27–34. [Google Scholar]
- 9.Oratile K., Bassey I., Adnan M. IoT Devices and Applications based on LoRa/LoRaWAN; Proceedings of the IEEE Industrial Eletronics Society, IECON; Beijing, China. 29 October–1 November 2017; pp. 6107–6112. [Google Scholar]
- 10.Talha B., Mehmet A., Muhammed A. LoRaWAN as an e-Health Communication Technology; Proceedings of the IEEE 41st Annual Computer Software and Applications Conference; Turin, Italy. 4–8 July 2017; pp. 310–314. [Google Scholar]
- 11.Augustin A., Yi J., Clausen T. A study of LoRa: Long range low power networks for the Internet of Things. Sensors. 2016;16:1466. doi: 10.3390/s16091466. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Haxhibeqiri J., Van den Abeele F., Moerman I., Hoebeke J. LoRa Scalability: A Simulation Model Based on Interference Measurements. Sensors. 2017;17:1193. doi: 10.3390/s17061193. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Nolan K.E., Guibene W., Kelly M.Y. An evaluation of low power wide area network technologies for the Internet of Things; Proceedings of the IEEE International ofWireless Communications and Mobile Computing Conference (IWCMC); Paphos, Cyprus. 5–9 September 2016; pp. 440–444. [Google Scholar]
- 14.Terrasson G., Liaria A., Briand R. System Level Dimensioning of Low Power Biomedical Body Sensor Networks; Proceedings of the Faible Tension Faible Consommation Conference (FTFC); Monaco, France. 4–6 May 2014. [Google Scholar]
- 15.Terrasson G., Briand R., Basrourb S., Dupea V. A Top-Down Approach for the Design of Low-Power Microsensor Nodes for Wireless Sensor Network; Proceedings of the 2009 Forum on Specification & Design Languages (FDL); Sophia Antipolis, France. 22–24 September 2009. [Google Scholar]
- 16.Mare S., Vladimir D., Cvetan G. Energy Consumption Estimation of Wireless Sensor Networks in Greenhouse Crop Production; Proceedings of the IEEE EUROCON 17th International Conference on Smart Technologies; Ohrid, Macedonia. 6–8 July 2017; pp. 870–874. [Google Scholar]
- 17.Phui S.C., Johan B., Chris H., Jeroen F. Comparison of LoRaWAN Classes and their Power Consumption; Proceedings of the IEEE Symposium on Communications and Vehicular Technology (SCVT); Leuven, Belgium. 14 November 2017. [Google Scholar]
- 18.Neumann P., Montavont J., Noël T. Indoor deployment of low-power wide area networks (LPWAN): A LoRaWAN case study; Proceedings of the IEEE 12th International Conference onWireless and Mobile Computing, Networking and Communications (WiMob); New York, NY, USA. 17–19 October 2016; pp. 2–9. [Google Scholar]
- 19.Mikhaylov K., Petajajarvi J. Design and implementation of the plug-play enabled flexible modular wireless sensor and actuator network platform. Asian J. Control. 2017;19:1393–1411. doi: 10.1002/asjc.1492. [DOI] [Google Scholar]
- 20.Johnny G., Patrick V.T., Jo V., Hendrik R. LoRa Mobile-To-Base-Station Channel Characterization in the Antarctic. Sensors. 2017;17:1903. doi: 10.3390/s17081903. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Casals L., Mir B., Vidal V., Gomez C. Modeling the Energy Performance of LoRaWAN. Sensors. 2017;17:2364. doi: 10.3390/s17102364. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Taoufik B., Jean-François D., Jean-Jacques C., Randa J., Guillaume A. Energy consumption modeling for communicating sensors using LoRa technology; Proceedings of the IEEE CAMA Conference; Västerås, Sweden. 3–6 September 2018; pp. 1–4. [Google Scholar]
- 23.Wixted J., Kinnaird P., Larijani H., Tait A., Ahmadinia A., Strachan N. Evaluation of LoRa and LoRaWAN for wireless sensor networks; Proceedings of the IEEE SENSORS; Orlando, FL, USA. 30 October–3 November 2016; pp. 1–3. [Google Scholar]
- 24.Nuttakit V., Panwit T., Chotipat P. Experimental Performance Evaluation of LoRaWAN: A Case Study in Bangkok; Proceedings of the IEEE 14th International Joint Conference on Computer Science and Software Engineering (JCSSE); Nakhon Si Thammarat, Thailand. 12–14 July 2017; 2017. pp. 1–4. [Google Scholar]
- 25.AN1200.22 LoRa Modulation Basics; SEMTECH Document. [(accessed on 29 June 2018)]; Available online: https://www.semtech.com/uploads/documents/an1200.22.pdf.
- 26.Alexandru L., Valentin P. A LoRaWAN: Long Range Wide Area Networks Study; Proceedings of the International Conference on Electromechanical and Power Systems (SIELMEN); Iasi, Romania. 11–13 October 2017; pp. 417–420. [Google Scholar]
- 27.Albert P., Florian H. Practical Limitations for Deployment of LoRa Gateways; Proceedings of the IEEE Instrumentation and Measurement Society; Naples, Italy. 27–29 September 2017; pp. 1–5. [Google Scholar]
- 28.Jonathan S., Joel P., Rodrigues C. LoRaWAN: A Low Power WAN Protocol for Internet of Things: A Review and Opportunities; Proceedings of the Computer and Energy Science (SpliTech); Split, Croatia. 12–14 July 2017; pp. 1–5. [Google Scholar]
- 29.SX1272 Development Kit User Guide; SEMTECH Document. [(accessed on 29 June 2018)]; Available online: https://www.semtech.com/uploads/documents/sx1272ska_userguide.pdf.
- 30.LoRa Specifications; LoRa Alliance. [(accessed on 29 June 2018)]; Available online: https://www.rs-online.com/designspark/rel-assets/ds-assets/uploads/knowledge-items/application-notes-for-the-internet-of-things/LoRaWAN%20Specification%201R0.pdf.
- 31.Waspmote LoRa 868MHz 915MHz SX1272 Networking Guide. [(accessed on 29 June 2018)]; Available online: http://www.libelium.com/downloads/documentation/waspmote_lora_868mhz_915mhz_sx1272_networking_guide.pdf.
- 32.BMA220 Digital, Triaxial Acceleration Sensor Data Sheet. [(accessed on 29 June 2018)]; Available online: http://image.dfrobot.com/image/data/SEN0168/BMA220%20datasheet.pdf.
- 33.STM32L073x8 STM32L073xB STM32L073xZ Data Sheet; ST Microelectronics Document. [(accessed on 29 June 2018)]; Available online: https://www.st.com/resource/en/datasheet/stm32l073v8.pdf.
- 34.Alexandru I.P., Usman R., Parag K., Mahesh S. Does Bidirectional Traffic Do More Harm Than Good in LoRaWAN Based LPWA Networks?; Proceedings of the IEEE GLOBECOM; Singapore. 4–8 December 2017; pp. 3–5. [Google Scholar]