Tutorial Lorawan With Murata Lora Module
Tutorial Lorawan With Murata Lora Module
Establishing LoRaWAN a
at
with Murata module Type
m y
MABZ
u r
om
fr
, 746
ly 29
on 71
n ce -
n.
e o m o
f er .c ti
Re t ag 8 ica
l, er 01 t if
ti
a ac 2
no
en tr 21
,
d @ l o ut
nfi ip ri th
Co s ch Ap wi
ulo y, ply
pa rd
a ap
tu y
Sa ma
n ge
Cha
March 2018
1 murata.com Copyright © Murata Manufacturing Co., Ltd. All rights reserved. 15 March 2018
1 Copyright © Murata Manufacturing Co., Ltd. All rights reserved. 15 March 2018
List of Items
Hardware:
STMicroelectronics B-L072Z-LRWAN1 LoRa®Discovery kit
ST-Link Utility
http://www.st.com/en/development-tools/st-link-v2.html
*OUI: Organizationally Unique Identifier Copyright © Murata Manufacturing Co., Ltd. All rights reserved. 15 March 2018 3
Process Flow
Condition:
• Network Server: ThingPark(*) powered by Actility
• Activation Method: OTAA or ABP
a
r at
(*) ThingPark Partner web page: https://partners.thingpark.com/ Mu
m y
o m
fr
, 7 46
Process Flow (in the caseonlof OTAA): y
7 12
9
e -
① Setup the tools and r e nc
Firmware c o m
i on
.
fe .
ca
t
Re ag
② Setup your account
t 8 i
l, inc
r
eThingPark 2 01 andtget if AppEUI and AppKey
i a a n o
nt tr 1, t
③ Build project,
fi
d e
i p
@
configure r
l
2
iparameters th
u
o and flash program to the board
n h p i
Co c A w
os
④ Registeraau new device
l y , p
y
onpThingPark
l
p r da a
tu y
⑤ Execute activation Sa ma
process for network commission
n ge
a
⑥ Start Uplink/Downlink Ch communication between the board and ThingPark
Important Notes:
Gateway should be registered on ThingPark before starting the above process
Copyright © Murata Manufacturing Co., Ltd. All rights reserved. 15 March 2018 4
Communication Sequence: ABP vs OTAA
ABP(*) OTAA
a ta
End Network Mur End Network
Device Server my Device Server
om
fr
y, 7 46
on
l 29 Join Request
71
ce -
n.
Data1 transmit re
n
o m o DevEUI
f e .c ti
Re ag ca AppEUI
rt 18 fi
l, e 20 ot
i
ia ac n
en
t tr 21
,
t Join Accept
id @
il ou
nf ip r th NetID
Co sc
h Ap wi
ulo y, p ly DevAddr
pa rd
a ap
y
Data2 Stransmit
at
u
ma
n ge
ha
C Data1 transmit
(*) In case of ABP, users are required to set DevEUI, APPEUI, APPSKEY, NWKSKEY,
NetID and DevAddr to End Device in advance
Copyright © Murata Manufacturing Co., Ltd. All rights reserved. 15 March 2018 5
Device Registration: e.g. ThingPark
ABP OTAA
a ta
M ur
my
om
fr
, 746
ly 29
on 71
n ce -
n.
e o m o
f er .c ti
Re t ag 8 i ca
l, er 01 t if
ti
a ac 2
no
en tr 21
,
d @ l o ut
n fi ip ri th
Co s ch Ap wi
ulo y, ply
pa rd
a ap
tu y
Sa ma
n ge
Cha
Copyright © Murata Manufacturing Co., Ltd. All rights reserved. 15 March 2018 6
Setup Tools and Firmware
Tools:
Install ST-Link Utility
Install Keil MDK-ARM
Install MDK-ARM device pack ta
a
M ur
my
m
LoRaWAN stacky, fro 7 46
on
l 29
71
ce -
n.
User application
er
en o m
ti
o
f .c
Re ag ca
er
t 8
if
i STM32CubeExpansion_LRWAN contains:
LoRa middleware
ia
l, c 2 01 t
t ra , no
de
n
@
t 21 ut LoRa middleware
l o
n fi
MACsc(upper) ip ri th
Co h Ap wi Examples of Application
lo y, p ly
au a ap
MAC
p (lower)
t u rd
ay
Sa m
e
ng
RF IC driver
Ch
a
HAL
RF IC
Copyright © Murata Manufacturing Co., Ltd. All rights reserved. 15 March 2018 7
STM32CubeExpansion_LRWAN:
Project file structure
Copyright © Murata Manufacturing Co., Ltd. All rights reserved. 15 March 2018 8
STM32CubeExpansion_LRWAN
LoRa stack
Peripheral
settings
State machineata
r
and API Mu
my
o m
fr
Encryption
y , 7 46
on
l engine 2
71
9 LoRa configuration file
e -
r en
c
o m on
. (for each region)
c i
fe .
ca
t
Re t ag 8 i
er 01 f
a l, c 2 o ti
i a n
e nt tr 2 1, t
d @ o u
n fi i p r il th
h p i
Co c A w
l os , l y
u y p
pa r da ap PHY
tu y interface
Sa ma
g e
h an
C
Utilities
Copyright © Murata Manufacturing Co., Ltd. All rights reserved. 15 March 2018 9
Main Configuration File (Common)
ABP/
File Parameter Description
OTAA
ABP/
OVER_THE_AIR_ACTIVTION Select activation method
OTAA
a
r at
STATIC_DEVICE_EUI MuOTAA Select configuration method for DevEUI
my
om
fr 6
LORAWAN_DEVICE_EUI y, 7 4OTAA Configure DevEUI
l 2 9
on 71
c e - ABP/
LORAWAN_APPLICATION_EUI en o m n.
oConfigure AppEUI
e r c OTAA at i
f g .
Re ta 8 fi
c
l , e r 0 1 i
ia
LORAWAN_APPLICATION_KEY r ac ,
2 ot
nOTAA Configure AppKEY
n t t 1 t
e @ 2 u
Comissioning.h
f id p i l
t ho
n i r
h
Co STATIC_DEVICE_ADDRESS
sc Ap wi ABP Select configuration method for DevAddr
l o , l y
u y p
pa rd
a ap
u y
Sa
t
LORAWAN_DEVICE_ADDRESS ma ABP Configure DevAddr
g e
an
Ch
LORAWAN_NETWORK_ID ABP Configure NetID
Copyright © Murata Manufacturing Co., Ltd. All rights reserved. 15 March 2018 10
Main Configuration File (Regional)
Copyright © Murata Manufacturing Co., Ltd. All rights reserved. 15 March 2018 12
Parameters Changing (2)
The following parameters can be modified in main.c
Adaptive Data Rate (ADR)
Data transmission period
Message type (Confirmed or Unconfirmed)
ta
ra
Mu
Data transmission periodm (30sec
my ► 60sec)
46► Confirmed)
o
fr
Message type (Unconfirmed
l y ,
2 9 7
on 71
n ce -
n.
e o m o
f er .c ti
Re t ag 8 ica
l, er 01 tif
ti
a ac 2
no
en tr 21
,
d @ l o ut
n fi ip ri th
Co s ch Ap wi
ulo y, ply
pa rd
a ap
tu y
Sa ma
n ge
Cha
Copyright © Murata Manufacturing Co., Ltd. All rights reserved. 15 March 2018 13
To learn more about Murata’s LPWA offerings, please visit:
https://www.murata.com/en-global/products/lpwa?intcid5=com_xxx_xxx_cmn_hd_xxx
a
at
For technical details and information, please
Mu
r visit:
https://my.murata.com/en/web/lrwan_abz/home m y
om
fr
, 746
ly 29
on 71
ce -
To purchase Murata module
re
n TypemABZ, please check:
co io
n.
https://www.murata.com/support/stock? fe .
ca
t
Re t ag 8 i
er 01 f
a l, c 2 o ti
i a n
e nt tr 2 1, t
d @ o u
n fi i p r il th
h p i
To purchaseCo STMicroelectronics
l os
c A
l yB-L072Z-LRWAN1
w LoRa®Discovery kit,
u y , p
please check: pa r da ap
tu y
ma
http://www.st.com/en/evaluation-tools/b-l072z-lrwan1.html
Sa e
a ng
Ch