On the LoRa Modulation for IoT: Waveform Properties and Spectral Analysis
Marco Chiani, Ahmed Elzanaty

TL;DR
This paper provides a detailed spectral and waveform analysis of LoRa modulation for IoT, revealing its properties in time and frequency domains and its approximate orthogonality at large M.
Contribution
It offers a comprehensive analysis of M-ary LoRa modulation, including its waveform description, correlation properties, and spectral characteristics, which was previously not fully characterized.
Findings
LoRa is a memoryless continuous phase modulation.
LoRa's waveforms are approximately orthogonal for large M.
The spectrum of LoRa includes both continuous and discrete components.
Abstract
An important modulation technique for Internet of Things (IoT) is the one proposed by the LoRa allianceTM. In this paper we analyze the M-ary LoRa modulation in the time and frequency domains. First, we provide the signal description in the time domain, and show that LoRa is a memoryless continuous phase modulation. The cross-correlation between the transmitted waveforms is determined, proving that LoRa can be considered approximately an orthogonal modulation only for large M. Then, we investigate the spectral characteristics of the signal modulated by random data, obtaining a closed-form expression of the spectrum in terms of Fresnel functions. Quite surprisingly, we found that LoRa has both continuous and discrete spectra, with the discrete spectrum containing exactly a fraction 1/M of the total signal power.
| [bps/Hz] | [dB] | ||||
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
LoRa low power long range LoRaWAN Low power, Long Range Wide Area Network LPWAN Low Power Wide Area Network ED end device NS network server GW gateway FSK frequency shift key SF spreading factor ISM Industrial, Scientific and Medical ETSI European telecommunications standards institute CPS cyber-physical systems CPS Cyber-physical systems AC address coding ACF autocorrelation function ACR autocorrelation receiver ADC analog-to-digital converter AIC Analog-to-Information Converter AIC Akaike information criterion ARIC asymmetric restricted isometry constant ARIP asymmetric restricted isometry property ARQ automatic repeat request AUB asymptotic union bound AWGN Additive White Gaussian Noise AWGN additive white Gaussian noise AWRICs asymmetric weak restricted isometry constants AWRIP asymmetric weak restricted isometry property BCH Bose, Chaudhuri, and Hocquenghem BCHSC BCH based source coding BEP bit error probability BFC block fading channel BG Bernoulli-Gaussian BGG Bernoulli-Generalized Gaussian BPAM binary pulse amplitude modulation BPDN Basis Pursuit Denoising BPPM binary pulse position modulation BPSK binary phase shift keying BPZF bandpass zonal filter BSC binary symmetric channels BU Bernoulli-uniform CDF cumulative distribution function CCDF complementary cumulative distribution function CD cooperative diversity CDMA code division multiple access ch.f. characteristic function CIR channel impulse response CoSaMP compressive sampling matching pursuit CR cognitive radio CS Compressed sensing CS compressed sensing CSI channel state information DAA detect and avoid DAB digital audio broadcasting DCT discrete cosine transform DFT discrete Fourier transform DR distortion-rate DS direct sequence DS-SS direct-sequence spread-spectrum DTR differential transmitted-reference DVB-H digital video broadcasting – handheld DVB-T digital video broadcasting – terrestrial ECC European Community Commission EED exact eigenvalues distribution ELP equivalent low-pass FC fusion center FCC Federal Communications Commission FEC forward error correction FFT fast Fourier transform FH frequency-hopping FH-SS frequency-hopping spread-spectrum FS Frame synchronization FSK Frequency Shift Key FS frame synchronization GA Gaussian approximation GF Galois field GG Generalized-Gaussian GIC generalized information criterion GLRT generalized likelihood ratio test GPS Global Positioning System i.i.d. independent, identically distributed IoT Internet of Things LF likelihood function LLF log-likelihood function LLR log-likelihood ratio LLRT log-likelihood ratio test LOS line-of-sight LRT likelihood ratio test MB multiband MC multicarrier MDS mixed distributed source MF matched filter m.g.f. moment generating function MI mutual information MIMO multiple-input multiple-output MISO multiple-input single-output MJSO maximum joint support cardinality ML maximum likelihood MMSE minimum mean-square error MMV multiple measurement vectors MOS model order selection
-PSK
-ary phase shift keying
-QAM
-ary quadrature amplitude modulation MRC maximal ratio combiner MSO maximum sparsity order M2M machine to machine MUI multi-user interference NB narrowband NBI narrowband interference NLA nonlinear sparse approximation NLOS non-line-of-sight NTIA National Telecommunications and Information Administration PAM pulse amplitude modulation PAR peak-to-average ratio PDF probability density function PDF probability density function PDF probability distribution function PDP power dispersion profile PMF probability mass function PMF probability mass function PN pseudo-noise PPM pulse position modulation PRake Partial Rake PSD power spectral density PSEP pairwise synchronization error probability PSK phase shift keying
-PSK
-phase shift keying QAM quadrature amplitude modulation QPSK quadrature phase shift keying RD raw data RDL ”random data limit” RIC restricted isometry constant RICt restricted isometry constant threshold RIP restricted isometry property ROC receiver operating characteristic RQ Raleigh quotient RS Reed-Solomon RSSC RS based source coding r.v. random variable R.V. random vector WSN wireless sensor network
On the LoRa Modulation for IoT: Waveform Properties and Spectral Analysis
Marco Chiani, , and Ahmed Elzanaty M. Chiani is with the Department of Electrical, Electronic and Information Engineering “G. Marconi” (DEI), University of Bologna, Via dell’Università 50, Cesena, Italy (e-mail: [email protected]).A. Elzanaty was with the Department of Electrical, Electronic and Information Engineering, University of Bologna, 40136 Bologna, Italy. He is now with the Computer, Electrical and Mathematical Science and Engineering Division, King Abdullah University of Science and Technology, Thuwal 23955, Saudi Arabia (e-mail: [email protected]).This work was supported in part by MIUR under the program “Dipartimenti di Eccellenza (2018-2022),” and in part by the EU project eCircular (EIT Climate-KIC).Copyright (c) 2019 IEEE. Personal use of this material is permitted. However, permission to use this material for any other purposes must be obtained from the IEEE by sending a request to [email protected].
Abstract
An important modulation technique for Internet of Things (IoT) is the one proposed by the LoRa alliance™. In this paper we analyze the -ary LoRa modulation in the time and frequency domains. First, we provide the signal description in the time domain, and show that LoRa is a memoryless continuous phase modulation. The cross-correlation between the transmitted waveforms is determined, proving that LoRa can be considered approximately an orthogonal modulation only for large . Then, we investigate the spectral characteristics of the signal modulated by random data, obtaining a closed-form expression of the spectrum in terms of Fresnel functions. Quite surprisingly, we found that LoRa has both continuous and discrete spectra, with the discrete spectrum containing exactly a fraction of the total signal power.
Index Terms:
LoRa Modulation; Power spectral density, Digital Modulation, Internet of Things
I Introduction
The most typical IoT scenario involves devices with limited energy, that need to be connected to the Internet via wireless links. In this regard, Low Power Wide Area Networks aim to offer low data rate communication capabilities over ranges of several kilometers [1, 2, 3, 4]. Among the current communication systems, that proposed by the LoRa alliance (Low power long Range) [5] is one of the most promising, with an increasing number of IoT applications, including smart metering, smart grid, and data collection from wireless sensor networks for environmental monitoring [6, 7, 8, 9, 10, 11]. Several works discuss the suitability of the LoRa communication system when the number of IoT devices increases [12, 13, 14, 15].
The modulation used by LoRa, related to Chirp Spread Spectrum, has been originally defined by its instantaneous frequency [16]. Few recent papers attempted to provide a description of the low power long range (LoRa) modulation in the time domain, but, as will be detailed below, they are not complaint with the original LoRa signal model. The LoRa performance has been analyzed by simulation or by considering it as an orthogonal modulation [17, 18, 19]. On the other hand, the spectral characteristics of LoRa have not been addressed in the literature.
In this paper we provide a complete characterization of the LoRa modulated signal. In particular, we start by developing a mathematical model for the modulated signal in the time domain. The waveforms of this -ary modulation technique are not orthogonal, and the loss in performance with respect to an orthogonal modulation is quantified by studying their cross-correlation. The characterization in the frequency domain is given in terms of the power spectrum, where both the continuous and discrete parts are derived. The found analytical expressions are compared with the spectrum of LoRa obtained by experimental data.
The main contributions of this paper can be summarized as follows:
- •
we provide the analytical expression of the signal for the -ary LoRa chirp modulation in the time domain (both continuous-time and discrete-time);
- •
we derive the cross-correlation between the LoRa waveforms, and prove that the modulation is non-orthogonal;
- •
we prove that the waveforms are asymptotically orthogonal for increasingly large ;
- •
we derive explicit closed-form expressions of the continuous and discrete spectra of the LoRa signal in terms of the Fresnel functions;
- •
we prove that the power of the discrete spectrum is exactly a fraction of the overall signal power;
- •
we compare the analytical expression of the spectrum with experimental data from commercial LoRa devices;
- •
we show how the analytical expressions of the spectrum can be used to investigate the compliance of the LoRa modulation with the spectral masks regulating the out-of-band emissions and the power spectral density.
The provided time and spectral characterization of the LoRa signal is an analytical tool for the system design, as it allows suitable selection of the modulation parameters in order to fulfill the given requirements. For example, our analysis clarifies how the spreading factor, maximum frequency deviation, and transmitted power determine the occupied bandwidth, shape of the power spectrum and its compliance with spectrum regulations, system spectral efficiency, total discrete spectrum power, maximum cross-correlation, and SNR penalty with respect to orthogonal modulations.
Throughout the manuscript, we define the indicator function for and elsewhere, and indicate as the unit step function. The Dirac’s delta is indicated as , and its discrete version as , with , . We also indicate with and the Fresnel functions[20].
II LoRa Signal Model
The LoRa frequency shift chirp spread spectrum modulation has been originally described in terms of the instantaneous frequency reported in [16, Figure 7]. It is an -ary digital modulation, where the possible waveforms at the output of the modulator are chirp modulated signals over the frequency interval with different initial frequencies. The data modulated signal is usually preceded by synchronization waveforms, not considered here. For the data, the instantaneous frequency is linearly increased, and then wrapped to when it reaches the maximum frequency , an operation that mathematically can be seen as a reduction modulo . Having the instantaneous frequency sweeping over does not imply that the signal bandwidth is , as will be discussed in Section III.
For LoRa the parameters are chosen such that with SF integer, and , where is the symbol interval. The bit-rate of the modulation is
[TABLE]
The ratio between the chip-rate and the bit-rate is therefore111In spread-spectrum literature this is what is usually called spreading factor. However, in the LoRa terminology SF is called the spreading factor.
[TABLE]
Its reciprocal can be seen as the modulation spectral efficiency in bit/s/Hz. Some values of the spectral efficiency are reported in Table I for ranging from to .
II-A Continuous-time description
To describe mathematically the signal in the time domain, let us start for clarity by assuming that the frequency interval over which to linearly sweep the frequency is as depicted in Fig. 1.
For the time interval and a symbol the instantaneous frequency in LoRa can thus be written as
[TABLE]
where is the initial frequency which depends on the modulating symbol, and
[TABLE]
is the time instant where, after a linear increase, the instantaneous frequency reaches the maximum; for the remaining part of the symbol interval the instantaneous frequency is still linearly increasing, but reduced modulo by subtracting .
Assuming the modulation starts at , from (II-A) the phase for is given by
[TABLE]
Also, with the LoRa parameters we see from (2) that the product is an integer, and can therefore be omitted in the phase.
Note that a factor for the quadratic term is missing in the phase definitions reported in [17, 18, 19], making the instantaneous frequency of the signal not complaint with that of LoRa. That difference also propagated in the discrete-time version of the signals used in [18, 19], so that even the time-discrete analysis made there is not applicable to the LoRa signal.
Property 1**.**
The LoRa modulation is a memoryless continuous phase modulation with .
Proof.
The initial phase is . The phase at the end of the symbol interval is
[TABLE]
where the last equality is due to that is always an integer. In other words, the initial and final phases are coincident, irrespectively on the symbol . ∎
From this property we see that the LoRa modulation can be interpreted as a continuous phase memoryless modulation, where the transmitted waveform in each symbol interval depends only on the symbol in that interval, and not on previous or successive symbols. This can be visualized through the phase diagram which tracks the evolution of the phase over time. In Fig. 2, the phase diagram for two consecutive LoRa modulated symbols is shown as a function of time. It can be noted that each waveform starts and ends with the same phase.
The complex envelope of the modulated signal is
[TABLE]
where accounts for the passband signal power . In the following we will assume unless otherwise stated. By introducing a frequency shift , the complex envelope centered at frequency zero for the interval is
[TABLE]
Due to the memoryless nature of the modulation, the complex envelope of the LoRa signal can be written as
[TABLE]
where is the symbol transmitted in the time interval . We remark that, as this is a frequency modulated signal, we have and the power of the signal is one. The passband modulated signal centered at is then .
Property 2**.**
The cross-correlation between the continuous time waveforms and with is
[TABLE]
and . It follows that the waveforms and are orthogonal (i.e, ) only for with an odd (even) integer for odd (even) SF.
Moreover, since
[TABLE]
we have that the passband waveforms and are orthogonal (i.e, ) only when is an integer, or when is an integer. 222We assume so that the passband waveforms are orthogonal when .
Also, the maximum cross-correlation can be upper bounded as
[TABLE]
Hence, the waveforms are asymptotically orthogonal for increasing :
[TABLE]
Proof.
The crosscorrelation between the continuous time waveforms and with and can be written as
[TABLE]
Noting the periodicity of the complex exponential function, we have
[TABLE]
Similarly, for we have
[TABLE]
Putting together (11) and (12), the complex crosscorrelation, , can be derived as in (2). The correlation in (2) can be zero only if the two exponentials are equal, that requires , with an integer. Thus, it must be . Since this must be an integer, and , it follows that with an odd (even) integer for odd (even) SF.
The real cross-correlation (8) follows directly, and the conditions for its zeros are straightforward observing that for or .
In order to find the asymptotic behavior of the complex cross-correlation, we start by upper bounding its absolute value for . From (2) we have
[TABLE]
and therefore
[TABLE]
The first maximum for is in the interval . This is due to the following reasons:
- •
is symmetric around ;
- •
the denominator is monotonically increasing for ;
- •
the numerator is monotonically increasing for , and starts to decrease after .
Hence, we have
[TABLE]
where for the first inequality for is used. For the second inequality, it is noticed that the function is increasing in , so its maximum value is obtained with . Finally, taking the limit when gives (10). ∎
The correlation among the waveforms of the LoRa modulation has an impact on the error performance for the optimum coherent receiver over AWGN channels [21, 22]. In particular, for the pairwise error probability between the -th and -th waveforms there is a factor in the SNR with respect to orthogonal modulation schemes (see, e.g., equations (4.31) and (4.49) in [21]). In Table I we report the maximum penalty on the SNR, , corresponding to the maximum cross-correlation, to be paid with respect to orthogonal modulation schemes. For example, with we have and the maximum penalty is dB.
II-B Discrete-time description
For a simple receiver implementation it has been proposed to sample the received signal at chip rate, i.e., every seconds [16]. In this case we have in the interval the samples
[TABLE]
where the last equality is due to the fact that is always an integer multiple of . This observation allows to avoid the modulus operation in the discrete-time description. Then, from (13) we have immediately the following property about the orthogonality of the discrete-time waveforms.
Property 3**.**
The discrete-time signals are orthogonal in the sense that
[TABLE]
Proof.
From (13) we have
[TABLE]
∎
As observed in [16, 18], once we have we can compute the twisted (dechirped) vector with elements
[TABLE]
Now, substituting (13) in (15), we see that
[TABLE]
which can be interpreted as a discrete-time complex sinusoid at frequency . It follows that its Discrete Fourier Transform gives the vector with elements
[TABLE]
Therefore, the DFT of the twisted signal (15) has only one non-zero element in the position of the modulating symbol . This means that a possible way to implement a demodulator is to compute the dechirped vector (15), and decide based on its DFT.
Remark 1*.*
One could think now that working in the discrete-time domain we can achieve the performance of orthogonal modulations. However, this is not exactly the case, since, as will be shown in the next section, the bandwidth of the signal in (6) is larger than . Therefore, filtering over a bandwidth will distort the signal, and the resulting samples will not be like in (13). As a consequence, they will not obey the orthogonality condition in (14). To avoid distortion, in general a bandwidth larger than should be kept before sampling. In the presence of AWGN, this will produce an increase in the noise power and correlation between noise samples with respect to an orthogonal modulation. However, for large the bandwidth of the signal stays approximately into a bandwidth (see next section and Table I), and therefore it is possible to implement a receiver based on sampling at rate , dechirping, and looking for the maximum of the DFT. This is consistent with the observation that for large the modulation is approximately orthogonal (see Property 2).
III Spectral Analysis of the LoRa modulation
In this section, the power spectrum of the LoRa modulation is analytically derived in closed form in terms of Fresnel functions, or through the discrete Fourier transform. Then, it is shown that the modulated signal has a discrete spectrum containing a fraction of the overall signal power.
III-A * Power Spectrum of LoRa Modulated Signals*
Let us consider a source that emits a sequence of independent, identically distributed discrete random variables with probability
[TABLE]
From (6) the modulator output can be represented by the stochastic process
[TABLE]
where the random signal can take values in the set of finite energy deterministic waveforms. The power spectral density of the random process can be written as the sum of a continuous and a discrete parts
[TABLE]
The expressions of the continuous and discrete spectra in (19) can be found by using for the random process (18) the frequency domain analysis of randomly modulated signals (see e.g. [21, 22]), obtaining
[TABLE]
where are the Fourier transforms of the waveforms given in (5).
The spectrum can be derived analytically by expressing the Fourier transforms in terms of Fresnel functions. More precisely, we have
[TABLE]
Let us define the function
[TABLE]
that can be expressed in terms of the Fresnel functions as
[TABLE]
where . Then, the Fourier transform of the waveforms can be written analytically as
[TABLE]
that used in (20) and (21) gives the signal spectrum.
An alternative to the use of the Fresnel functions consists in the standard Discrete Fourier Transform approach, where we take samples of over the time interval in a vector , with step . Then, the vector gives the samples with frequency step of the periodic repetition , where . For sufficiently large the effect of aliasing is negligible, so that the elements of are essentially the samples of with step . For the discrete spectrum this frequency step is exactly what is needed in (21). If a finer resolution in frequency is needed (for the continuous spectrum in (20)) we have to zero-pad the vector before taking the DFT. For example, if we add zeros to the frequency step is .
III-B * Total Power of the Discrete spectrum*
Lines in the spectrum indicates the presence of a non-zero mean value of the signal, which does not carry information. The following property quantifies the power of this mean value with respect to the overall signal power.
Property 4**.**
The total power of the discrete spectrum for the LoRa modulation
[TABLE]
is exactly a fraction of the overall signal power.
Proof.
The discrete spectrum in (21) is due to the mean value of the signal
[TABLE]
This mean value is not zero, implying that there are lines in the spectrum[22, 21]. More precisely, since the modulation is memoryless, we have for
[TABLE]
where is the chip rate. From (5) we have
[TABLE]
After some manipulation we get
[TABLE]
The absolute value of the mean is therefore
[TABLE]
Now, recalling the following integral for integer [23, p. 396]
[TABLE]
we get the power of the discrete spectrum as
[TABLE]
Therefore, there are lines in the spectrum of the LoRa modulation, and the power of this discrete spectrum is a fraction of the overall power. ∎
IV Numerical Results
We first show in Fig. 3 the two-sided power spectrum of the complex envelope for LoRa modulated signals as a function on the normalized frequency , with various spreading factors, i.e., . Since we just show for .
In the figure we report both the normalized power spectral density, , and the discrete part of the spectrum. For the latter we report the power at frequency , as given in (21). The sum of the power of all lines in the discrete spectrum is equal to , as proved in Property 4. For example, with we have and thus of the signal power is contained in the discrete spectrum. We can see that the power spectrum becomes more compact for increasing , so that most of the power for the complex envelope is contained between and , or, in other words, that the modulated signal bandwidth is close to for large .
To better quantify this effect, we report in Table I the bandwidth centered on containing of the power for different spreading factors. It can be seen that, while for almost all of the signal is contained in a bandwidth , considering just a bandwidth for smaller spreading factors will leave out a part of the signal, therefore distorting the signal. Moreover, as noted in Section II and Section III, the spectral efficiency, the maximum real cross-correlation, and the power of the discrete spectrum decrease for increasing .
In Fig. 4, we compare the derived analytical power spectrum with that obtained from the IQ samples of a commercially available LoRa transceiver [24].
More precisely, IQ samples are provided for LoRa modulated waveforms, which have been created with a randomly generated payload of bytes. The waveforms are obtained for kHz with sample rate [24]. The frequency range of interest is divided into several bins with width , and the power within each bin is computed either analytically via (20) and (21), or through spectral estimation by implementing the Welch’s method on the experimental data[25]. It is noticed that the estimated spectrum agrees well with the analytical expression. We can also observe that the tail of the estimated spectrum is slightly higher than the analytical; this is because the experimental samples have been taken at , not large enough to completely eliminate frequency aliasing.
Finally, we investigate the LoRa spectrum along with the ETSI regulations for out-of-band emissions [26, 7.7.1]. Since LoRa is a chirp spread spectrum technique, it is governed by the regulations for ISM bands that support wideband modulation [26, Table 5]. For example, we consider the G1 sub-band spanning from MHz to MHz[26, Fig. 7]. There are two possibilities for using LoRa in this sub-band:
- •
using a single channel with center frequency MHz for kHz;
- •
using three channels with center frequencies , , and MHz for kHz.
In Fig. 5 we report, for the two cases above, the one-sided power spectrum calculated analytically with bin width (i.e., resolution bandwidth) kHz, and dBm, i.e., the maximum allowed transmission power. The spectrum is compared with the spectral mask for the G1 sub-band. It can be noticed that the spectrum meets the regulations of the maximum power limits for adjacent band emissions at the G1 sub-band. The same method can be used to examine the LoRa compliance for various ISM bands, spreading factors, and bandwidths, according to other regional regulations.
V Conclusions
In this paper we investigated the spectral characteristics of the LoRa -ary modulation, deriving the analytical expression of the spectrum, and comparing it with experimental data and with the spectral limit masks for the ISM bands. We found that there are lines in the spectrum, containing a fraction of the overall power, and that the occupied bandwidth is in general larger than the deviation . We also derived the waveform cross-correlation function, proving that the LoRa waveforms can be considered orthogonal only for asymptotically large .
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] M. Centenaro, L. Vangelista, A. Zanella, and M. Zorzi, “Long-range communications in unlicensed bands: the rising stars in the Io T and smart city scenarios,” IEEE Wireless Commun. , vol. 23, no. 5, pp. 60–67, Oct. 2016.
- 2[2] U. Raza, P. Kulkarni, and M. Sooriyabandara, “Low power wide area networks: An overview,” IEEE Commun. Surveys Tuts. , vol. 19, no. 2, pp. 855–873, Jan. 2017.
- 3[3] F. Adelantado, X. Vilajosana, P. Tuset-Peiro, B. Martinez, J. Melia-Segui, and T. Watteyne, “Understanding the limits of Lo Ra WAN,” IEEE Commun. Mag. , vol. 55, no. 9, pp. 34–40, Sept. 2017.
- 4[4] E. Morin, M. Maman, R. Guizzetti, and A. Duda, “Comparison of the device lifetime in wireless networks for the Internet of things,” IEEE Access , vol. 5, pp. 7097–7114, 2017.
- 5[5] “A technical overview of Lo Ra and Lo Ra WAN,” Lo Ra Alliance Technical Marketing Workgroup, Tech. Rep., 2015.
- 6[6] H. Sherazi, G. Piro, L. Grieco, and G. Boggia, “When renewable energy meets Lo Ra: A feasibility analysis on cable-less deployments,” IEEE Internet Things J. , pp. 1–12, May 2018.
- 7[7] W. Zhao, S. Lin, J. Han, R. Xu, and L. Hou, “Design and implementation of smart irrigation system based on Lo Ra,” in IEEE Globecom Workshop, Singapore, Singapore , Dec 2017, pp. 1–6.
- 8[8] H. Lee and K. Ke, “Monitoring of large-area Io T sensors using a Lo Ra wireless mesh network system: Design and evaluation,” IEEE Trans. Instrum. Meas. , vol. 67, no. 9, pp. 2177–2187, Sept 2018.
