NEW - Recommended SX1276 Settings for EU868 LoRaWAN Network Operation

 AN1
1200.24
4
SX1276 Se
ettings ffor LoR
RaWAN
N
WIREL
ESS SENSING
G & TIMING PRODUCTS APPLICATIION NOTE AN
N1200.2
24
Reccomm
mendedSX
X1276
6Settingssfor
LoRaWA
ANNetwo
orkOp
perattion
Revision 2 – June 2015 ©2015 SSemtech Corrporation Page 1 of 16
6
www.semttech.com AN1
1200.24
4
SX1276 Se
ettings ffor LoR
RaWAN
N
WIREL
ESS SENSING
G & TIMING PRODUCTS APPLICATIION NOTE nt
TableofConten
1 Inttroduction............................................................................................................................3 2 Up
plinkTran
nsmission
ns........................................................................................................3 2.1 LoRa Mode
e .................................................................................................................................. 3 2.2 GFSK Mode ................................................................................................................................. 4 3 Do
ownlinkR
ReceptionSlotsFolllowingan
nUplink....................................................5 3.1 LORA Mod
de ................................................................................................................................. 6 3.1.1 Registter Settings ................................................................................................................. 6 3.1.2 RX Window Precisse Timing ................................................................................................. 6 3.2 GFSK Mode ............................................................................................................................... 12 3.2.1 Registter Settings ............................................................................................................... 12 3.2.2 RX Window Precisse Timing in GFSK Mode ...................................................................... 14 4 RaandomNu
umberGen
nerationfforCrypto
ography.....................
.
...........................15 Revision 2 – June 2015 ©2015 SSemtech Corrporation Page 2 of 16
6
www.semttech.com AN1
1200.24
4
SX1276 Se
ettings ffor LoR
RaWAN
N
WIREL
ESS SENSING
G & TIMING PRODUCTS APPLICATIION NOTE 1 Inttroductio
on
This app
plication note
e presents th
he recomme
ended setup of the SX1276 radio transceiver opeerating in a LoRaW
WAN networkk. 2 Up
plinkTra
ansmissio
ons
2.1 Lo
oRaMode
e
Uplink trransmissionss can use thee following Lo
oRa settings: 1. LoRa modulaation with 12
25 kHz bandw
width, SF7 to
o SF12. 2. LoRa modullation with 250 kHz baandwidth, SF7 only. Co
orrespondingg to the higgh speed c
channel The follo
owing radio ssettings shou
uld be used:
SX1276 Register (addresss) Registerr bit field (bit #)) Values No
ote RegOpMode (0x01) LongRan
ngeMode[7] Mode[2::0] PaRamp[3:0] Bw[7:4] CodingRate[3:1] ImplicitH
HeaderModeOn
n[0] Spreadin
ngFactor[7:4]
‘1’ ‘011’ ‘1000’ ‘0111’ orr ‘1000’ ‘001’ ‘0’ ‘0111’ to
o ‘1100’
LoR
Ra mode enableed Tx mode 50 us PA Ramp‐up
p time ‘01
111’ for 125kHz modulation Baandwidth ‘10
000’ for 250kHz modulation Baandwidth 4/5
5 error coding rrate Pacckets have up‐ffront header witth 125kHz band
dwidth : ‘01
111’ (SF7) = 6kkbit/s ‘11
100’ (SF12) = 30
00 bit/s (on
nly SF7 is suppo
orted with 250kkHz BW) CRC
C enable RegPaRam
mp (0x0A) RegModem
mConfig1 (0x1D
D) RegModem
mConfig2 (0x1EE) RegSyncW
Word (0x39) RxPayloaadCrcOn[2] LowDataaRateOptimize[[0] LoRa syn
nc word
RegInvertIIQ (0x33) RegInvertIIQ2 (0x3B) IQ inverssion bits IQ inverssion bits RegModem
mConfig3 (0x26
6) ‘1’ ‘0’ or ‘1’
0x34
0x27 0x1d ‘0’ when Spreadin
ng Factor is <= 1
10 ‘1’ when Spreadin
ng Factor is >= 1
11 Sett sync word for LoRaWAN netw
works
(deefault is 0x12 fo
or other networrks) Thiis is the defaultt value Thiis is the defaultt value All registters not expllicitly mentio
oned can stayy with their default valuee. Revision 2 – June 2015 ©2015 SSemtech Corrporation Page 3 of 16
6
www.semttech.com AN1
1200.24
4
SX1276 Se
ettings ffor LoR
RaWAN
N
WIREL
ESS SENSING
G & TIMING PRODUCTS APPLICATIION NOTE 2.2 G
GFSKMode
e
The LoRaaWAN speciffication defin
nes a high sp
peed uplink cchannel usin
ng 50kbit/s G
GFSK modulation. The followingg radio settin
ngs should b
be used (all se
ettings omittted should b
be left to their default value) General and Transmitter settingss  Modulation = FSK  Fdev = +/‐25
5kHz (modullation index = 1)  Bit rate setting = 50kbit//s  Gaussian filt
G
er ON  Filter settingg : BT=0.5  Output Powe
O
er setting: haardware dep
pendent  PA selection: hardware d
dependent SX1276 Register (addresss) Registerr bit field (bit #)) Values No
ote RegOpMode (0x01) LongRan
ngeMode[7]
ModulattionType[6:5] Mode[2::0] ModulattionShaping[6:5
5] BitRate[1
15:8] BitRate[7
7:0] Fdev[13::8] Fdev[7:0
0] ‘0’
‘00’ ‘011’ ‘10’ 0x02 0x80 0x01
0x99
FSK
K/OOK mode en
nable FSK
K Modulation sccheme Tx mode Gaussian filter BT = 0.5 BitRate set to 50kkbps RegPaRam
mp (0x0A) RegBitrateeMsb (0x02) RegBitrateeLsb (0x03) RegFdevM
Msb (0x04) RegFdevLssb (0x05) Freequency deviatiion set to +/‐25
5kHz
Frame and Packet Haandler settin
ngs Figure 1:: Packet Handle
er Format 





Packet Mode
e : this modee inserts a PH
HY header to
o support varriable payloaad length Preamble Le
ength = 5 byttes S
Sync Word= 3 bytes : 0xxC194C1 V
Variable Len
gth frame fo
ormat DC‐free dataa encoding = Whitening
C
CrcOn=1, Crc
cAutoclearOn=1 Revision 2 – June 2015 ©2015 SSemtech Corrporation Page 4 of 16
6
www.semttech.com AN1
1200.24
4
SX1276 Se
ettings ffor LoR
RaWAN
N
WIREL
ESS SENSING
G & TIMING PRODUCTS APPLICATIION NOTE SX1276 Register (addresss) Registerr bit field (bit #))
Values
No
ote
RegPream
mbleMsb (0x25) RegPream
mbleLsb (0x26) RegSyncCo
onfig (0x27) PreambleSize[15:8]
PreambleSize[7:0] AutoRestartRxMode[7:6] PreamblePolarity[5] SyncOn[4] SyncSizee[2:0] PacketFo
ormat[7] DcFree[6
6:5] CrcOn[4]] CrcAutoC
ClearOff[3] AddressFFiltering[2:1] CrcWhiteeningType[0] DataMod
de[6] SyncValu
ue[63:56]
SyncValu
ue[55:48]
SyncValu
ue[47:40] 0x00
0x05 ‘00’ ‘0’ ‘1’ ‘002’ ‘1’ ‘10’ ‘1’ ‘0’ ‘00’ ‘0’ ‘1’ 0xC1
0x94
0xC1 5 B
Bytes of preamb
ble for each paccket
RegPackettConfig1 (0x30) RegPackettConfig2 (0x31) RegSyncVaalue1 (0x28) RegSyncVaalue2 (0x29) RegSyncVaalue2 (0x2A) AuttoRestart OFF
Pre
eamble 0xAA Syn
nc Address enable 3 B
Bytes of Sync W
Word Varriable length paackets Wh
hitening encoding enable Enaable CRC calculation Cle
ear FIFO when C
CRC check fails No address filterin
ng CCITT CRC and Wh
hitening implem
mentation Paccket Mode Syn
nc Address is 0xxC194C1 3 Do
ownlinkR
ReceptionSlotsFollowing
ganUplin
nk
A LoRaW
WAN node op
pens two recception slots for potentiaal downlink ccommunicatiions after each uplink transmisssions. The delay d
between the end of a transmission (signaaled by the TxDone T
IRQ)) and the beginnin
ng of the reception slot iss constant an
nd defined eextremely precisely to minimize the rreception current o
overhead on
n the end‐po
oint side. Mo
ost of the tim
me this recep
ption slot will not be useed by the gatewayys, id no fram
me will be reeceived. Therrefore, to minimize the ccurrent conssumption thee radio is program
mmed to liste
en to the ch
hannel for th
he minimum
m time required to detect with certaainty the presencee or absencee of a pream
mble. In the absence of aa preamble, the radio go
oes back to stand‐by mode. Revision 2 – June 2015 ©2015 SSemtech Corrporation Page 5 of 16
6
www.semttech.com AN1
1200.24
4
SX1276 Se
ettings ffor LoR
RaWAN
N
WIREL
ESS SENSING
G & TIMING PRODUCTS APPLICATIION NOTE 3.1 LO
ORAMod
de
3.1.1 RegisterSe
R
ettings
In LoRa m
mode this is achieved sim
mply by usingg the Receivee Single mod
de. SX1276 Register (addresss) Regisster bit field (bit #) Values Note RegOpMode (0x01) LongRangeMode[7] Mode[2:0] LnaG
Gain[7:5] LnaB
BoostHf[1:0] Bw[7
7:4] Codin
ngRate[3:1] ImpliicitHeaderModeOn[0] SpreaadingFactor[7:4
4] ‘1’
‘110
0’ ‘001
1’ ‘11’’ ‘011
11’ or ‘1000’
‘001
1’ ‘0’
‘011
11’ to ‘1100’ LoRa mode enable Receive Single mode LNA gain set tto the maximum
m value LNA Boost en
nable ‘0111’ for 125
5kHz modulatio
on Bandwidth
‘1000’ for 250
0kHz modulatio
on Bandwidth
4/5 error cod
ding rate Packets have up‐front headeer with 125kHz bandwidth : ‘0111’ (SF7) == 6kbit/s ‘1100’ (SF12) = 300 bit/s (only SF7 is su
upported with 2
250kHz BW) CRC enable RegLna (0xx0C) RegModem
mConfig1 (0x1D
D)
RegModem
mConfig2 (0x1EE) RegSymbTTimeoutLsb (0x1
1F) RegModem
mConfig3 (0x26
6) RxPayloadCrcOn[2]
Symb
bTimeout[1:0]
Symb
bTimeout[7:0]
‘1’
‘00’’ 0x0
05 or 0x08 RegMaxPaayloadLength (0
0x23) LowD
DataRateOptim
mize[3] AgcA
AutoOn[2] Paylo
oadMaxLength[[7:0] ‘0’ o
or ‘1’ ‘1’
0x4
40 RegSyncW
Word (0x39) LoRa sync word
0x3
34
RegInvertIIQ (0x33) RegInvertIIQ2 (0x3B) Test36 (0xx36) Test3a (0xx3a) IQ inversion bits IQ invertion bits See SSX1276 errata n
note See SSX1276 errata n
note
0x6
67 0x1
19 0x0
02 0x6
64
0x05 when Sp
preading Factorr is >= 10 0x08 when Sp
preading Factorr is <= 9 Length of the receiver window in symbols. If no preamble is detected during this time , the receivver goes back to stand‐by ‘0’ when Spre
eading Factor iss <= 10 ‘1’ when Spre
eading Factor iss >= 11 LNA gain set by internal AGC
C loop Sets the maaximum possib
ble downlink payload size to 64 bytes. Packets with payload greaater than this threshold t
will not be de
emodulated, receiver r
will immediately go back to “sstand‐by” low power mode Set sync word
d for LoRaWAN
N networks
(default is 0x1
12 for other neetworks) Optimised for inverted IQ Optimised for inverted IQ 500kHz Rx op
ptimization 500kHz Rx op
ptimization 3.1.2 RXWindow
R
wPreciseTiming
This parragraph explains the op
ptimal RX sttart‐up time and RX slo
ot duration for f the giveen timing precision
n reachable by the end‐d
device. Revision 2 – June 2015 ©2015 SSemtech Corrporation Page 6 of 16
6
www.semttech.com AN1
1200.24
4
SX1276 Se
ettings ffor LoR
RaWAN
N
WIREL
ESS SENSING
G & TIMING PRODUCTS APPLICATIION NOTE The dow
wnlink pream
mble transmitted by thee gateways contains c
8 symbols. s
The
e receiver reequires 5 symbols to detect the t preamblle and synch
hronize. Theerefore there must be a 5 symbolss overlap n the receivee window and
d the transm
mitted pream
mble. between
The gateeway always initiates thee transmissio
on of the preeamble 1 secc +/‐ 20uSecc after the en
nd of the uplink. TTherefore the beginning of the downlink preamble can be cconsidered aas a perfectly precise referencce for the resst of this calcculation. Notation
n: BW Signal modulation b
bandwidth in H
Hz
s
tor : 7 to 12
SF LORA spreading fact
Tsyymb Duratio
on of a LORA symbol = sec RXwind
dow Length
h of the receivve window
RXofffset Offsett in sec betw
ween the optiimal receiver turn‐on timee and the actual start of the gaateway transm
mission RXeerror Maxim
mum timing errror of the recceiver. The reeceiver will turn‐on in a [‐RXerrror : +Rxerrorr] sec interval around RXofffset T_RX_eearly Earliesst time at whiich the receivver can start aand synchroniize on the downliink preamble
T_RX__late Latest time at whicch the receiveer can start and a synchronize on the downliink preamble
Those vaariables are iillustrated in the followin
ng diagram:
Revision 2 – June 2015 ©2015 SSemtech Corrporation Page 7 of 16
6
www.semttech.com AN1
1200.24
4
SX1276 Se
ettings ffor LoR
RaWAN
N
WIREL
ESS SENSING
G & TIMING PRODUCTS APPLICATIION NOTE Downlink staart: T = end_up
plink + 1 second (+/‐ 20uSec)
Desired RX startt
D
(without timing e
error)
Actual RX start
RXwind
dow
actual RX window
RX
Xerror (positive)
RX
Xoffset
(n
negative)
Tsymb
Downlinkk preamble
8 symbols
Time
Figure 2: TTypical Rx Wind
dow Timing The follo
owing diagraam illustrates the positio
oning of the earliest and
d latest possiible receive windows to achievve 5 overlapping symbols with the do
ownlink preaamble: Revision 2 – June 2015 ©2015 SSemtech Corrporation Page 8 of 16
6
www.semttech.com AN1
1200.24
4
SX1276 Se
ettings ffor LoR
RaWAN
N
WIREL
ESS SENSING
G & TIMING PRODUCTS APPLICATIION NOTE Downlink start: T = Rxx + 1 second (+/‐ 20uSSec)
T_RX
X_late
T_RX_earrly
Lateest possible RX
X
window start
Earliestt possible RX window
w start
Latesst RX windo
ow
Earliest RX window
Downliink preamble
8 symb
bols
Figure 3: Worst Case Rx Win
ndow Timings
From thiis diagram th
he following equation can be deduceed: 3 x Tsymb  T_RX_late = T
 T_RX_early =
T
= 5 x Tsymb –– RXwindow
w Addition
nnaly the diffference betw
ween t_RX_late and T_RX_early corrresponds to the maximum timing error ran
nge of the re
eceiver thereefore:  T_RX_late – T
T_RX_early = 2 x RXerror To allow
w this maximum timing eerror range tthe receiver should be p
programmed to ideally tu
urn‐on at the mid‐‐point betweeen T_RX_latte and T_RX__early , thereefore:  RXoffset = (TT_RX_late + TT_RX_early)//2 So assum
ming the RX
Xerror param
meter is set (RXerror is a direct co
onsequence of a given design, d
it dependss on the oscillator precision, temperaature drift, …
…) We can d
deduce:  RXwindow == 2 x Tsymb ++ 2 x RXerrorr  RXoffset = 4 x Tsymb – R
Rxwindow/2
Because the minimu
um RXwindo
ow must be at least 5 syymbols longg, the system
m always tolerates at least an RXerror of at least 1.5 x Tsymb Revision 2 – June 2015 ©2015 SSemtech Corrporation Page 9 of 16
6
www.semttech.com AN1
1200.24
4
SX1276 Se
ettings ffor LoR
RaWAN
N
WIREL
ESS SENSING
G & TIMING PRODUCTS APPLICATIION NOTE Numericcal applicatio
on: The senssor can achie
eve a +/‐ 1.5
5mSec timingg drift after aa 1sec sleep period and is using SF7//125kHz At SF7/1
125kHz Tsymb = 1mSec So we seet RXerror = 1.5mSec We dedu
uce RXwindo
ow = 2 x Tsymb + 2 x RXeerror = 2 x 128
8 / 125e3 + 3
3e‐3 = 5mSecc The RXw
window is expressed in syymbol unit in the SX127
76 transceiveer, at SF7 a ssymbol is 1m
mSec long thereforre the RWwin
ndow corresponds to 5 ssymbols. The senssor will progrrammed to sstart with RX
Xoffset =
= 4 x Tsymb –
– RXwindow//2 =
= 4e‐3 – 2.5e
‐3 = 1.5e3.
Withoutt timing erro
or, the receeiver should
d turn on exactly e
1.5mSec after th
he beginning of the downlink preamble. The senssor can achie
eve a +/‐ 20m
mSec timingg drift after aa 1sec sleep period and iis using SF7//125kHz RXwindo
ow = 2 x Tsyymb + 2x RX
Xerror = 42m
mSec , this is larger thaan 5 symbolls , therefore we set RXwindo
ow to the immediatemy ggreater or eq
qual length w
which is an in
nteger multiple of Tsymb
b  RXwindow == 42 x Tsymb = 42mSec Then:  RXoffset = 4 x Tsymb – R
RXwindow/2 = ‐17mSec The receeiver should be programm
med to start 17mSec beffore the startt of the downlink preamble The sam
me sensor but now using SF10/125kH
Hz instead off SF7 At SF10//125kHz Tsym
mb = 8.2mSeec RXwindo
ow = 2 x Tsyymb + 2x RX
Xerror = 56.4
4mSec , this is larger than 5 symbols , thereforre we set RXwindo
ow to the immediately grreater or equ
ual length wh
hich is an intteger multiple of Tsymb  RXwindow == 7 x Tsymb == 57.4mSec
Then:  RXoffset = 4 x Tsymb – R
RXwindow/2 = 4.1mSec The receeiver should be programm
med to start 4.1mSec aftter the start of the downlink preamble Revision 2 – June 2015 ©2015 SSemtech Corrporation Page 10 of 1
P
6
www.semttech.com AN1
1200.24
4
SX1276 Se
ettings ffor LoR
RaWAN
N
WIREL
ESS SENSING
G & TIMING PRODUCTS APPLICATIION NOTE The follo
owing tables give a few n
numerical exaamples for vvarious SF / B
BW/ timing eerror sets: Rxerrror +/‐ 1.5
5 mSec BW 125
5 kHz SF 7 8 9 10 11 12 Tsymb RXoffset (mSec) 1.0 2.0 4.1 8.2 16.4 32.8 (mSec) 1.5 3.1 6.1 12.3 24.6 49.2 RX wind
dow Symb 5.0 5.0 5.0 5.0 5.0 5.0 mSec 5.1 10.2 20.5 41.0 81.9 163.8 Rxerrror +/‐ 20
0 mSec BW 250
0 kHz SF 7 8 9 10 11 12 Tsymb RXoffset (mSec) 0.5 1.0 2.0 4.1 8.2 16.4 (mSec) ‐18.7 ‐17.4 ‐14.3 ‐8.2 4.1 24.6 RX wind
dow Symb 81.0 42.0 22.0 12.0 7.0 5.0 mSec 41.5 43.0 45.1 49.2 57.3 81.9 Rxerrror +/‐ 20
0 mSec BW 250
0 kHz SF 7 8 9 10 11 12 Tsymb RXoffset (mSec) 0.5 1.0 2.0 4.1 8.2 16.4 (mSec) ‐18.7 ‐17.4 ‐14.3 ‐8.2 4.1 24.6 RX wind
dow Symb 81.0 42.0 22.0 12.0 7.0 5.0 mSec 41.5 43.0 45.1 49.2 57.3 81.9 Revision 2 – June 2015 ©2015 SSemtech Corrporation Page 11 of 1
P
6
www.semttech.com AN1
1200.24
4
SX1276 Se
ettings ffor LoR
RaWAN
N
WIREL
ESS SENSING
G & TIMING PRODUCTS APPLICATIION NOTE 3.2 G
GFSKMode
e
3.2.1 RegisterSe
R
ettings
Receiverr‐specific setttings  RxBw=50kHzz // single sid
de Carson BW
W=50kHz  AfcBw=83.3k
A
kHz // assum
ming +/‐30pp
pm of LO misalignment att 869.525 MHz  AgcAuto=On
A
n  Preamble De
etection On, over 2 Bytess, Number off samples in error = 10  AfcAutoOn A
rOn  AfcAutoClea
A
 RxTrigger=Prreamble  LnaBoost=On SX1276 Register (addresss) Register bit field (bit #)) Values
No
ote RegLna (0xx0C) LnaGain[[7:5] LnaBoosttHf[1:0] RestartRxOnCollision[7]] RestartRxWithoutPllLocck[6]
RestartRxWithPllLock[5
5] AfcAutoO
On[4] AgcAutoOn[3] RxTrigger[2:0] RxBwMaant[4:3]
RxBwExp
p[2:0] RxBwMaantAfc[4:3]
RxBwExp
pAfc[2:0] PreambleDetectorOn[7
7] PreambleDetectorSize[6:5] PreambleDetectorTol[4
4:0] AutoResttartRxMode[7:6] PreamblePolarity[5] SyncOn[4
4] FifoFillCo
ondition[3] SyncSize[2:0] PacketFo
ormat[7] DcFree[6
6:5] CrcOn[4]] CrcAutoC
ClearOff[3] AddressFFiltering[2:1] CrcWhiteeningType[0] DataMod
de[6] SyncValu
ue[63:56] SyncValu
ue[55:48] SyncValu
ue[47:40]
‘001’
‘11’ ’0’ ‘0’ ‘0’ ‘1’ ‘1’ ‘110’ ‘01’
‘011’ ‘10’
‘010’ ‘1’ ‘01’ ‘01010’ ‘00’ ‘0’ ‘1’ ‘0’ ‘002’ ‘1’ ‘10’ ‘1’ ‘1’ ‘00’ ‘0’ ‘1’
0xC1 0x94 0xC1
LN
NA gain set to th
he highest gain LN
NA Boost enablee No
o restart on collision Co
orrects frequency offset Au
utomatic gain control Trigs on preamble only Re
eceiver Bandwid
dth =50kHz SSB
B RegRxConfig (0x0D) RegRxBw ((0x12) RegAfcBw (0x13) RegPream
mbleDetect (0x1F) RegSyncCo
onfig (0x27) RegPackettConfig1 (0x30) RegPackettConfig2 (0x31) RegSyncVaalue1 (0x28) RegSyncVaalue2 (0x29) RegSyncVaalue2 (0x2A) Re
eceiver Bandwid
dth =83.3kHz SSB for AFC
Prreamble detecto
or enable Prreamble detection over 2 bytees 10
0 chip errors tollerated over deetection Au
utoRestart OFF Prreamble 0xAA Syync Address enaable Filll FIFO when Syync Address is d
detected 3 B
Bytes of Sync W
Word Vaariable length p
packets W
Whitening encod
ding enable En
nable CRC calcu
ulation PaayloadReady IRQ will always be geenerated at thee end of the frame, f
CRC must be checked through dedicated flag No
o address filteriing CC
CITT CRC and W
Whitening impleementation Paacket Mode
Syync Address is 0
0xC194C1 Revision 2 – June 2015 ©2015 SSemtech Corrporation Page 12 of 1
P
6
www.semttech.com AN1
1200.24
4
SX1276 Se
ettings ffor LoR
RaWAN
N
WIREL
ESS SENSING
G & TIMING PRODUCTS APPLICATIION NOTE Expected
d performance: @ BER=0
0.1% = ‐109d
dBm (confirm
med with PER
R on a short p
packet) Operatio
on Flowchartt for Receiverr The follo
owing flowch
hart shows h
how the receeiver should be operated
d for each reeception slott in GFSK mode. Figure 4: FSSK Rx Operation Flowchart Revision 2 – June 2015 ©2015 SSemtech Corrporation Page 13 of 1
P
6
www.semttech.com AN1
1200.24
4
SX1276 Se
ettings ffor LoR
RaWAN
N
WIREL
ESS SENSING
G & TIMING PRODUCTS APPLICATIION NOTE DownlinkPresent tim
meout : timerr started wh
hen the devicce is set to R
Rx mode. Sizzed to only lleave the receiver open for a short amount of time w
when the downlink comm
mand is exp
pected. It is m
meant to nc Word + maargin, so sho
ould be set to
o 1.3ms. capture 5 bytes of Prreamble + 2 Bytes of Syn
The “Syn
ncAddress” interupt can be mapped
d to the DIO2
2 line of thee SX1276 orr can alternaatively be polled th
hrough the SSPI interface. The “PayyloadReady”” interrupt caan be mappe
ed to the DIO
O0 line of th
he SX1276, o
or polled through the SPI interrface. 3.2.2 RXWindow
R
wPreciseTiminginGF
FSKMode
We notee FSKbitrate tthe bit rate o
of the GFSK m
modulation iin bit per secc The GFSK frame preeamble is 8 b
bytes long (5
5 bytes preamble + 3 bytes sync word), thereforre the RX window and the begginning of thee TX preamb
ble must overrlap on 8*8/FSKbitrate seec The LoRaaWAN v3 only supports aa single GFSK
K bit rate = 5
50kbits/sec Thereforre the overlaap must be equal or greater than 1.3m
mSec So using the same no
otation than in the LORA
A section we have: 0  T_RX_late = T
 T_RX_early =
T
= 1.3mSec – RXwindow
Similarlyy we can ded
duce that for 50kbit/sec G
GFSK the min
nimal RXwind
dow is:  RXwindow == 1.3mSec + 2
2 x RXerror
and  RXoffset = – Rxwindow/2
2 Revision 2 – June 2015 ©2015 SSemtech Corrporation Page 14 of 1
P
6
www.semttech.com AN1
1200.24
4
SX1276 Se
ettings ffor LoR
RaWAN
N
WIREL
ESS SENSING
G & TIMING PRODUCTS APPLICATIION NOTE 4 Ra
andomNu
umberGe
enerationforCry
yptograph
hy
The LoR
RaWAN MA
AC softwaree layer requires the generation g
of truly random numbers for cryptogrraphy purposses. This can be achieved
d using the naturally rand
dom noise off the radio channel. The reco
ommended w
way to generrate a random
m binary num
mber is the ffollowing: Radio receiver settin
ngs: SX1276 Reegister (address)
Regisster bit field (bit #)
Values
Note
RegOpMode (0x01) LongRangeMode[7] Mode[2:0] Bw[7
7:4] Codin
ngRate[3:1] ImpliicitHeaderModeOn[0] SpreaadingFactor[7:4
4] ‘1’
‘101
1’ ‘011
11’
‘001
1’ ‘0’
‘011
11’ LoRa mode enable Receive Continuous mode ‘0111’ for 125
5kHz modulatio
on Bandwidth
4/5 error cod
ding rate Packets have up‐front headeer ‘0111’ (SF7) == 6kbit/s RegModem
mConfig1 (0x1D
D)
RegModem
mConfig2 (0x1EE) To generate an N bit random number, perfform N read
d operation of o the registter RegRssiW
Wideband (addresss 0x2c) and use the LSB
B of the fetcched value. The T value frrom RegRssiW
Wideband iss derived from a w
wideband (4M
MHz) signal sstrength at the receiver iinput and the
e LSB of this value constaantly and randomlly changes. The RegRssiValue re
egister (at ad
ddress 0x1b)) should nott be used fo
or random number geneeration. It has been
n experimentally measurred that if a constant CW
W input poweer is applied at the receiver input inside th
he current re
eceiver channel the LSB o
of the RegRsssiValue regiister may bee constant orr strongly biased. Revision 2 – June 2015 ©2015 SSemtech Corrporation Page 15 of 1
P
6
www.semttech.com AN1
1200.24
4
SX1276 Se
ettings ffor LoR
RaWAN
N
WIREL
ESS SENSING
G & TIMING PRODUCTS APPLICATIION NOTE © Semtech 2015 All rights rreserved. Repro
oduction in who
ole or in part iss prohibited witthout the prior written consen
nt of the copyriight owner. The inform
mation presenteed in this docum
ment does not form part of an
ny quotation orr contract, is beelieved to be acccurate and reliable an
nd may be chan
nged without n
notice. No liability will be acceepted by the publisher for any consequencee of its use. Publication thereof doess not convey no
or imply any liccense under paatent or other iindustrial or intellectual property rights. Semtech aassumes no ressponsibility or liability whatso
oever for any faailure or unexp
pected operatio
on resulting fro
om misuse, neglect im
mproper installaation, repair or improper hand
dling or unusuaal physical or electrical stress including, but not limited to, exposu
ure to parameteers beyond the specified maximum ratings orr operation outtside the specified range. SEMTECH PRODUCTS AR
RE NOT DESIGN
NED, INTENDED
D, AUTHORIZED
D OR WARRAN
NTED TO BE SU
UITABLE FOR USE IN LIFE‐
SUPPORT APPLICATIONS,, DEVICES OR SSYSTEMS OR OTTHER CRITICAL APPLICATIONS. INCLUSION OF SEMTECH PRO
ODUCTS IN SUCH APP
PLICATIONS IS UNDERSTOOD TO BE UNDERTAKEN SOLELYY AT THE CUSTOMER’S OWN RISK. Should a a customer purchase o
or use Semtech
h products for any such unautthorized appliccation, the custtomer shall indemnify and hold Semtech and its offficers, employees, subsidiariess, affiliates, and
d distributors harmless againsst all claims, cossts damages an
nd attorney fees which
h could arise. Contact Information Semttech Corporration Wirele
ess Sensing and Timingg Products D
Division 20
00 Flynn Ro
oad, Camariillo, CA 93012 Phon
ne: (805) 49
98‐2111 Faxx: (805) 498‐3804 E‐m
mail: suppo
ort_rf_na@
@semtech.co
om In
nternet: htttp://www.ssemtech.co
om Revision 2 – June 2015 ©2015 SSemtech Corrporation Page 16 of 1
P
6
www.semttech.com