Next Article in Journal
Three-Dimensional Lower-Limb Kinematics from Accelerometers and Gyroscopes with Simple and Minimal Functional Calibration Tasks: Validation on Asymptomatic Participants
Next Article in Special Issue
Key Challenges and Emerging Technologies in Industrial IoT Architectures: A Review
Previous Article in Journal
3D Measurement Method for Saturated Highlight Characteristics on Surface of Fuel Nozzle
Previous Article in Special Issue
IoT-Based Monitoring System Applied to Aeroponics Greenhouse
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Reinforcement Learning Based Transmission Parameter Selection and Energy Management for Long Range Internet of Things

1
Laboratory of Information and Communication Technologies (LabTIC), Ecole Nationale des Sciences Appliquées de Tanger, Abdelmalek Essaadi University, Tangier BP 1818, Morocco
2
Department of Automation, Electrical Engineering and Electronic Technology, Universidad Politécnica de Cartagena, Plaza del Hospital 1, 30202 Cartagena, Spain
3
National School of Applied Sciences of Fez (ENSAF), Sidi Mohamed Ben Abdellah University, Fez BP 2626, Morocco
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(15), 5662; https://doi.org/10.3390/s22155662
Submission received: 18 June 2022 / Revised: 22 July 2022 / Accepted: 25 July 2022 / Published: 28 July 2022

Abstract

:
Internet of Things (IoT) landscape to cover long-range applications. The LoRa-enabled IoT devices adopt an Adaptive Data Rate-based (ADR) mechanism to assign transmission parameters such as spreading factors, transmission energy, and coding rates. Nevertheless, the energy assessment of these combinations should be considered carefully to select an accurate combination. Accordingly, the computational and transmission energy consumption trade-off should be assessed to guarantee the effectiveness of the physical parameter tuning. This paper provides comprehensive details of LoRa transceiver functioning mechanisms and provides a mathematical model for energy consumption estimation of the end devices EDs. Indeed, in order to select the optimal transmission parameters. We have modeled the LoRa energy optimization and transmission parameter selection problem as a Markov Decision Process (MDP). The dynamic system surveys the environment stats (the residual energy and channel state) and searches for the optimal actions to minimize the long-term average cost at each time slot. The proposed method has been evaluated under different scenarios and then compared to LoRaWAN default ADR in terms of energy efficiency and reliability. The numerical results have shown that our method outperforms the LoRa standard ADR mechanism since it permits the EDs to gain more energy. Besides, it enables the EDs to stand more, consequently performing more transmissions.

1. Introduction

The IoT (Internet of Things) and Internet of everything (IoE) technologies are revolutionizing the world into modernity [1]. The connected objects impact the entire world and emphasize new consistent communication aspects that will enable smooth connectivity between objects and humans. The short-range technologies have provided low power and short distance communications as they rely on small-order communication protocols standards. For instance, Bluetooth [2], Wi-Fi, Z-Wave, ZigBee and 6LoWPAN [3,4]. However, these technologies remain constrained as they can not afford long-range connectivity with low energy consumption, which is a tremendous requirement for new IoT applications. Many constraints have been encountered, such as defective efficiency in terms of energy consumption, latency, scalability, and network equipment costs. Afterward, these critical requirements have encouraged the research community to design a new and effective alternative to provide long-range connectivity and low power communications. Consequently, Low Power Wide Area Networks (LPWAN) have been raised as a practical alternative to short-range and low power communications [5]. Besides, LPWAN networks are regarded as a new generation of IoT that relies on new communication techniques to guarantee long transmission ranges and lifespan requirements.
LPWAN technologies have emerged in two categories; cellular and non-cellular [6]. The configuration of these networks is structured to achieve widespread communications and scalable coverage in miscellaneous IoT fields in different environments types and application classes. Within this context, many long-range communication paradigms have been adopted in IoT applications such as Sigfox [7], INGENU [8], Weightless SIG [9], DASH7 [10] and Long Range (LoRa) [11]. However, LoRa has been much attention in IoT field. It operates in the unlicensed industrial-scientific-medical (ISM) frequency bands [12]. The IoT-based LoRa network connects end nodes (EDs) to their gateway (GW) through direct communications. These EDs are typically battery-based. Therefore, it is paramount to accurately assess the IoT-based LoRa system’s energy model. Accordingly, determining the optimal LoRa communication parameters has been challenging for IoT networks.
In LoRa networks, the transmitted information should undergo several processing steps (e.g., whitening, channel encoding, interleaving and modulation). Therefore, the trade-offs between transmission energy and computational energy should be considered to measure the energy efficiency of a typical set of parameter selections. Within this context, many works have addressed the problem of energy modeling and transmission parameter selection in LoRa networks [13,14,15]. However, the proposed models have not considered all the main factors behind the energy cost in LoRaWAN, which can lead to underestimating the lifespan of the EDs, thus the lifespan of the overall network. For instance, the provided energy models in [13,16], have considered only the default available coding rates by LoRa standard. In addition, the authors have adopted relative fixed values for computation energy which is considered impractical as processing energy varies from one transmission setting to another. Furthermore, other works have proposed adaptive algorithms for the LoRa parameter setting [17,18]. However, the related models are based predominately on transmission energy to select an adequate set of parameters. Whereas it is should be more practical to set a coding rate index and then change the spreading factors (SFs) as in some cases; using higher SF with lower coding rate (CR) is better than using lower SF with higher CR. This may lead to gain a considerable amount of energy better than the stand LoRa adaptive data rate (ADR). Moreover, the ideal policy to select the optimal transmission parameters set (e.g., modulation, coding) taking into account the energy-reliability performance has been neglected in most of the recent works. In this paper, we focus on the LoRaWAN protocol elements and the mechanisms of estimating the EDs battery lifetime. LoRaWAN technology uses different default parameters to optimize the energy consumption of the EDs. Therefore, we propose a full energy consumption model for EDs using LoRa modulation and LoRaWAN protocol. The main aim is to use all the possible transmission combinations among SFs and CRs. Besides, investigating the impact of channel medium, SFs, CRs, payload size, and communication range on the energy consumption and reliability of LoRa EDs. In this paper, we have proposed an accurate alternative for default LoRa stand ADR based on Markov Decision Process (MDP) that aims to estimate the optimal transmission parameters to provide increased energy-reliability policies. This scheme is apt to enables significant energy gain, high reliability and adaptive selection of the LoRa transmission parameters regarding the channel condition, the distance, and energy residual of the EDs. The contributions of this work can be summarized as follows:
  • We derive a completed LoRa communication system based mainly on the Hamming channel coding scheme and CSS modulation technique. Likewise, thorough details on the functioning and purpose of each system block are deeply detailed. The communication system model includes the channel encoding/decoding, modulation/demodulation, whitening/ de-whitening, and interleaving/de-interleaving processes;
  • We provide a full energy model that features the main mechanisms behind energy consumption in the LoRa communication system based on CSS modulation SFs hybrid settings with coded transmissions using different CRs under the Additive White Gaussian Noise (AWGN) communication channel. The energy model addresses the effect of the processing unit, channel coding, and decoding on energy consumption;
  • We propose an optimal adaptive algorithm for LoRa parameters selection based on MDP to guarantee energy efficiency and high-reliability trade-offs. The main objective is to find adequate settings that allow LoRa devices to withstand longer, considering the transmission quality and the energy efficiency;
The remainder of the paper is structured as follows. Section 2 presents related works. Section 3 presents a detailed LoRa communication chain. Section 4 provides an investigation of the energy efficiency of LoRa and proposes an energy model for the LoRa communication system. Section 5 details the proposed adaptive parameter selection approach dedicated to LoRa class A EDs. Section 6 discusses the obtained results. Finally, Section 7 provides the conclusion.

2. Related Works

Numerous studies have been provided to understand the technical limits of LoRa technology. These works have focused on different layers of LoRa including the application layer [19], transport layer [20], network layer [21], data link layer [22] as well as the physical layer [23]. The first attempts started by investigating the secret of the LoRa modulation technique based on the Chirp Spreading Spectrum (CSS) scheme as reviewed in [24,25]. Moreover, the effect of the modulation chirps’ orthogonality issues has been studied in [26,27,28]. Furthermore, the work [29] has been considered the first work that proposed a primary model based on the LoRa communication chain. This model incorporates mainly the CSS demodulation, de-interleaving, de-whitening, and then channel decoding using a Hamming encoding [30]. Moreover, the authors in [31,32,33] have presented a model that estimates the bit error rate (BER) behavior of LoRa CSS based modulation of diverse SFs under AWGN channel conditions. Besides, to investigate the performance of LoRa under different channel circumstances, authors in [34] have derived a study of LoRa modulation BER under different channels among Nakagami-m, Rayleigh, and Rician fading.
To optimally select the LoRa physical parameters for a standard transmission, authors in [35] have proposed a theoretical ADR control model based on a logistic regression algorithm. In [36], the capture effect was investigated to address the transmit power allocation of poor-conditioned LPWAN EDs among LoRaWAN. The authors of [37] have investigated the ADR technique’s performance and security properties for battery-powered LoRa devices that transmit data on cattle location and health. Another work proposed a new MAC protocol called DG-LoRa and evaluated that varying the number of gateways, channel BW, and CR improves the number of re-transmissions better than the default LoRa method [38]. The impact of the packet size on the LoRa performance was evaluated in [39]. The study aimed to balance the reliability, delay, and energy consumption of LoRa under different physical layer parameters.
Additionally, a platform to assess different stages of LoRa transceivers with a deep emphasis on modulation and demodulation techniques were proposed in [23]. However, this model can only deal with small-sized LoRa packets. On the other side, several works have addressed both the LoRa reliability and energy dissipation requirements. For instance, a first paper addressed the impact of LoRa transmission parameter selection on the performance of LoRa networks, in which the authors studied the impact of LoRa parameters on the system’s energy efficiency and communication reliability through an adaptive method for parameter selection [18]. Moreover, to assess the issue that the nodes near the gateway are more likely to transmit a packet successfully than distant ones, a scheme was introduced to optimize the packet error fairness on LoRaWAN networks [40]. In [41], the authors had studied the effect of SFs allocation of LoRa EDs to optimize the energy consumption constraint using a distributed genetic algorithm and Markov Decision Process respectively. These methods have provided acceptable performance of packet reception probability with a reduced energy consumption amount. Authors in [42,43] have addressed the energy consumption issue in LoRa EDs by proposing a delimitation technique that evaluates the radio propagation behavior of the EDs in the network. The work [44] investigates the optimal SF parameter and transmission power ( P t x ) allocated to EDs in LoRa networks. The other efforts have been dealing with the issue of sensor data collection delay in urban areas focusing on LoRa based gateways [45]. Moreover, the energy consumption and reliability trade-off were also considered in [46]. The authors experienced the energy measurement on different LoRa Semtech EDs, and they have demonstrated the transmission configurations and the channel type impact the energy/reliability trade-off in LoRa networks. In the same context, a prediction model of energy consumption and a probabilistic approach based on Markov’s chain is provided to estimate the lifetime of the LoRa wireless sensor network using the Labview simulation tool [47].
Analyzing these works, we have recognized that the energy efficiency gained by the channel encoding and decoding along with the adequate SF parameter has not been addressed to assess the LoRa energy performance. Besides, the critical energy-reliability tradeoff of LoRa transmission systems has not been addressed in most cases, yet its impact on the energy and reliability performances is of paramount importance. Moreover, the ideal policy to select the optimal set of transmission parameters (e.g., modulation, coding, interleaving and whitening) taking into account the energy-reliability performance has been neglected in most of the recent works. For instance, most of the related works have used the default specified LoRaWAN CR 4/5, the CR 4/7 and occasionally the CR 4/8 along with CSS modulation scheme without considering the channel, residual energy and transmission/processing trade-offs effects. Moreover, we have noticed that the used energy models in previous works are exclusively based on CSS modulation parameters and in few cases on fixed coding, neglecting the interleaving and whitening effects on energy and reliability efficiency on the one hand, and the processing costs of all the transmission blocs on the other hand. These works have been typically based on CSS modulation and demodulation technique according to the channel variation without addressing the channel coding performances in both energy conservation and reliability. Consequently, this work considers a practical and real LoRa transmission scenario by considering the effects of all the transmission blocs and their transmission rates (e.g., CR, SF, BW) in the energy efficiency, reliability and delay performances bearing in mind the energy-efficiency trade-offs resulting in the transmission-processing operations at each transmission round.
To deal with the mentioned gaps in the LoRa communication system, we re-investigated the required transmissions and processing operations and provided a completed and detailed energy-reliability model to practically assess the energy and reliability efficiency gained by each configuration selection. Specifically, we have reconstructed a completed LoRa communication system model that includes the channel encoding/decoding, modulation/demodulation, whitening/de-whitening and interleaving/de-interleaving processes by considering the effects of each transmission selection of all blocks. Within this context, and knowing the effect of each parameter selection on energy and reliability performances, the optimal transmission configuration according to the channel condition, distances and the residual energy of LoRa nodes can be efficiently obtained at each transmission slot. Consequently, based on the provided system model, an optimal adaptive parameter selection scheme is required to meet both reliability and energy efficiency performances. Thus, this work proposes an adaptive LoRa transmission algorithm to provide the optimal policy in terms of transmission parameters selection at each transmission slot, which considers the energy-reliability tradeoffs, distances, channel conditions and residual energy.

3. System Model

LoRaWAN is an open standard exhibited by Semtech corporation. It is referred to as an MAC protocol that assure on air wireless inter-connectivity and time scheduling between end nodes and the base station in the network. Additionally, the nodes are densely dispersed, forming a star of star network topology as shown in Figure 1. The GWs communicate the received data to their servers at the back-end. Accordingly, those nodes can be of different classes depending on the requirements of the application: Class A, B, and C [48,49].
Generally, LoRa is referred to as the physical layer basis of the long-range LPWAN technology launched by Semtech. Fundamentally, it uses a proprietary CSS-derived technique by spreading multiple chips over the occupied frequency bandwidth. The basis chirp changes its frequency values instantaneously by wrapping all associated frequency band. For LoRa, the basic chirp is integrated considering 5 main parameters: Bandwidth (BW), SFs, CRs, P t x , and channel Signal to Noise Ratio (SNR). The SF, BW and CR can be selected from a set of SF { 7 , 8 , 9 , 10 , 11 , 12 } , BWs { 125 kHz , 250 kHz , and 500 kHz } , and CR { 4 / 5 , 4 / 6 , 4 / 7 , 4 / 8 } respectively. The modulator produces different chirps (up-chirps, down-chirps). Concerning the bandwidth, LoRa may transmit a sample every T c = 1 B W which may also denote the chirp duration. Each sample holds a portion of the encoded information to the SF number of bits. These data are encoded again into a non-binary symbol that may take value in {0, 1, 2, , 2 S F 1 } before being modulated. Therefore, the symbol is overlaid by changing the chirp signal frequencies over the BW with 2 S F times T c . Thus, a symbol is transmitted every symbol duration T s = 2 S F B W . Thereby, the higher the SF is, the longer the symbol takes to be transmitted. Additionally, LoRa includes Forward Error Correction (FEC) codes, which can combine blocks of data of four bits each, then encode them by adding bits of adjustable parity from one to four bits, which makes it possible to obtain different coding rates CR { 4 / 5 , 4 / 6 , 4 / 7 , 4 / 8 } . Furthermore, the useful bite rate R b is relatively proportional to the used BW, the SF, and the CR, as expressed by:
R b = S F × B W 2 S F × C R .
To transmit a packet of several symbols, a combination of up chirps and down chirps are used to refine wireless radio transmissions under allowed ISM free exploitable frequency bands. The LoRa packet generally contains four elements—a preamble, a header, a payload, and a Cyclic Redundancy Check (CRC) block [48]. LoRa relies on the physical layer parameters and possesses specific blocks to convey a packet through large distances. Before any succeeded LoRa transmission, a chain of concatenating processes is performed by the LoRa device transceivers.
Furthermore, LoRa induces controllable redundancy bits into transmitted data to make transmissions resilient to channel medium noises. Accordingly, the data in this method are encoded using a Hamming channel encoding scheme with variable code-words regulated by the parameter CR { 4 / 5 , 4 / 6 , 4 / 7 , 4 / 8 } . A data of 4 bits is then encoded cyclically by using the adequate CR to form a code-words of n bits. To improve the reliability, LoRa adopts an extended version of Hamming by using additional CRs. Therefore, the channel encoding generates for each block of four bits a code-word of ( 4 + α c r ) bits, where α c r { 1 , 2 , 3 , 4 } .
Additionally, the Hamming check matrix H for each code of length and dimension (n,k) is a generator matrix of each orthogonal code C denoted by C i T . For instance, if H is the check matrix for C, H is an ( n k ) × k matrix; the rows are orthogonal to C and { x | M × T = 0 } = C. The result from the block of encoded code-words ( 4 + α c r ) × q is then reordered to prepare symbol generation using the LoRa spreading factors and add some extra resilience to those code-words by interleaving them. Before that, a whitening block adds known pseudo-random bits to the output of the channel encoded block by operating the XORing process. The length of the whitened vector with the encoded vector must have the same length. Generally, this operation is applied to induce randomness into the symbols to provide more features for clock recovery at the receiver. Afterward, an interleaving operation is performed by taking each queued codeword at the output of the FEC coding block and scattering them over time. This operation serves to separate and reorder the positions of probable errors that may occur. Therefore, channel decoding methods increase the probability of correcting these errors in the receiver decoding processes. Typically, the interleaver shuffles the bits in a representative order to avoid the occurrence of an error, yet it can provide neither error correction nor error detection. Thus, no gain is attached to the processes. Indeed, in LoRa physical layer, this process is utilized mainly to reconstruct the encoded code-words diagonally in the adequate form with the selected spreading factors for the CSS modulation [24].
S m = p = 0 S F 1 V m × 2 p .
Each vector V m forms symbols of binary digits S m that takes values in {0, 1, 2, 5, , 2 S F 1 }. Consequently, the total generated symbols may be surveyed as a vector of M elements (i.e., S 0 m M 1 = ( S 0 S 1 S 2 S 3 S 4 . . . S M 1 ) ).
After applying gray indexing, the symbol generation process is issued by translating the interleaved binary code-words of length SF into non-binary symbols. Those symbols may take values in the interval of [ 0 , 2 S F 1 ] possibilities. Thus, each symbol that can be transmitted in a certain defined period also depends on the SF and the chirp duration T c . For instance, if an SF of length seven is selected, the value of a symbol may vary from 0 to 255.
Each generated symbol is mapped to the CSS modulator. The modulation procedure relies on specific criteria to give each transmitted packet a standalone form against channel medium interference. Accordingly, each segment of the featured information by non-binary symbols is spread over a time-frequency band using CSS chirps. The CSS modulator relies typically on the on-base chirp waveform, especially to carry each symbol by spreading it over the bandwidth within T s duration. Hence the base-band chirp holding the symbols S 0 < m < M 1 = 0 is represented in the time domain as:
C 0 ( t ) = A ( t ) × e π j B W T s t 2 + φ 0 ,
where A ( t ) is the amplitudes that denoted by: 1 2 S F , t is time variate and φ 0 is the initial phase.
Generally, each modulated symbol S 0 < m < ( M 1 ) is denoted by:
C S m ( t ) = A ( t ) × e 2 π j ( B W 2 T s t 2 + S m T s t + φ ) .
Assuming the sampling frequency is equal to the bandwidth BW, we obtain the expression of the previous chirping process in the discrete domain due to the Shannon sampling theorem. Consequently, assuming φ is null in the discrete-time domain, the expression of the waveform carrying a single symbol S m within T s duration is:
C S m ( k T c ) = A ( k T c ) × e 2 π j ( B W 2 T s × k T c + S m T s ) × k T c , k Z .
Therefore, the spread chirps involving the packet of the encoded symbols are denoted in the discrete domain by:
T X S m ( k T c ) = m = 0 M 1 C S m ( k m × 2 S F ) .
Afterwards, the system sends the modulated symbols sequentially over the radio channel. The format of the entire collected message at the receiver input is:
R X [ n ] = h × T X S m [ n ] + Z [ n ] ,
where h, R X [ n ] , T X S m [ n ] and Z[n] are the block-fading channel, the received signal, the transmitted signal and the Zero-mean Gaussian noise with valued variance σ 2 respectively.
The demodulation technique occurs in two distinct phases; the de-chirping and the extraction of the probably received symbols. The de-chirping operation aims to extract the information from the analog received signal by multiplying this signal with the base of the transmitted chirp signal. Regularly, the de-chirping operation extracts out the part containing the transmitted symbols ready to be addressed in the subsequent runs. The resulted signal after applying the de-chirping operation takes the form of an M-ary Frequency Shift Keying (FSK) modulated signal as follows:
R X d [ k ] = R X [ k ] × e π B W T s × ( k T c ) 2 , k Z .
The LoRa demodulation extracts a set of symbols from the de-chirped signals. Herein, particular coherent demodulation is a crucial strategy to deal with the M-FSK signals after crossing an AWGN channel. Moreover, this modulation technique is more resilient against channel impairment, including the AWGN. Moreover, applying the Discrete Fourier Transform (DFT) enables us to recuperate the transmitted symbols [23].
S ^ m = A r g m a x { R e { D F T { R X d ( k + m × 2 S F ) × S m } } } .
The application of the DFT process extracts the recovered non-binary symbols S ^ m . Then, they are coded into binary frames using the gray indexing method, preparing the bit sequence to be declined. The de-whitening processes are applied to withdraw the bit-stream form by re-XORing the binary stream of the received symbols. The expression of de-whitening is given by XORing the demodulated with the same applied whitening sequence of bits. Afterward, an inverse of the interleaving process at the transmission side allows us to store one codeword at a time in the same rectangular array format in a row-wise manner. Furthermore, the vector array of the received bit-stream analysis is the input of the decoding block to check the occurred number of errors. The FEC decoding of the de-interleaved bits relies on the Hamming decoding algorithm. This procedure allows the system to recognize and investigate the LoRa received packet by providing enforcement against the channel to measure the number of occurred bit errors.

4. Energy Efficiency of LoRa

A LoRa network incorporates multiple small devices with small batteries, thus their energy is limited. Therefore, the network’s lifespan depends on the adopted protocol to manage the power source of the nodes. Each wireless sensor performs many processes before succeeding a single transmission. Hence, to estimate the overall network energy consumption, a thorough consideration should address all the energy consumption provokers by each single node.

4.1. Energy Modeling of LoRa/LoRaWAN

The on-off transmission mechanism is integrated into the node’s hardware system to maintain energy management. This strategy has become increasingly important in improving energy saving for most wireless sensors. Besides, LoRa nodes are activated only for a particular time T a c t i v e and then remain silent during sleeping mode T s l e e p . In standby mode, the node listens to the radio using clocks that ordinarily do not consume as much energy as during active mode, where it operates several activities that drain the node’s energy supply. Consequently, each packet may last for a total duration of T p a c k e t expressed by:
T p a c k e t = T p r e a m b l e + T p a y l o a d ,
where T p a c k e t , T p r e a m b l e and T p a y l o a d are the full packet duration, the preamble duration and the physical payload duration respectively. The preamble duration depends on the used device chip, whereas the payload duration depends on the number of symbols holding the important data [50]. Their values are expressed in function of symbol duration T s by:
T p r e a m b l e = ( 4.25 + N P r ) × T s
T p a y l o a d = N p h y × T s .
The transmission energy in function of transmission power P t x and T p a c k e t is expressed by:
E t x ( t ) = T p a c k e t × P t x ( t ) ζ a ,
where ζ a is a fraction related to the node’s antenna amplifier power efficiency. The transmission power P t x typically differs from the uncoded, coded and adopted modulation techniques. Besides, the transmission power for uncoded transmission is expressed by:
P t x , u ( t ) = η E b N 0 × N × L p ,
where η , E b , N 0 are the system’s spectral efficiency, the required minimum energy per bit at the receiver side, and the noise power spectral density respectively. L p is the path loss estimation which is defined by:
L p = 4 π f c c 2 × d d 0 α + χ
N = T × K × B W × 10 N F 10 ,
where f c , c, d, d 0 , N F , and χ are: the carrier frequency, celerity, distance between transmitter node, the GW and d 0 initial distance which is fixed in this study to one meter, noise figure and α is the path loss exponent which depends on the environment characteristics respectively and the standard deviation used only when there is a shadowing effect.
Besides, the transmission power for non coded packets is given by:
P t x , u ( t ) = η × 10 γ u + N F 10 × T × K × B W × L p ,
where γ u is the required SNR for non-coded transmissions, λ is the transmitted wavelength corresponding to f c , K is the Boltzmann constant, T is the absolute temperature in Kelvin and BW is the bandwidth.
Given the SNR gain by using an FEC code, the required power for encoded transmission can be expressed in function of P t x , u and coding gain G c as follows:
P t x , c ( t ) = P t x , u ( t ) 10 G c 10 .
The utilization of LoRa modulation based on the CSS scheme enables the system to perform transmission in noisy channel mediums. The CSS modulation scheme provides crucial energy savings as LoRa uses different SFs, resulting in different gains. We rely on the gain measures expression below for different SFs. We define SNR gain as the additional SNR in dB required by CSS modulation schemes that allows the SFs to achieve the same BER performance target. Hence, SNR gain for a given target BER for coded G c , c s s ( S F ) transmitted packets can be expressed S F i S F j { 7 , 8 , 9 , 10 , 11 , 12 } by:
G c , c s s ( S F i , j ) = γ c , c s s ( S F i ) γ c , c s s ( S F j ) .
Thus, to measure the minimum required power between two separate spreading factors S F i and S F j ; the following expression can be used:
P t x , c s s ( t ) ( S F i ) = P t x c s s ( t ) ( S F j ) 10 G c s s ( S F i , j ) 10 .
Typically, any LoRa ED spends its energy cooperatively by performing several tasks. In general, the node may take two states; active and sleep state. A significant amount of energy is consumed in active mode than in sleep mode. The total energy consumed per node taking into account both states is expressed by:
E T o t ( t ) ( E D i d ) = E s l e e p ( t ) ( E D i d ) + E a c t ( t ) ( E D i d ) ,
where E s l e e p ( t ) and E a c t ( t ) are the total consumed energy during sleep and active mode respectively. The energy consumed in sleep mode is proportional to P s l e e p ( t ) within sleep duration T s l e e p ( t ) by:
E s l e e p ( t ) ( E D i d ) = P s l e e p ( t ) × T s l e e p ( t ) .
In active mode, the node is required to perform multiple principal operations which leads to drain energy such as Radio Frequency (RF), CPU, and then circuity-sensing energy that englobes both consumed energy for sensing and circuit tasks.
E a c t ( t ) ( E D i d ) = E r f ( t ) + E p r o c ( t ) + E c s ( t ) .

4.1.1. Radio Communication Energy

The communication module includes both up-link transmission and down-link receptions. The RF is responsible for end-nodes data transmission and reception. Typically, to transmit a packet, the node starts by sending two up-link notifications in a specific time duration, then it prepares to receive the feedback by opening sequentially two listening windows. If there is an absence of detection during the first opening, the node opens a second window. If no reception occurs during both windows opening, the node will wait for the next duty cycle to re-transmit the message until the link exchange succeeds. At the emitter node, after the expiry of the allowed number of up-link trials within T p r e a m b l e , it initiates the first listening window during T w 1 , if nothing is detected, it tries again by opening a second window of T w 2 duration, otherwise it transmits the same preamble waiting for the next duty cycle.
The energy consumption during this radio communication processes is estimated by the following expression:
E r f ( t ) ( E D i d ) = E r x ( t ) ( E D i d ) + E t x ( t ) ( E D i d ) ,
where E r x ( t ) ( E D i d ) is the energy consumed during reception period and E t x ( t ) ( E D i d ) is the energy consumed during transmission period.
E r x ( t ) ( E D i d ) = E r x , w 1 ( t ) ( E D i d ) + E r x , w 2 ( t ) ( E D i d ) ,
where E r x , w 1 ( t ) ( E D i d ) and E r x , w 2 ( t ) ( E D i d ) are the energies consumed during listening on first window opening and second window respectively.
E r x , w 1 ( t ) ( E D i d ) = P r x , w 1 ( t ) × N s y m ( E D i d ) × T s ,
where N s y m corresponds to the number of symbols associated with up-link and down-link communications and its value depends on the selected SF. P r x , w 1 ( t ) is the needed transmission power during T w 1 , and T s is the symbol duration.
E r x , w 2 ( t ) ( E D i d ) = P r x , w 2 ( t ) ( E D i d ) × 2 S F + 32 B W ,
where P r x , w 1 ( t ) is the required transmission power during T w 2 , and B W is the bandwidth.

4.1.2. Computation Energy

In addition to the energy dissipated by radio components, the ED’s processing unit consumes energy while treating the data through different sequences; channel coding, whitening, interleaving, gray indexing, and mostly when modulating the signal. The ED consumes energy through switching sequences and leakage current. Thus, in our model, we consider the total time taken by the processed ED’s processing unit to complete packet post-processing as follows:
T f m c u = T s c + T c c + T w h i + T i n t + T g r + T c s s ,
where the time required by the physical block source coding, channel coding, whitening, interleaving, gray conversion and the CSS modulation block are denoted respectively by: T s c , T c c , T w h i , T i n t , T g r and T c s s . The energy dissipated by a single node upon the activation state i.e the energy consumed by the processing unite E p r o s ( t ) can be expressed by:
E p r o s ( t ) = P m c u , o n ( t ) × Φ m c u ( t ) + P m c u , o f f ( t ) × ( T b o Φ m c u ( t ) ) + E l e a k a g e ( t ) ,
where E l e a k a g e ( t ) and Φ m c u ( t ) are the number of clock cycles per task. P m c u , o n ( t ) and P m c u , o f f ( t ) are the consumed power when the CPU is on and off modes, respectively. T b o is the back off time.
E l e a k a g e ( t ) = L p a c k e t × V d d × I l e a k a g e × Φ m c u ( t ) f E D i d .
Additionally:
Φ m c u ( t ) = T b o ( ( 1 p α ) ( 1 p β ) ( 1 p 0 ) ( τ L + ( 1 p f ) L a c k ) + λ s × T m + T M C U f m c u ) .
Given that, p α , p β , p 0 , p f , τ , L, L a c k , T b o and T M C U f m c u denote respectively; the busy channel probability during the first and second window opening, the probability when the gateway queue is empty, probability of fail, the channel access probability, the length of data frame, the length of checking acknowledgment, the back-off time and the processing duration required by the device micro-controller within frequency f m c u and λ s is the sensing frequency of the LoRa end-device.
Considering the channel encoding scheme is based on Galois field G F ( 2 m ) , the time required to encode a code sequence of n bits operation within a time period t c y c l e using Hamming code [51,52] can be expressed by:
T c c = n × ( 2 k 1 ) k × t c y c l e s ,
where t c y c l e is the time required to complete each single coding sequence. Therefore, the processing duration needed to modulate N s y m b o l s number of symbols by CSS modulation can be given as:
T c s s = N s y m b o l s M s p e e d ,
where the modulation speed M s p e e d can be expressed by:
M s p e e d = B W 2 S F × C R .
In this work, the total time required for interleaving, source coding, gray mapping, and whitening is assumed to be negligible as they are practically small compared to other processing operations. Besides, the value of Φ m c u ( t ) T M C U f m c u .

4.1.3. Sensing and Circuity Energy

The sensor unit consumes the energy for data acquisition, and digital-analog converters which is estimated by:
E s c ( t ) ( E D i d ) = E c ( t ) + E s ( t ) .
The energy dissipated by the node circuitry E c ( t ) and sensing unit E s ( t ) .
E c ( t ) ( E D i d ) = E i d l ( t ) + E s y n ( t ) + E o n ( t ) + E o f f ( t ) + E l e d ( t ) + E b r d ( t ) .
The expressions E i d l , E s y n , E o n , E o f f , E l e d and E b r d present respectively the energy dissipated by each single end node in mode: idle lightening, synthesizer to transmission, switching off to on, switching on to off, energy consumed by node Light Emitting Diodes (LEDs) and the beard energy.
E S ( E D i d ) = T b o λ s ( i = 1 N s P s o n T m + P a d c o n T m + P a d c o f f ( 1 λ s T m ) + i = 1 N s P s o f f ( 1 λ s T m ) ) ,
where the time required for total sensing by a node is T m , the sensing power in on active mode P s o n and off mode P s o f f . Back off duration T b o and λ s refers to node’s sensing frequency, consumed power in by ADC activity when the node is active P a d c o n and P a d c o f f in sleep mode.

4.2. Total Energy Dissipation of the Overall Network

The total energy dissipated in the network that comprise N n o d e s number of LoRa end nodes E D i d at time t after the occurrence of total number of duty cycles N c , is the sum of the total energy dissipated by each ED:
E n e t w o r k = i d = 1 N n o d e s N c × E T o t ( t ) ( E D i d ) .
Furthermore, we can also use the following formula to predict the residual energy at specific time in a given ED equipped with initial power capacity E i n i t ( E D i d ) in function of the number of the occurred transmission cycles.
E R e s ( t ) ( E D i d ) = E i n i t ( E D i d ) N c × E T o t ( t ) ( E D i d ) .

5. Proposed Method

We assume an extensive LoRa network composed of various autonomous battery-powered LoRa EDs scattered randomly around their GW. Each ED is supposed to convey packets respecting the duty cycle (DC) regulation with minimum energy usage. Thus, the transmission parameters should be adopted carefully to ensure the energy efficiency and reliability trade-off. In other words, if multiple choices are available, the ED has to select the setting that meets the task with the lowest power requirement with high reliability. The GW can successfully decode the received packets if the SNR is above the threshold S N R t h for a given selection, and the received signal should necessarily exceed the sensitivity of the receiver antenna S r x . If these conditions are not satisfied, the uplink and downlink messages cannot be received. Therefore, the ED re-transmits the packets within a certain number of allowed uplink attempts. The sensitivity of the GW receiver [53] is given as:
S r x = 174 + 10 l o g 10 ( B W ) + N F + S N R t h .
This work proposes a method that overlaps the energy efficiency and transmission reliability of the LoRa ED. Due to their gains, the study considers both CSS modulation and coding rate energy saving. The EDs power consumption is potentially related to the transmission and surrounding environmental conditions. Therefore, the parameter selection procedure for the physical layer must be handled carefully, respecting the several criteria among transmission parameter adaptation, transmission power, and critical distance d c to maintain energy efficiency and consistency for any ED. Each ED in the network should choose the adequate transmission parameter considering the channel medium variances. As a result, the selected option should prove successful transmissions with low power consumption.
Besides, to remedy the issue of many transmission parameter options availability, to choose the most efficient, a parameter called distance threshold d c was introduced. This parameter is defined as the distance at which any node located far from the GW can successfully convey a typical transmission. The system adjusts the settings until obtaining the highest distance with suitable parameters. Correspondingly, the selection should consider the packet size, processing energy, and the distance that separates any ED from its GW. To estimate this distance, we rely on the following expression:
d c = ( E t x , S F i χ ) × 10 γ c s s ( t ) ( S F j ) N F 10 T p a c k e t ( S F j ) × η × T × K × B W λ 4 π 2 1 α .
Any ED in the network must decide which parameter combination is selected to maintain the energy-draining for a given duty cycle. Typically, selecting a single parameter among SF or CR regarding data packet size, the system must settle the parameters continuously, taking into account the critical distance.
Therefore, the main aim to measure the difference of the energy consumed for different SFs, which is, in other words, the gain of energy obtained using two separate SFs. Thus, the energy difference between two consecutive SFs; S F i and S F j , i , j { 6 , 7 , 8 , 9 , 10 , 11 , 12 } , and i j , is denoted by:
Δ E t x ( E D i d ) = E t x , c s s ( S F i ) ( E D i d ) E t x , c s s ( S F j ) ( E D i d ) .
Besides, this equation is also applied to get the average consumed energy for processing comparing between two different SF parameters which can be expressed by:
Δ E p r o c ( E D i d ) = E p r o c , c s s ( S F i ) ( E D i d ) E p r o c , c s s ( S F j ) ( E D i d ) .
The energy consumption of a given set of configurations among SF, CR, BW, and transmission power P t x is considered taking into account the trade-off between the required energy for transmissions and the computation processes. More specifically, for a given transmission scenario, an ED may successfully transmit a packet by using multiple possible settings. Therein, the transmission setting with less energy consumption is more likely to be selected. This may be achieved by assessing the energy efficiency esteemed by the margin difference between E t x and E p r o c for each possible setting.
This classification is obtained by comparing the total E t x and E p r o c per cycle for two successive configurations using different SFs with a given C R where S F { 7 , 8 , 9 , 10 , 11 , 12 } and C R { 4 / 5 , 4 / 6 , 4 / 7 , 4 / 8 } . Therefore, the energy saving is defined as the difference of transmission and processing energy consumption between two different settings, and it is expressed as:
Δ E ( E D i d ) = Δ E t x ( E D i d ) + Δ E p r o c ( E D i d ) .
This expression allows us to investigate the energy performance between various transmission parameters, therefore calibrating the energy differences in terms of energy gain and cost. Moreover, to decide if the selected configuration is relevant in reliability and energy efficiency, we compare multiple settings that execute the same task for the same scenario conditions. Besides, we investigate the energy efficiency ratio that combines both required transmission and computation energy. However, the difference value between two settings Δ E t x by a given end device E D i d is considerable if the overall transmission energy is strictly higher than energy processing [54]. Therefore, the energy efficiency metric is expressed as:
E e ( E D i ) = Δ E ( E D i d ) E T o t × 100 .
Additionally, the reliability using a given set of transmission can be assessed between two different settings to transmit the same packet by dividing the total transmitted packet L p a c k e t by the total consumed energy per cycle:
E ^ e ( E D i ) = L p a c k e t E T o t [ b i t / J ] .
We investigate the system performance in AWGN canal using our redeveloped LoRa communication chain that includes all the previous mentioned physical layer processes. The BER e b e r and the packet error rate (PER ) of a coded packet given that the SNR and SF can be derived as follows [55]:
P E R ( E D i d ) = 1 1 B E R 4 5 ( l p a c k e t l h e a d e r ) .
According to [56], the BER expression of CSS modulation in AWGN channel can be approximated by:
B E R ( E D i d ) 1 2 Q 1.28 E s N 0 × 2 S F 1.28 S F + 0.4 ,
where E s depicts the symbol energy, N 0 is the single-sided noise power spectral density, Q is the distribution function, and l h e a d e r is the header length. Moreover, the required energy to transmit a coded bit E b t x , c is subtracted from the energy needed to transmit an uncoded bit E b t x , u . It can be analytically provided by:
E b t x , c = P t x , c R b = E b t x , u 10 G c 10 .
Furthermore, the energy consumption can be analytically expressed independently to the data throughput for a typical selected physical parameter. Therefore, the amount of saved energy Δ E t x ( E D i d ) is expressed as: N 0
Δ E t x ( E D i d ) = E b t x , u ( 1 10 G c 10 ) .
We adopt a multi-objective optimization method to formulate the LoRa transmissions and processing parameter selection as a Markov Decision Process. The designed optimization model under uncertain surroundings for decision-making is known as MDP. This method is based mainly on the MDP [57] technique to assign the transmission parameters autonomously. The flowchart presented by Figure 2 illustrates the whole idea of the proposed method. Therefore, the main aim is to assign the most energy-efficient configuration to an ED while transmitting a given packet from a given distance to the GW. To assign a given transmission parameter, the ED has to consider many variances affecting transmission quality, such as random channel conditions. The ED should efficiently adjust its transmission parameters by using minimum energy dispenses. At each decision instant, the system is maintained in a particular state S , and the agent elects an action A , existing in the latter state. Once the action A is performed, an intermediate cost C is received by the agent, and thus the system is moved to a qualitatively different new state S based on the transition probability P r ( S , A , S ) . The main aim of the MDP is to find the optimal policy that minimizes the long term average cost (i.e., E t o t ( E D ) ). An MDP can be either a finite or infinite time frame [58]. Given a finite MDP time horizon, the optimal policy π to minimize the total expected cost is defined as follows:
m i n V π ( S ) = F π , s t = 1 T γ t R ( s | s , π ( a ) ) .
Here, γ is the discounting factor and F [ . ] is the expectation function. Furthermore, finite time horizon Markov decision processes are a finite time horizon MDP solution. The system’s performance takes place in a time known as the lifetime measure of the ED. In particular, the system starts in state S or the initial state of the node when it is full of energy and continues to operate until the battery is completely discharged. The optimal policy is to minimize V π ( S ) . If we denote V t ( S ) as the minimum achievable reward at state s, then we can estimate the value of V t ( S ) at each state recursively by solving the following optimal Bellman equations:
V t ( S ) = m i n a A [ R t ( s , a ) + s S T P ( s | s , a ) V t + 1 ( s ) ]
Q t ( s , a ) = C ( s , a , s ) + s T P ( s , a , s ) V t 1 ( s ) .
Wherein V t ( S ) is the value of state s and Q t ( S , A ) is the value of taking action A in state S .
The proposed MDP model is defined by the tuple ( S , A , P r , C ( . ) ), where S presents the state of the system, A is the set of possible actions, P r is the set of transition probabilities of the system states, and C ( . ) is the cost function for a given decision. We specify each element of the tuple as follows:
  • States: There are two different states associated with every ED on the network; a sleep state S s l e e p and active state S a c t i v e . During S s l e e p the ED may perform data gathering from its environment and processing tasks but no transmissions can be held, whereas during S a c t i v e , it communicates with the GW base and opens predominately listening windows to send and receive exchanged complete duplex transmissions with the same GW. In an active state, the ED takes many autonomous decisions to adjust transmission settings, including transmission power P t x adjustment. Each state s S consists of two components s = [ b , h ] , where S = B × H . B denotes the energy state space, and H denotes the channel medium state space. b B is the energy state, B = { 0 , 1 , , B } contains all possible energy buffer levels regarding the different possible transitions. The channel medium state h H = { 1 , , H } influences the packet reception probability at the receiver ED and, since we assume a power-controlled transmission system, it also affects the power consumption at the transmitter. The process is used to derive the channel state transition matrix for an AWGN channel model as described in [59,60].
  • Action: At each decision epoch t, the transmitter ED obeys the system state s = s t and determines an action a = a t from the action set A s . In our model a = a t corresponds to the efficient setting SF and CR to be used in the current slot t. It compares the energy efficiency of each possible transmission set used by the transmitter in the current time slot t. After comparing each possible transition, the ED selects the adequate SF and CR as actions. The ED is assumed to check and test all the possibilities of transmission settings in order to find the optimal policy. This way ensures successful transmissions with high bite rates. The transition to the active state is proportional to the action A ( S F , C R ) that is handled consecutively by the established transmission parameters and transition probability;
  • Transition probabilities: Let t and s = s t [ b t , h t ] express the current time index and the approach state in slot t, respectively. We indicate with at the action taken in the present slot t, and we refer to E t o t ( s t , a t ) as the total consumed energy given that action a t is chosen. Hence, the energy evolves as:
    The transition from the state S to another state S by the action A relies on the efficiency of different possible transmission settings. The selection of an action A is proportional to the transition probability from sleep to active mode. The transition probability from state s t + 1 = [ b t + 1 , h t + 1 ] given that the action a t is selected is:
    b t + 1 = m a x { 0 , m i n b t E t o t ( s t , a t ) , B } .
    If s t is the system state, action a t is admissible only if E t o t ( s t , a t ) b t . Additionally, E t o t ( s t , a t ) is given by the sum of two segments: the energy consumption associated with processing E p r o s ( s t , a t ) and that associated with the transmission task E t x ( s t , a t ) .
    P r ( s t + 1 | s t , a t ) = θ ( b t + 1 b t + E t o t ) × p h ( h t + 1 | h t ) ,
    where θ ( . ) refers to the indicator function that is equal to 1 when the argument is zero and zero otherwise. p h (.) is the transition probability matrices of the channel.
  • Cost function: It is a function that minimizes the total energy that encompasses the transmission and processing energy as defined by Equations (13) and (29). The cost function implicitly selects the adequate transmission parameter that minimizes the assessed energy E T o t per transmission using optimal SF and CR. P r (.) is the probability that the ED stays in the active mode. The transition from s to s by the action a is established through the probability of P r (.) with the cost C ( . ) :
    C ( s , a , s ) = m i n E T o t ( s , a , s ) ,
    where E T o t ( s , a , s ) is the consumed energy by the ED at the current state using optimal selected transition parameters.
    Policy π describes a sequence of decision rules that associate the system state with the action to be taken. The purpose of this policy is to minimize the long-run average distortion, i.e., the long-run average cost. It is driven by the chosen eligible policy π (that decides on the action a).
    J π = lim N + 1 N E s n = 0 N C ( s n , a n ) .
    The main goal of this expression is to determine J = m i n π ϕ J π and the corresponding optimal policy π = a r g m i n π ϕ J π .
  • Solution of the MDP: The proposed MDP scheme can be solved via the Value-Iteration Algorithm (VIA), which satisfies the optimal Bellman’s equation. This method is used mainly for infinite-horizon average cost MDPs as in our current study. Generally, VIA defines two parts J and Q, that are iteratively updated beginning from an initial assessment J 0 ( . ) , e.g., J 0 ( s ) = 0, s S . Notably, the tth iteration determines:
    Q t ( s , a ) = C ( s , a ) + s T P r ( s , a , s ) J t 1 ( s ) .
    The long term average cost is expressed as:
    J t ( s ) = min Q t ( s , a ) ,
    where J t ( S ) is the value of state s and Q t ( s , a ) is the value of taking action A in state S .
    The immediate cost C ( s , a ) derived in current state s is summed with the expected optimal cost retrieved from the upcoming slot, weighed according to the system dynamics. The span gives the convergence criterion semi-normal operator s p ( j ) min ( j ) max ( j ) characteristic computed for j = J t + 1 ( S ) J t ( S ) the semi-normal of the span guarantees that (59) is a compaction mapping, and thus the algorithm is guaranteed to converge. The iterative algorithm is stopped when s p ( . ) ϵ , at a chosen tolerance threshold ϵ . Consequently, the optimal policy π is then determined by computing the optimal action to take in each state s S , i.e., a ( s ) = A r g m i n a i n A s Q n ( s , a ) , where n is the last iteration of VIA, and has the next key characteristic.

6. Results and Discussions

In this section, we compare the performance of LoRa default ADR with our proposed model. We implemented large-scale LoRaWAN simulation tests using the Matlab tool. The simulation environment imitates the real-world behavior of LoRaWAN taking into account all the elements of the transceiver communication chain described in section III. As a channel medium, we considered the AWGN channel. Table 1 shows the parameter settings we used in the simulation experiments. We assumed that payload is variable for the general comparison scenario but fixed at PL = 30 Bytes a specific distance for comparison reason between LoRa default ADR and the proposed method. The class A EDs are randomly scattered within the range of 12 km around a GW.
We limit the transmission power to 20 dBm, the noise figure to 10 dBi, and the path loss to 3. The duty cycle is limited to 1%. In LoRaWAN’s essential operation, multiple channels and bandwidths can be employed. However, for simplicity, only 125 kHz comprehensive single-channel communication is tested. All the activities by the processing units are performed with a 4 Mhz processing frequency. For the energy consumption modeling, we assumed that the EDs consume the energy of 0.25 mJ every detection cycle. The currents I l e a k a g e , I r x and I s l e e p are fixed as described in LoRa sensors datasheet [61,62]. The processing and transmission voltages are 2 V and 3.3 V, respectively. Besides, to represent the errors that occurred during transmitting different packet sizes within the AWGN channel medium. The communication chain explained earlier has been explored to tune the appropriate SNR value (i.e., γ c , C S S ( S F ) ) for BER for coded transmissions using Hamming coding scheme. A packet of random stream bits (e.g., 0 and 1) has been transmitted through an AWGN channel and then decoded for each iteration. Exploring the mentioned blocks at the receiver and the results found in our previous work [32], we assume the SNR versus BER values of each SF at BER = 10 4 for simplification of calculation. These values have been used to estimate the consumed energy of each transmission configuration of a given ED in the following sections.

6.1. Energy and Reliability Evaluation of LoRaWAN

In this subsection, we evaluate the energy and the reliability of LoRa default ADR under different scenarios. The evaluation aims to understand the distribution of the energy consumption of the EDs on the network versus the covered distances using different transmission setting. The main goal of this section is to demonstrate that the LoRa standard ADR is not energy efficient under certain scenarios, therefore considering the transmission and processing energy for parameter selection could provide better performances.
Figure 3 shows the required transmission power of an ED using LoRa default ADR for different settings based on CR 4/7 and variable SFs from 7 to 12 when transmitting a payload of 30 bytes from variable distances. As shown, SF 12 requires lower transmission energy to attain the same distance, followed by SF 11, SF 10, SF 9, SF 8, and SF 7. Besides, SF 12 can attain the most significant distance with minimum energy dissipation. This is explained by the significance of CSS modulation to gain power in order to target long-range distances. Furthermore, from Figure 3, we state that for each specified combination between SF and CR has a threshold distance that can be covered according to the adopted transmission power by the ED.
Figure 4 shows the total consumed energy of an ED that transmits the same payload from distinct distances to the GW using the configurations based on CR 4/7 with variable SFs. The exhibited results confirm that the energy consumption increases with the increase of both the distance and the SFs. Among the SF configurations, SF 7 reveals to consume less energy than the others in short covered distances. Besides, from Figure 4, it is important to notice that for the same CR 4/7. Before SF 7 reaches its maximum critical distance, which is approximated to 1.2 Km, there is an interval where SF 8 consumes less energy than SF 7. This is noticed for the rest of the configurations. That signifies that if the energy consumption increases, there are some distance intervals where the next SF (i.e., SF 8) is better than the current one (i.e., SF 7). For instance, the curve representing the performance of the setting (SF 10, CR 4/7) was revealed to consume more energy than the following settings (i.e., (SF 11, 4/7) and (SF 12, CR 4/7)) even though it does not yet reach the maximum allocated transmission power P t x . Therefore, this declines the assumption that the ED should operate with a given setting until reaching the maximum P t x before switching to the next configuration. The reason is that there is a trade-off between the processing and transmission energy for every single configuration, which approves our assumption about the energy performance in LoRa EDs. Hence, it is essential to notice that each SF configuration ensures energy efficiency on specific distance margins. That means the SF should be used for the distances where it may consume minimum energy to maintain energy efficiency.
Figure 5 shows the total consumed energy of the configuration SF 7 using different CRs of LoRa default ADR. For the same SF 7, using CR 4/5 consumes more energy than CR 4/6, followed by CR 4/7 and CR 4/8. Moreover, the maximum distance that can be reached by CR 4/5 is shorter than the one reached by CR 4/6, CR 4/7, and CR 4/8, respectively. Therefore, CR 4/8 presents an advantage as it extends the covered distance with less energy consumption. That is justified by the BER gain performance of lower CR, which is better as it benefits from extra redundancy bits. Besides, according to the covered distance, the energy-efficient coding rate can be used to lower the ED energy consumption. In terms of energy-saving, the lower CR (i.e., CR 4/5) shows better performances toward time-on-air (TAO) since it is the fastest option. However, Hamming’s coding scheme, with its various CRs, has been selected to be used in the LoRa standard due to its lightweight coding, decoding, and parity check redundancies, which do not impact the performance intensively toward time-on-air. Accordingly, from both Figure 4 and Figure 5, it is inferred that both coding and modulation gains affect the energy consumption of LoRa EDs. Therefore, adopting the better setting configuration between SFs and CRs is of paramount importance.
The difference in the consumed energy for transmission and processing trade-offs can be derived respectively from Figure 6, Figure 7 and Figure 8. As shown, the smaller SF consumes more energy for transmissions E t x operations and less energy for processing E p r o s , whereas the higher CR (i.e., CR 4/5) consumes less energy for transmitting the same payload of 30 Bytes using SF 7. More precisely, Figure 6 shows that SF 7 consumes more energy for transmission covering the distances inferior to 1.1 Km, and SF 8 consumes more energy than SF 9, SF 10, SF 11 and SF 12 when covering the distances between 1.1 Km and 1.8 Km. According to Figure 7 the approximated consumed energies for processing processes E p r o s are 1.78 η J/bit, 0.97 η J/bit, 0.57 η J/bit, 0.31 η J/bit, 0.18 η J/bit and 0.11 η J/bit for SF 12, SF 11, SF 10, SF 9, SF 8 and SF 7 respectively when using same CR 4/7. Besides, Figure 8 shows 0.16 η J/bit, 0.14 η J/bit, 0.12 η J/bit and 0.09 η J/bit for the coding rates 4/8, 4/7, 4/6 and 4/5, respectively when using same SF 7.
Accordingly, the small SF consumes less energy in short distances than higher SFs. For this reason, the default LoRa mechanism configures the setting beginning from the smallest SF (i.e., SF 7) until reaching the highest available P t x to access the maximum distance. Then the system switches to the immediate next SF ( i.e., SF 8) until the maximum SF 12. Nevertheless, this strategy is not always appropriate. As previously shown by Figure 4, it is revealed that there are distance ranges where the next SF (i.e., SF 8) configuration is better than the current SF (i.e., SF 7) in terms of energy consumption and reliability considerations. More specifically, it is not obvious to wait until achieving the maximum allowable P t x to switch to the next setting; this applies to both SF and CR parameters allocation. For this reason, the proposed scheme aimed to address this gap to assign accurately the transmission parameters configuration for LoRa EDs.
Figure 9 shows the transmission parameter’s energy classification for the standard LoRa/LoRaWAN scheme in function of distances. As illustrated, each configuration of SF and CR can guarantee an energy-efficient transmission in a specific range area defined by critical distances. The covered distance by a given parameter is controlled by the P t x threshold. For example, when transmitting a PL of 30 Bytes using CR 4/8 from the distances 1 m d 1440 m; SF 7 appears to be the most efficient setting among others. whereas, SF 8, SF 9, SF 10, SF 11 and SF 12 show better performance respectively in 1441 m d 2127 m, 2128 m d 3489 m, 3490 m d 4892 m, 4893 m d 7041 m, and 7042 m ≤ d ≤ 11,360 m. Noting that these threshold distances may change by changing the coding rate or the payload length. Furthermore, the configuration assigned to cover the ranges should differ if the path loss exponent α differs.
Figure 10 illustrates the energy efficiency performance of LoRa default ADR using different SFs versus the covered distances. It is observed that the energy efficiency varies for different SFs and declines regardless the covered range. SF 7 reveals to be more efficient for short distances than others. Besides, each parameter setting shows its effectiveness within a specific range. However, the ranges classification associated to each SF shown in Figure 9 for LoRa default ADR could be updated if the energy efficiency performance for each tuning is considered. The most considerable configuration should prove the highest energy efficiency performance. Thus, if the energy efficiency of each setting is considered, the setting that would be used to cover variable ranges are respectively; (SF 7, CR 4/7) for the EDs situated at ranges below 855 m, (SF 8, CR 4/8), (SF 9, CR 4/8), (SF 10, CR 4/8), (SF 11, CR 4/8) and (SF 12, CR 4/8) for ranges 856 m d 1230 m, 1231 m d 2456 m, 2457 m d 3005 m, 3006 m d 3723 m and 3724 m ≤ d ≤ 11,360 m respectively.
In short, the difference in energy efficiency explains why several distances are considered thresholds at which specific parameters cannot succeed in communication. Therefore, the ED would determine the parameter autonomously to be considered at a defined distance to make a reliable transmission. Bearing this in mind, in other cases, the transmission can be successfully maintained using different options, even though the energy efficiency of any transmission would be taken into account to ensure a high level of energy management satisfactory. To this end, the critical distance d c has the potential to increase the reliability of the overall communication setup and can also lead to conscious energy resource management.
As exhibited by Figure 10, it is impossible to ED to succeed in transmission from it is position using the transmission settings (SF 7, CR 4/8), and (SF 8, CR 4/8). Nevertheless, the ED can reach the required distance by relying on four possible configurations based on SF 9, SF 10, SF 11, and SF 12 for the same CR = 4/8. However, the setting offering a considerable energy efficiency requirement is the most recommended. According to classical LoRa functioning, the ED would use the possibility (SF 9, CR 4/8) since the position of the ED is included in the covered ranges by this setting and the P t x did not yet reach its threshold, which is associated with the maximum distance 3.4 km. This is explained by the fact that in the classical LoRa ADR, the system does not switch to the next SF or CR until the outflow capacity of the actual parameter exceeds the maximum P t x threshold (i.e., the critical distance d c ). However, according to Figure 11 and Figure 12, this configuration is not the most efficient when considering the energy efficiency and the total consumed energy of the possible setting that can succeed in the transmission of the ED.

6.2. Performance Evaluation of the Proposed Scheme versus LoRa Default ADR

In this section, we investigate the MDP based approach’s performance against the LoRa standard ADR for the same scenario conditions. For first scenario, we pick a random ED from the network that is situated at a distance of d = 3 Km from the GW. The network is supposed to cover an urban area. The concerned ED can operate dynamically with maximum transmission power up to +20 dBm and is instructed to handle the transmission parameters to convey payloads with different payload sizes. The comparison relies on the gains in transmission reliability and the energy consumption layouts. Initially, we study all the possible transmission parameters that can carry the transmission from the required distance. For this reason, we plot the curves of different possible combinations in the following figures to assess their performance in terms of energy consumption. Then, we compare the performance of the parameter assigned by LoRa default ADR versus the proposed scheme.
Figure 13 shows the difference of energy residual distribution of the ED situated at 4 km from the GW using MDP-based method and default LoRa ADR. From this figure we conclude that our proposed model consumes less energy for the same scenario, as it helps the ED to carry on more transmission before it dies. MDP-based carry out 540,256 transmissions, 55,489 more than LoRa ADR. This is explained by the fact that our model adopts the parameter selection according to the channel condition taking into account both the transmission and processing energy of each possible setting before its selection.
To emphasize the results, we have simulated our model against LoRa default ADR under different scenarios for transmitting the payload size from distinct locations on the network. Figure 14 shows the results of the total succeeded transmission from 5 km, 1 km, 2 km, and 3 km, respectively, of the proposed model against LoRa ADR. As shown in Figure 14, the proposed model outperforms the standard LoRa ADR mechanism, leading the ED to carry out more transmissions before dying. For instance, from the distance of 1 km, the ED that adopts default LoRa ADR 867,565 maximum transmissions, which is less than 135,826, is achieved by our proposed model. Concerning the ED situated at 2 km, it achieved 540,256 transmissions with 55,489 more than LoRa defaults ADR. As noticed, the number of total transmissions that the ED can realize decreases with increasing the distance, which signifies that the ED that is situated far from the GW is expected to die before the nearest ones. Additionally, the energy consumption increases as the payload size increases.
Figure 15 shows the average energy cost distribution by the 100 first transmission rounds using MDP model. The total consumed energy E t o t differs from one round to another due to the random channel conditions. Our proposed model adopts the transmission parameters according to the channel medium. Therefore, the average cost changes from a round to another due to the randomness of the channel medium. Besides, the cost increases with increasing the payload size. The larger the payload size, the more energy the ED is expected to consume, therefore, it will last for less time.
Figure 16 presents the average long-term cost against the distance variation for transmitting 30 Bytes payload for different channel states H. For channel states that have been selected for the study; α = 2.5, 3, 3.5 or 4. From the figure, we conclude that the MDP average cost increases with the transmission distance and the path loss exponent representing the channel condition, including the shadowing. Our model for each distance chooses the set of parameter selections that consumes minimum energy. For each channel state, our model succeeds in choosing the better policies that reside on choosing the adequate SF and CR for a given transmission, whatever the position of the ED on the network.
The total number of transmissions that an ED can undergo per day in public LoRa networks is limited due to the region and state restrictions. The DC obeys the ISM frequency band; thus, the maximum duty cycle allowed is 1 % . After completing a given transmission, the ED must remain silent for 99 % of the total time taken. More precisely, the ED forwards a packet within a time interval and then waits for a given time as instructed by the DC duration. Besides, to predict the lifespan and the total number of transmissions that can be held by an ED equipped with different battery source capacities (500 mAh, 2600 mAh, and 3500 mAh) that transmit every DC, the same payload packet of 30 Bytes using the same settings. We apply the experience scenarios of different battery capacities to the identical previous ED. Then we compare its lifespan when adopting the proposed method versus the default LoRa based ADR.
Figure 17 shows the performance of the studied ED relying on our method as well as on the LoRa defined scheme assuming a DC 1 % . The ED’s lifespan depends on the used batteries’ capacity for both methods. In these scenarios, adopting the configuration recommended by our proposed method, the ED lasts for more time than using LoRa default ADR. The ED can last for approximately 435 days, 1850 days, and 2771 days using a battery capacity of 500 mAh, 2600 mAh, and 3500 mAh, respectively. Meanwhile, it may last less time by adopting LoRa ADR for the same battery capacities; 202 days, 1052 days, and 1417 days. As a result, the proposed scheme is expected to increase the times more than the LoRa standard ADR. Accordingly, the lifespan of the ED may last for more when transmitting payloads of size smaller than PL = 30 Bytes, and it may be decreased by increasing the length of the transmitted payload.

7. Conclusions

Several works are interested in using the technology without deeply launching its functional mechanisms. Likewise, these networks have become denser with the increased number of connected devices on the network. Therefore, evaluating the overall network performance, such as by measuring the lifespan, tracking the energy consumption, and evaluating its reliability and scalability, becomes more demanding. This paper highlights the IoT paradigm’s energy efficiency and reliability performance of LoRa EDs. Firstly, it provides comprehensive knowledge about the functioning of LoRa transceiver operations, focusing on the CSS modulation and the channel encoding schemes. Secondly, it provides a thorough mathematical model devoted to assessing the energy consumption in LoRa EDs. The model concentrates more on communication and processing energy, which has not been considered in most previous works. Accordingly, this model could assist in forecasting the LoRa networks’ lifespan in general or anticipating the lifespan of a single ED on the network regarding its distance from the GW before the real implementation of the network. Thirdly, it presents an MDP-based energy-efficient adaptive scheme that serves to tune LoRa physical transmission parameters. More precisely, it permits LoRa EDs to tune their radio transmission parameters, ensuring energy efficiency and the reliability of packet delivery. The scheme compares and evaluates the processing and transmission energy trade-off of each possible setting of any selection. The process aims to assign an accurate set of parameters regarding the BW, CRs, SF, transmission power, payload size, and the position of the loRa EDs. This approach has been evaluated and compared with LoRa default ADR. The obtained results through simulations have shown that the proposed method provides a better performance than LoRa default ADR in energy consumption in the studied scenarios, which leads to an increase of the LoRa end-nodes lifespan. Additionally, the presented energy model accurately anticipates the node’s lifespan for different transmission scenarios regarding the payloads’ size and duty cycle periods. In future works, we aim to adapt our proposed scheme to address the energy efficiency and reliability for dynamic EDs where the adaptive physical layer parameter management is complex and challenging. Moreover, the future research will deal with multi-objective optimization in mobile edge computing. We plan to design architecture based on Mobile Edge Computing between the Gateways and the connected objects. All the processing charges of the IoT devices, whatever the nature (Objects, Drones, Vehicles, Robots, and more), will be sent to the Edge Server, in which a multi-objective optimization will be run to select the transmission and processing parameters of the whole network, then forward the optimal decisions via a downlink transmission. We believe this approach will provide more energy and delay the performance of the IoT networks.

Author Contributions

Y.Y., A.G.-G., I.E.-Z., M.A. and A.E.O. contributed to the design and implementation of the research work, upon the analysis, simulations, and the writing of the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

This work is financially supported by the Abdelmalek Essaadi University (UAE), Tetouan, Morocco and Universidad Politécnica de Cartagena (UPCT) Cartagena, Spain.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare that there is no conflict of interest regarding the publication of this paper.

Abbreviations

The following abbreviations are used in this manuscript:
AcronymDescription
ADRAdaptive Data Rate
BERBit Error Rate
BWBandwidth
CRcoding Rate
CPUCentral Processing Unit
CSSChirp Spread Spectrum
ddistance
d c critical distance
DCDuty Cycle
EDEnd devices
EeEnergy Efficiency
E c t x Uncoded Transmission Energy per bit
E T o t Total consumed Energy per cycle
E a c t Consumed Energy in sleep mode
E t x Consumed Energy for transmission
E r x Consumed Energy during reception
E r x , w 1 Consumed Energy during W1 opening
E r x , w 2 Consumed Energy during W2 opening
E p r o c Processing Energy
E c Circuity Energy
E s Sensing Energy
E N e t w o r k Total consumed energy of the network per round
E L e a k a g e Consumed energy for leakage per round
FECForward Error Correction
f c p u Processing Frequency
GWGateway
ISMIndustrial Scientific and Medical
IoTInternet of Things
LoRaLong Range
LPWANLow Power Wide Area Network
MACMedium Access Control
M T Modulation time
M s p e e d Modulation speed
N F Noise Figure
PERPacket Error Rate
PHYPhysical Layer
PtxTransmission Power
SFSpreading Factor
SNRSignal To Noise Ratio
S r x Receiver sensitivity
T c Chirp duration
T s Symbol duration
T w 1 First Window listening duration
T w 2 Second Window listening duration

References

  1. Farias da Costa, V.C.; Oliveira, L.; de Souza, J. Internet of everything (IoE) taxonomies: A survey and a novel knowledge-based taxonomy. Sensors 2021, 21, 568. [Google Scholar] [CrossRef] [PubMed]
  2. Terán, M.; Aranda, J.; Carrillo, H.; Mendez, D.; Parra, C. IoT-based system for indoor location using bluetooth low energy. In Proceedings of the 2017 IEEE Colombian Conference on Communications and Computing (COLCOM), Cartagena, Colombia, 16–18 August 2017; pp. 1–6. [Google Scholar]
  3. Chang, H.Y. A connectivity-increasing mechanism of ZigBee-based IoT devices for wireless multimedia sensor networks. Multimed. Tools Appl. 2019, 78, 5137–5154. [Google Scholar] [CrossRef]
  4. Mainetti, L.; Patrono, L.; Vilei, A. Evolution of wireless sensor networks towards the internet of things: A survey. In Proceedings of the SoftCOM 2011, 19th International Conference on Software, Telecommunications and Computer Networks, Split, Croatia, 15–17 September 2011; pp. 1–6. [Google Scholar]
  5. Mekki, K.; Bajic, E.; Chaxel, F.; Meyer, F. A comparative study of LPWAN technologies for large-scale IoT deployment. ICT Express 2019, 5, 1–7. [Google Scholar] [CrossRef]
  6. Song, Y.; Lin, J.; Tang, M.; Dong, S. An Internet of energy things based on wireless LPWAN. Engineering 2017, 3, 460–466. [Google Scholar] [CrossRef]
  7. Zuniga, J.C.; Ponsard, B. Sigfox System Description. LPWAN@ IETF97, 14 November 2016; Volume 25. Available online: https://datatracker.ietf.org/meeting/97/materials/slides-97-lpwan-25-sigfox-system-description-00 (accessed on 29 April 2020).
  8. Available online: https://www.ingenu.com/technology/rpma/lpwa/ (accessed on 8 April 2022).
  9. Available online: https://www.weightless-alliance.org/ (accessed on 8 April 2022).
  10. Weyn, M.; Ergeerts, G.; Wante, L.; Vercauteren, C.; Hellinckx, P. Survey of the DASH7 alliance protocol for 433 MHz wireless sensor communication. Int. J. Distrib. Sens. Netw. 2013, 9, 870430. [Google Scholar] [CrossRef] [Green Version]
  11. Alliance, L. A technical overview of LoRa and LoRaWAN. White Pap. 2015, 20. [Google Scholar]
  12. Vangelista, L.; Zanella, A.; Zorzi, M. Long-range IoT technologies: The dawn of LoRaTM. In Proceedings of the Future Access Enablers of Ubiquitous and Intelligent Infrastructures, Ohrid, Republic of Macedonia, 23–25 September 2015; Springer: Berlin/Heidelberg, Germany, 2015; pp. 51–58. [Google Scholar]
  13. Bouguera, T.; Diouris, J.F.; Chaillout, J.J.; Jaouadi, R.; Andrieux, G. Energy consumption model for sensor nodes based on LoRa and LoRaWAN. Sensors 2018, 18, 2104. [Google Scholar] [CrossRef] [Green Version]
  14. Slabicki, M.; Premsankar, G.; Di Francesco, M. Adaptive configuration of LoRa networks for dense IoT deployments. In Proceedings of the NOMS 2018—2018 IEEE/IFIP Network Operations and Management Symposium, Taipei, Taiwan, 23–27 April 2018; pp. 1–9. [Google Scholar]
  15. Kim, S.; Lee, H.; Jeon, S. An Adaptive Spreading Factor Selection Scheme for a Single Channel LoRa Modem. Sensors 2020, 20, 1008. [Google Scholar] [CrossRef] [Green Version]
  16. Su, B.; Qin, Z.; Ni, Q. Energy Efficient Uplink Transmissions in LoRa Networks. IEEE Trans. Commun. 2020, 68, 4960–4972. [Google Scholar] [CrossRef]
  17. Lee, H.C.; Ke, K.H. Monitoring of large-area IoT sensors using a LoRa wireless mesh network system: Design and evaluation. IEEE Trans. Instrum. Meas. 2018, 67, 2177–2187. [Google Scholar] [CrossRef]
  18. Bor, M.; Roedig, U. LoRa transmission parameter selection. In Proceedings of the 2017 13th International Conference on Distributed Computing in Sensor Systems (DCOSS), Ottawa, ON, Canada, 5–7 June 2017; pp. 27–34. [Google Scholar]
  19. Ortiz, F.M.; de Almeida, T.T.; Ferreira, A.E.; Costa, L.H.M. Experimental vs. simulation analysis of LoRa for vehicular communications. Comput. Commun. 2020, 160, 299–310. [Google Scholar] [CrossRef]
  20. Han, B.; Peng, S.; Wu, C.; Wang, X.; Wang, B. LoRa-Based Physical Layer Key Generation for Secure V2V/V2I Communications. Sensors 2020, 20, 682. [Google Scholar] [CrossRef] [Green Version]
  21. Tsai, K.L.; Leu, F.Y.; Hung, L.L.; Ko, C.Y. Secure Session Key Generation Method for LoRaWAN Servers. IEEE Access 2020, 8, 54631–54640. [Google Scholar] [CrossRef]
  22. Zorbas, D.; Abdelfadeel, K.; Kotzanikolaou, P.; Pesch, D. TS-LoRa: Time-slotted LoRaWAN for the Industrial Internet of Things. Comput. Commun. 2020, 153, 1–10. [Google Scholar] [CrossRef]
  23. Marquet, A.; Montavont, N.; Papadopoulos, G.Z. Towards an SDR implementation of LoRa: Reverse-engineering, demodulation strategies and assessment over Rayleigh channel. Comput. Commun. 2020, 153, 595–605. [Google Scholar] [CrossRef] [Green Version]
  24. Vangelista, L. Frequency shift chirp modulation: The LoRa modulation. IEEE Signal Process. Lett. 2017, 24, 1818–1821. [Google Scholar] [CrossRef]
  25. Mroue, H.; Nasser, A.; Parrein, B.; Hamrioui, S.; Mona-Cruz, E.; Rouyer, G. Analytical and simulation study for LoRa modulation. In Proceedings of the 2018 25th International Conference on Telecommunications (ICT), Saint Malo, France, 26–28 June 2018; pp. 655–659. [Google Scholar]
  26. Ouyang, X.; Zhao, J. Orthogonal chirp division multiplexing. IEEE Trans. Commun. 2016, 64, 3946–3957. [Google Scholar] [CrossRef] [Green Version]
  27. Croce, D.; Gucciardo, M.; Mangione, S.; Santaromita, G.; Tinnirello, I. Impact of LoRa imperfect orthogonality: Analysis of link-level performance. IEEE Commun. Lett. 2018, 22, 796–799. [Google Scholar] [CrossRef] [Green Version]
  28. Ouyang, X.; Dobre, O.A.; Guan, Y.L.; Zhao, J. Chirp spread spectrum toward the Nyquist signaling rate—Orthogonality condition and applications. IEEE Signal Process. Lett. 2017, 24, 1488–1492. [Google Scholar] [CrossRef]
  29. Knight, M.; Seeber, B. Decoding LoRa: Realizing a modern LPWAN with SDR. In Proceedings of the GNU Radio Conference, Boulder, CO, USA, 12–16 September 2016; Volume 1. [Google Scholar]
  30. Marquet, A.; Montavont, N.; Papadopoulos, G.Z. Investigating theoretical performance and demodulation techniques for lora. In Proceedings of the 2019 IEEE 20th International Symposium on “A World of Wireless, Mobile and Multimedia Networks” (WoWMoM), Washington, DC, USA, 10–12 June 2019; pp. 1–6. [Google Scholar]
  31. Temim, M.A.B.; Ferré, G.; Laporte-Fauret, B.; Dallet, D.; Minger, B.; Fuché, L. An Enhanced Receiver to Decode Superposed LoRa-like Signals. IEEE Internet Things J. 2020, 7, 7419–7431. [Google Scholar] [CrossRef]
  32. Yazid, Y.; Ez-Zazi, I.; Arioua, M.; Oualkadi, A.E. On the LoRa performances under different physical layer parameter selection. In Proceedings of the 2020 International Symposium on Advanced Electrical and Communication Technologies (ISAECT), Virtual, 6–8 December 2020; pp. 1–6. [Google Scholar]
  33. Haxhibeqiri, J.; Van den Abeele, F.; Moerman, I.; Hoebeke, J. LoRa scalability: A simulation model based on interference measurements. Sensors 2017, 17, 1193. [Google Scholar] [CrossRef] [Green Version]
  34. Ferreira Dias, C.; Rodrigues de Lima, E.; Fraidenraich, G. Bit Error Rate Closed-Form Expressions for LoRa Systems under Nakagami and Rice Fading Channels. Sensors 2019, 19, 4412. [Google Scholar] [CrossRef] [Green Version]
  35. Kim, D.Y.; Kim, S.; Hassan, H.; Park, J.H. Adaptive data rate control in low power wide area networks for long range IoT services. J. Comput. Sci. 2017, 22, 171–178. [Google Scholar] [CrossRef]
  36. Narieda, S.; Fujii, T. Transmit Power Allocation Schemes for Performance Improvement of Poor Conditioned End Devices in LPWAN. IEEE Access 2022, 10, 42778–42790. [Google Scholar] [CrossRef]
  37. Heeger, D.; Garigan, M.; Eleni Tsiropoulou, E.; Plusquellic, J. Secure LoRa Firmware Update with Adaptive Data Rate Techniques. Sensors 2021, 21, 2384. [Google Scholar] [CrossRef]
  38. Lee, J.; Yoon, Y.S.; Oh, H.W.; Park, K.R. DG-LoRa: Deterministic Group Acknowledgment Transmissions in LoRa Networks for Industrial IoT Applications. Sensors 2021, 21, 1444. [Google Scholar] [CrossRef]
  39. Guo, Q.; Yang, F.; Wei, J. Experimental Evaluation of the Packet Reception Performance of LoRa. Sensors 2021, 21, 1071. [Google Scholar] [CrossRef] [PubMed]
  40. Reynders, B.; Meert, W.; Pollin, S. Power and spreading factor control in low power wide area networks. In Proceedings of the 2017 IEEE International Conference on Communications (ICC), Paris, France, 21–25 May 2017; pp. 1–6. [Google Scholar]
  41. Narieda, S.; Fujii, T.; Umebayashi, K. Energy Constrained Optimization for Spreading Factor Allocation in LoRaWAN. Sensors 2020, 20, 4417. [Google Scholar] [CrossRef]
  42. Sandoval, R.M.; Rodenas-Herraiz, D.; Garcia-Sanchez, A.J.; Garcia-Haro, J. Deriving and Updating Optimal Transmission Configurations for Lora Networks. IEEE Access 2020, 8, 38586–38595. [Google Scholar] [CrossRef]
  43. Yazid, Y.; Ez-Zazi, I.; Arioua, M.; El Oualkadi, A. A Deep Reinforcement Learning Approach For LoRa WAN Energy Optimization. In Proceedings of the 2021 IEEE Microwave Theory and Techniques in Wireless Communications (MTTW), Riga, Latvia, 7–8 October 2021; pp. 199–204. [Google Scholar]
  44. Premsankar, G.; Ghaddar, B.; Slabicki, M.; Di Francesco, M. Optimal configuration of LoRa networks in smart cities. IEEE Trans. Ind. Inform 2020, 16, 7243–7254. [Google Scholar] [CrossRef]
  45. Florita, N.J.B.; Senatin, A.N.M.; Zabala, A.M.A.; Tan, W.M. Opportunistic LoRa-based gateways for delay-tolerant sensor data collection in urban settings. Comput. Commun. 2020, 154, 410–432. [Google Scholar] [CrossRef]
  46. Le, X.C.; Vrigneau, B.; Gautier, M.; Mabon, M.; Berder, O. Energy/reliability trade-off of LoRa communications over fading channels. In Proceedings of the 2018 25th International Conference on Telecommunications (ICT), Saint Malo, France, 26–28 June 2018; pp. 544–548. [Google Scholar]
  47. Nurgaliyev, M.; Saymbetov, A.; Yashchyshyn, Y.; Kuttybay, N.; Tukymbekov, D. Prediction of energy consumption for LoRa based wireless sensors network. Wirel. Netw. 2020, 26, 3507–3520. [Google Scholar] [CrossRef]
  48. Augustin, A.; Yi, J.; Clausen, T.; Townsley, W.M. A study of LoRa: Long range & low power networks for the internet of things. Sensors 2016, 16, 1466. [Google Scholar]
  49. Ertürk, M.A.; Aydın, M.A.; Büyükakkaşlar, M.T.; Evirgen, H. A Survey on LoRaWAN Architecture, Protocol and Technologies. Future Internet 2019, 11, 216. [Google Scholar] [CrossRef] [Green Version]
  50. Srbinovska, M.; Dimcev, V.; Gavrovski, C. Energy consumption estimation of wireless sensor networks in greenhouse crop production. In Proceedings of the IEEE EUROCON 2017—17th International Conference on Smart Technologies, Ohrid, Republic of Macedonia, 6–8 July 2017; pp. 870–875. [Google Scholar]
  51. Desset, C.; Fort, A. Selection of channel coding for low-power wireless systems. In Proceedings of the 57th IEEE Semiannual Vehicular Technology Conference, VTC 2003, Jeju, Korea, 22–25 April 2003; Volume 3, pp. 1920–1924. [Google Scholar]
  52. Joe, I. Optimal packet length with energy efficiency for wireless sensor networks. In Proceedings of the 2005 IEEE International Symposium on Circuits and Systems, Kobe, Japan, 23–26 May 2005; pp. 2955–2957. [Google Scholar]
  53. Georgiou, O.; Raza, U. Low power wide area network analysis: Can LoRa scale? IEEE Wirel. Commun. Lett. 2017, 6, 162–165. [Google Scholar] [CrossRef] [Green Version]
  54. Ez-Zazi, I.; Arioua, M.; El Oualkadi, A. Adaptive Joint Lossy Source-Channel Coding for Multihop IoT Networks. Wirel. Commun. Mob. Comput. 2020, 2020. [Google Scholar] [CrossRef]
  55. Casals, L.; Mir, B.; Vidal, R.; Gomez, C. Modeling the energy performance of LoRaWAN. Sensors 2017, 17, 2364. [Google Scholar] [CrossRef] [Green Version]
  56. Elshabrawy, T.; Robert, J. Closed-form approximation of LoRa modulation BER performance. IEEE Commun. Lett. 2018, 22, 1778–1781. [Google Scholar] [CrossRef]
  57. Puterman, M.L. Markov Decision Processes: Discrete Stochastic Dynamic Programming; John Wiley & Sons: Hoboken, NJ, USA, 2014. [Google Scholar]
  58. Altman, E. Constrained Markov Decision Processes: Stochastic Modeling; Routledge: London, UK, 1999. [Google Scholar]
  59. Zordan, D.; Melodia, T.; Rossi, M. On the design of temporal compression strategies for energy harvesting sensor networks. IEEE Trans. Wirel. Commun. 2015, 15, 1336–1352. [Google Scholar] [CrossRef]
  60. Pielli, C.; Stefanovic, C.; Popovski, P.; Zorzi, M. Minimizing data distortion of periodically reporting iot devices with energy harvesting. In Proceedings of the 2017 14th Annual IEEE International Conference on Sensing, Communication, and Networking (SECON), San Diego, CA, USA, 12–14 June 2017; pp. 1–9. [Google Scholar]
  61. LoRa-Alliance. Available online: http://www.lora-alliance.org (accessed on 18 December 2020).
  62. Semtech. Available online: https://www.semtech.com/products/wireless-rf/lora-core/sx1261 (accessed on 11 January 2021).
Figure 1. LoRaWAN network architecture.
Figure 1. LoRaWAN network architecture.
Sensors 22 05662 g001
Figure 2. Flowchart of the proposed model.
Figure 2. Flowchart of the proposed model.
Sensors 22 05662 g002
Figure 3. Transmission power P t x versus range d for different SFs with CR 4/7 to carry out 30 Bytes payload.
Figure 3. Transmission power P t x versus range d for different SFs with CR 4/7 to carry out 30 Bytes payload.
Sensors 22 05662 g003
Figure 4. Total consumed energy versus distance d using SF 7 with CR 4/7 to carry out 30 Bytes payload.
Figure 4. Total consumed energy versus distance d using SF 7 with CR 4/7 to carry out 30 Bytes payload.
Sensors 22 05662 g004
Figure 5. Total consumed energy at different ranges d using different CRs with SF 7 to carry out a 30 Bytes payload.
Figure 5. Total consumed energy at different ranges d using different CRs with SF 7 to carry out a 30 Bytes payload.
Sensors 22 05662 g005
Figure 6. The transmission power performance relative to the range in Km carrying out a PL = 30 Bytes using setting of different SFs with CR 4/7.
Figure 6. The transmission power performance relative to the range in Km carrying out a PL = 30 Bytes using setting of different SFs with CR 4/7.
Sensors 22 05662 g006
Figure 7. The distribution of the consumed energy for processing when transmitting a PL = 30 Bytes using different SFs setting with CR 4/7.
Figure 7. The distribution of the consumed energy for processing when transmitting a PL = 30 Bytes using different SFs setting with CR 4/7.
Sensors 22 05662 g007
Figure 8. The distribution of the consumed energy for processing when transmitting a PL = 30 Bytes using setting SF 7 with different CRs.
Figure 8. The distribution of the consumed energy for processing when transmitting a PL = 30 Bytes using setting SF 7 with different CRs.
Sensors 22 05662 g008
Figure 9. Optimum setting classifications for ranges d using different SFs with CR 4/8 to carry out 30 Bytes payload.
Figure 9. Optimum setting classifications for ranges d using different SFs with CR 4/8 to carry out 30 Bytes payload.
Sensors 22 05662 g009
Figure 10. Energy efficiency distribution relative to variable covered distance d using different SFs with CR 4/8 to carry out a 30 Bytes payload.
Figure 10. Energy efficiency distribution relative to variable covered distance d using different SFs with CR 4/8 to carry out a 30 Bytes payload.
Sensors 22 05662 g010
Figure 11. Energy efficiency performance comparison between of different possible transmission settings at the distance d = 3 km.
Figure 11. Energy efficiency performance comparison between of different possible transmission settings at the distance d = 3 km.
Sensors 22 05662 g011
Figure 12. The total consumed energy by different possible transmission settings at the distance d = 3 km.
Figure 12. The total consumed energy by different possible transmission settings at the distance d = 3 km.
Sensors 22 05662 g012
Figure 13. Residual energy variation versus distance of MDP-based model and LoRa default ADR carrying out a 30 Bytes payload.
Figure 13. Residual energy variation versus distance of MDP-based model and LoRa default ADR carrying out a 30 Bytes payload.
Sensors 22 05662 g013
Figure 14. Total number of succeed transmission of the proposed model against LoRa default ADR for distinct distances transmitting a payload of a 30 Bytes.
Figure 14. Total number of succeed transmission of the proposed model against LoRa default ADR for distinct distances transmitting a payload of a 30 Bytes.
Sensors 22 05662 g014
Figure 15. Average cost variation of each round for different package sizes from 3 km using MDP-based model.
Figure 15. Average cost variation of each round for different package sizes from 3 km using MDP-based model.
Sensors 22 05662 g015
Figure 16. The average long term cost of transmitting a PL = 30 Bytes using MDP method under different channel states versus distances.
Figure 16. The average long term cost of transmitting a PL = 30 Bytes using MDP method under different channel states versus distances.
Sensors 22 05662 g016
Figure 17. Comparison of the proposed scheme against LoRa’s default ADR in terms of ED lifetime for different battery capacity.
Figure 17. Comparison of the proposed scheme against LoRa’s default ADR in terms of ED lifetime for different battery capacity.
Sensors 22 05662 g017
Table 1. Simulation parameter values.
Table 1. Simulation parameter values.
ParameterValue
BW125 KHz
CR 4 / 5 , 4 / 6 , 4 / 7 , 4 / 8
SF7, 8, 9, 10, 11, 12
ED typeClass A
Path loss exponent 2.5 α 4
N F 10 dBi
DC1 %
Sensing energy per cycle0.28 mJ
T s l e e p + T w a k e u p 0.18 μs
I l e a k a g e 10 η A
I r x 11 mA
I s l e e p 1.5 μ A
I p r o s 22 mA
Processing frequency4 MHz
Carrier frequency868 MHz
Sensor unit voltage2 V
Leakage voltage2.2 V
Processing unit voltage3.3 V
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Yazid, Y.; Guerrero-González, A.; Ez-Zazi, I.; El Oualkadi, A.; Arioua, M. A Reinforcement Learning Based Transmission Parameter Selection and Energy Management for Long Range Internet of Things. Sensors 2022, 22, 5662. https://doi.org/10.3390/s22155662

AMA Style

Yazid Y, Guerrero-González A, Ez-Zazi I, El Oualkadi A, Arioua M. A Reinforcement Learning Based Transmission Parameter Selection and Energy Management for Long Range Internet of Things. Sensors. 2022; 22(15):5662. https://doi.org/10.3390/s22155662

Chicago/Turabian Style

Yazid, Yassine, Antonio Guerrero-González, Imad Ez-Zazi, Ahmed El Oualkadi, and Mounir Arioua. 2022. "A Reinforcement Learning Based Transmission Parameter Selection and Energy Management for Long Range Internet of Things" Sensors 22, no. 15: 5662. https://doi.org/10.3390/s22155662

APA Style

Yazid, Y., Guerrero-González, A., Ez-Zazi, I., El Oualkadi, A., & Arioua, M. (2022). A Reinforcement Learning Based Transmission Parameter Selection and Energy Management for Long Range Internet of Things. Sensors, 22(15), 5662. https://doi.org/10.3390/s22155662

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop