Professional Documents
Culture Documents
net/publication/333716995
On the LoRa Modulation for IoT: Waveform Properties and Spectral Analysis
CITATIONS READS
0 1,242
2 authors:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Ahmed Elzanaty on 17 June 2019.
Abstract—An important modulation technique for Internet of [17]–[19]. On the other hand, the spectral characteristics of
Things (IoT) is the one proposed by the LoRa allianceTM . In this LoRa have not been addressed in the literature.
paper we analyze the M-ary LoRa modulation in the time and
frequency domains. First, we provide the signal description in the
In this paper we provide a complete characterization of the
time domain, and show that LoRa is a memoryless continuous LoRa modulated signal. In particular, we start by developing
arXiv:1906.04256v1 [cs.NI] 10 Jun 2019
phase modulation. The cross-correlation between the transmitted a mathematical model for the modulated signal in the time
waveforms is determined, proving that LoRa can be considered domain. The waveforms of this M-ary modulation technique
approximately an orthogonal modulation only for large M. Then, are not orthogonal, and the loss in performance with respect to
we investigate the spectral characteristics of the signal modulated
by random data, obtaining a closed-form expression of the
an orthogonal modulation is quantified by studying their cross-
spectrum in terms of Fresnel functions. Quite surprisingly, we correlation. The characterization in the frequency domain
found that LoRa has both continuous and discrete spectra, with is given in terms of the power spectrum, where both the
the discrete spectrum containing exactly a fraction 1/M of the continuous and discrete parts are derived. The found analytical
total signal power. expressions are compared with the spectrum of LoRa obtained
Index Terms—LoRa Modulation; Power spectral density, Dig- by experimental data.
ital Modulation, Internet of Things The main contributions of this paper can be summarized as
follows:
I. I NTRODUCTION • we provide the analytical expression of the signal for the
The most typical IoT scenario involves devices with limited M-ary LoRa chirp modulation in the time domain (both
energy, that need to be connected to the Internet via wire- continuous-time and discrete-time);
less links. In this regard, Low Power Wide Area Networks • we derive the cross-correlation between the LoRa wave-
(LPWANs) aim to offer low data rate communication capa- forms, and prove that the modulation is non-orthogonal;
bilities over ranges of several kilometers [1]–[4]. Among the • we prove that the waveforms are asymptotically orthog-
current communication systems, that proposed by the LoRa onal for increasingly large M;
alliance (Low power long Range) [5] is one of the most • we derive explicit closed-form expressions of the contin-
promising, with an increasing number of IoT applications, uous and discrete spectra of the LoRa signal in terms of
including smart metering, smart grid, and data collection from the Fresnel functions;
wireless sensor networks for environmental monitoring [6]– • we prove that the power of the discrete spectrum is
[11]. Several works discuss the suitability of the LoRa com- exactly a fraction 1/M of the overall signal power;
munication system when the number of IoT devices increases • we compare the analytical expression of the spectrum
[12]–[15]. with experimental data from commercial LoRa devices;
The modulation used by LoRa, related to Chirp Spread • we show how the analytical expressions of the spectrum
Spectrum, has been originally defined by its instantaneous can be used to investigate the compliance of the LoRa
frequency [16]. Few recent papers attempted to provide a modulation with the spectral masks regulating the out-
description of the LoRa modulation in the time domain, but, as of-band emissions and the power spectral density.
will be detailed below, they are not complaint with the original The provided time and spectral characterization of the LoRa
LoRa signal model. The LoRa performance has been analyzed signal is an analytical tool for the system design, as it allows
by simulation or by considering it as an orthogonal modulation suitable selection of the modulation parameters in order to ful-
M. Chiani is with the Department of Electrical, Electronic and Information
fill the given requirements. For example, our analysis clarifies
Engineering “G. Marconi” (DEI), University of Bologna, Via dell’Università how the spreading factor, maximum frequency deviation, and
50, Cesena, Italy (e-mail: marco.chiani@unibo.it). transmitted power determine the occupied bandwidth, shape
A. Elzanaty was with the Department of Electrical, Electronic and Informa-
tion Engineering, University of Bologna, 40136 Bologna, Italy. He is now with
of the power spectrum and its compliance with spectrum
the Computer, Electrical and Mathematical Science and Engineering Division, regulations, system spectral efficiency, total discrete spectrum
King Abdullah University of Science and Technology, Thuwal 23955, Saudi power, maximum cross-correlation, and SNR penalty with
Arabia (e-mail: ahmed.elzanaty@kaust.edu.sa).
This work was supported in part by MIUR under the program “Dipartimenti
respect to orthogonal modulations.
di Eccellenza (2018-2022),” and in part by the EU project eCircular (EIT Throughout the manuscript, we define the indicator function
Climate-KIC). gT (t) = 1 for 0 ≤ t < T and gT (t) = 0 elsewhere, and indicate
Copyright (c) 2019 IEEE. Personal use of this material is permitted.
However, permission to use this material for any other purposes must be as u(t) the unit step function. The Dirac’s delta is indicated
obtained from the IEEE by sending a request to pubs-permissions@ieee.org. as δ(x), and its discrete version as δm , with δ0 = 1, δm =
ACCEPTED FOR PUBLICATION IN IEEE INTERNET OF THINGS JOURNAL 2
∫x
cos t 2 π/2 dt
0 ∀m , 0. We
∫x also indicate with C(x) , 0 f (t; a1 )
and S(x) , 0 sin t 2 π/2 dt the Fresnel functions [20].
f (t; a2 )
f (t; a)
M
frequency reported in [16, Figure 7]. It is an M-ary digital
modulation, where the M possible waveforms at the output
of the modulator are chirp modulated signals over the fre-
quency interval ( f0 − B/2, f0 + B/2) with M different initial
frequencies. The data modulated signal is usually preceded by
B
synchronization waveforms, not considered here. For the data, a1 M
Putting together (11) and (12), the complex crosscorrelation, B. Discrete-time description
C`,m , can be derived as in (7). The correlation in (7) can be For a simple receiver implementation it has been proposed
zero only if the two exponentials are equal, that requires `(m− to sample the received signal at chip rate, i.e., every Tc =
`)/M = m(m √ − `)/M − k, with k an integer. Thus, it must be Ts /M = 1/B seconds [16]. In this case we have in the interval
|m − `| = k M. Since this must be an integer, and M = 2SF , [0, Ts [ the samples
it follows that k = 2 p with p ≥ 0 an odd (even) integer for
odd (even) SF. kTs a 1 BkTs
x(kTc ; a) = exp j2πB − +
The real cross-correlation (8) follows directly, and the M M 2 2M 2
conditions for its zeros are straightforward observing that Ts M − a
−u k −
sin α = sin β for α = β + k2π or α = π − β + k2π. M B
In order to find the asymptotic behavior of the complex
a 1 k Ts M − a
cross-correlation, we start by upper bounding its absolute value = exp j2πk − + −u k −
M 2 2M M B
for ` , m. From (7) we have
a 1 k
2 2
= exp j2πk − + , k = 0, 1, . . . , M − 1
e−jπ(m−`) /M − e jπ(m−`) /M M 2 2M
j2π (m2 −` 2 )/M
C`,m = Me (13)
j2π(M − |m − `|)|m − `|
where the last equality is due to the fact that 2πk u(·) is always
and therefore
an integer multiple of 2π. This observation allows to avoid
sin π(m − `)2 /M
C`,m = M the modulus operation in the discrete-time description. Then,
.
π(M − |m − `|)|m − `| from (13) we have immediately the following property about
the orthogonality of the discrete-time waveforms.
The first maximum k for C`,m is in the interval
jp Property 3. The discrete-time signals x(kTc ; a) are orthogo-
1 ≤ |m − `| ≤ M/2 . This is due to the following
nal in the sense that
reasons:
M−1
• C`,m is symmetric around M/2;
1 Õ
x(kTc ; `)x ∗ (kTc ; m) = δ`−m (14)
• the denominator is monotonically increasing for M k=0
1 ≤ |m − `| ≤ M/2;
Proof. From (13) we have
• the numerator
jp k is monotonically increasing jfor 1 ≤k |m −
M−1 M−1
`| ≤
p
M/2 , and starts to decrease after M/2 . 1 Õ 1 Õ j2πk ( `−m )
x(kTc ; `)x ∗ (kTc ; m) = e M
will be shown in the next section, the bandwidth of the signal The spectrum can be derived analytically by expressing the
in (6) is larger than B. Therefore, filtering over a bandwidth B Fourier transforms X( f ; `) in terms of Fresnel functions. More
will distort the signal, and the resulting samples will not be like precisely, we have
in (13). As a consequence, they will not obey the orthogonality ∫ Ts ∫ τ` h
` 1 B2 2
i
j2π Bt( M −2 )+2M t
condition in (14). To avoid distortion, in general a bandwidth X( f ; `)= x(t; `)e−j2π f t dt = e e−j2π f t dt
larger than B should be kept before sampling. In the presence 0 0
∫ Ts h
` 2
i
of AWGN, this will produce an increase in the noise power j2π Bt( M − 23 )+ 2BM t 2 −j2π f t
+ e e dt. (22)
and correlation between noise samples with respect to an τ`
orthogonal modulation. However, for large M the bandwidth Let us define the function
of the signal stays approximately into a bandwidth B (see next ∫ t2
W(a; b; t1 ; t2 ) = exp j2π a t + b t 2 dt
section and Table I), and therefore it is possible to implement a (23)
t1
receiver based on sampling at rate B, dechirping, and looking
for the maximum of the DFT. This is consistent with the that can be expressed in terms of the Fresnel functions as
observation that for large M the modulation is approximately 1 a2
h √ a
W(a; b; t1 ; t2 ) = √ e−j2π 4 b K 2 b t2 + −
orthogonal (see Property 2). 2 b 2b
√ a i
K 2 b t1 + (24)
2b
III. S PECTRAL A NALYSIS OF THE L O R A MODULATION
where K(x) , C(x) + j S(x). Then, the Fourier transform of
In this section, the power spectrum of the LoRa modulation the waveforms can be written analytically as
is analytically derived in closed form in terms of Fresnel
` B2 M −`
1
functions, or through the discrete Fourier transform. Then, it X( f ; `) = W B − − f; ; 0; +
is shown that the modulated signal has a discrete spectrum M 2 2M B
` B2 M − ` M
containing a fraction 1/M of the overall signal power. 3
W B − − f; ; ; (25)
M 2 2M B B
that used in (20) and (21) gives the signal spectrum.
A. Power Spectrum of LoRa Modulated Signals An alternative to the use of the Fresnel functions consists
Let us consider a source that emits a sequence of indepen- in the standard Discrete Fourier Transform approach, where
dent, identically distributed discrete random variables An with we take N samples of x(t; `) over the time interval [0, Ts [ in a
probability vector x(`) = {x(0; `), x(∆t ; `), · · · , x((N − 1)∆t ; `)}, with step
∆t = Ts /N. Then, the vector X(`) = ∆t DFT(x(`)) gives the
1 samples with frequency step ∆ f = 1/Ts = B/M of the periodic
P{ An = `} = , ∀` ∈ {0, 1, · · · , M − 1}.
M repetition k X( f − k F; `), where F = N/Ts = N B/M. For
Í
From (6) the modulator output can be represented by the sufficiently large N the effect of aliasing is negligible, so that
stochastic process the elements of X(`) are essentially the samples of X( f ; `)
Õ with step ∆ f . For the discrete spectrum this frequency step
I(t) = x(t − nTs ; An )gTs (t − nTs ) (18) is exactly what is needed in (21). If a finer resolution in
n frequency is needed (for the continuous spectrum in (20)) we
have to zero-pad the vector x(`) before taking the DFT. For
where the random signal x(t; ·) can take values in the set
example, if we add (k − 1)N zeros to x(`) the frequency step
{x(t; `)}`=0
M−1 of finite energy deterministic waveforms. The
is ∆ f = 1/kTs = B/k M.
power spectral density of the random process I(t) can be
written as the sum of a continuous and a discrete parts
B. Total Power of the Discrete spectrum
GI ( f ) = GcI ( f ) + GdI ( f ) . (19) Lines in the spectrum indicates the presence of a non-zero
mean value of the signal, which does not carry information.
The expressions of the continuous and discrete spectra in The following property quantifies the power of this mean value
(19) can be found by using for the random process (18) the with respect to the overall signal power.
frequency domain analysis of randomly modulated signals (see
e.g. [21], [22]), obtaining Property 4. The total power of the discrete spectrum for the
LoRa modulation
2
2
M−1
1 1 M−1 ∫ ∞
∞ M−1
1 B
Õ Õ
GcI ( f ) = |X( f ; `)| −
2
X( f ; `)
Õ Õ
(20) Pd = G I ( f ) df = 2 2
d
X n ;`
Ts M `=0
M `=0 −∞
Ts M n=−∞ `=0 M
∞ M−1 2 is exactly a fraction 1/M of the overall signal power.
1 Õ Õ B B
GI ( f ) = 2 2
d
X n ;` δ f − n (21)
Ts M n=−∞ `=0 M M Proof. The discrete spectrum in (21) is due to the mean value
of the signal
where {X( f ; `)}`=0
M−1 are the Fourier transforms of the wave- Õ
E {I(t)} = E {x(t − nTs ; An )} gTs (t − nTs ) .
forms {x(t; `)}`=0 given in (5).
M−1
n
ACCEPTED FOR PUBLICATION IN IEEE INTERNET OF THINGS JOURNAL 6
This mean value is not zero, implying that there are lines in 10
SF =3
the spectrum [21], [22]. More precisely, since the modulation SF =7
is memoryless, we have for 0 ≤ t < Ts 0
SF = 10
SF = 12
M−1 M−1
Õ M−1
1 Õ 1 Õ
E {x(t; A0 )} = x(t; `) = x(t; `)
M `=0
M `=0 k=0
−10
10 log (GcI (f ) B)
M−1 M−1
1 Õ Õ
× gTc (t − k Tc ) = gT (t − k Tc ) x(t; `) −20
M k=0 c `=0
( M−1 M−1 M−1
)
1 Õ Õ Õ
= gTc (t) x(t; `) + gTc (t − k Tc ) x(t; `) −30
M `=0 k=1 `=0
1 − e j2π Bt/M
After some manipulation we get −60
1 j π Bt (Bt−1) sin (πBt)
E {x(t; A0 )} = e M
M sin (πBt/M) −80
M−1
Õ
× gTc (t − k Tc ) e−j2πBkt/M .
k=0 −100
10 0
Analytical Analytical
Experimental
Mask
0 −10
−20 −30
−40
−30
−50
−40
−60
−50 867.6 867.8 868 868.2 868.4 868.6 868.8 869
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
f (MHz)
f /B
10 0
Analytical Analytical
Experimental Mask
−10
0 Power Spectrum (dBm/1 kHz)
−20
Power Spectrum (dBm/∆f )
−10
−30
−20
−40
−30 −50
−60
−40
867.6 867.8 868 868.2 868.4 868.6 868.8 869
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
f (MHz)
f /B
(b) Three channels, B = 125 kHz.
(b) SF = 10
Fig. 5: The one-sided power spectrum for LoRa modulated
Fig. 4: The power spectrum of the complex envelope for passband signals using the analytical expressions, compared
LoRa modulation using the analytical expressions and the with the mask from the ETSI regulation in the G1 sub-band,
experimental data, for M = 2SF , SF ∈ {7, 10}, B = 125 kHz, for M = 27 , ∆ f = 1 kHz, and Ps = 14 dBm.
∆ f = B/256, and Ps = 27 dBm. a) One channel with center frequency 868.3 MHz for
B = 250 kHz. b) Three channels with center frequencies
868.1 MHz, 868.3 MHz, and 868.5 MHz for B = 125 kHz.
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 samples have been taken at fs = 4 B, not large enough to
are provided for LoRa modulated waveforms, which have been completely eliminate frequency aliasing.
created with a randomly generated payload of 16 bytes. The
Finally, we investigate the LoRa spectrum along with the
waveforms are obtained for B = 125 kHz with sample rate fs =
ETSI regulations for out-of-band emissions [26, 7.7.1]. Since
4 B [24]. The frequency range of interest is divided into several
LoRa is a chirp spread spectrum technique, it is governed
bins with width ∆ f = B/256, and the power within each bin
by the regulations for ISM bands that support wideband
is computed either analytically via (20) and (21), or through
modulation [26, Table 5]. For example, we consider the G1
spectral estimation by implementing the Welch’s method on
sub-band spanning from 868 MHz to 868.6 MHz [26, Fig. 7].
the experimental data [25]. It is noticed that the estimated
There are two possibilities for using LoRa in this sub-band:
spectrum agrees well with the analytical expression. We can
also observe that the tail of the estimated spectrum is slightly • using a single channel with center frequency 868.3 MHz
higher than the analytical; this is because the experimental for B = 250 kHz;
ACCEPTED FOR PUBLICATION IN IEEE INTERNET OF THINGS JOURNAL 8