0% found this document useful (0 votes)
35 views14 pages

Tutorial Lorawan With Murata Lora Module

This document is a tutorial on establishing a LoRaWAN network using the Murata module Type CMWX1ZZABZ-091 and STMicroelectronics B-L072Z-LRWAN1 Discovery kit. It outlines the necessary hardware, software, and tools required, as well as the steps for device registration, activation methods (OTAA and ABP), and configuration parameters. Additionally, it provides guidance on setting up tools and firmware for successful communication within the LoRaWAN network.

Uploaded by

Jaqueline Silva
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views14 pages

Tutorial Lorawan With Murata Lora Module

This document is a tutorial on establishing a LoRaWAN network using the Murata module Type CMWX1ZZABZ-091 and STMicroelectronics B-L072Z-LRWAN1 Discovery kit. It outlines the necessary hardware, software, and tools required, as well as the steps for device registration, activation methods (OTAA and ABP), and configuration parameters. Additionally, it provides guidance on setting up tools and firmware for successful communication within the LoRaWAN network.

Uploaded by

Jaqueline Silva
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Tutorial:

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

a Murata LoRa module


at
Mu
r CMWX1ZZABZ-091
my
om
fr
y, 7 46
on
l 29
71
n ce -
n.
Software: f er
e
.c
o m
ti
o
Re ag ca
 I-CUBE-LRWANl, er
t
01
8
t if
i
t ia r ac ,
2
no
http://www.st.com/en/embedded-software/i-cube-lrwan.html
n t 2 1 t
i de @ l h ou
nf i p r i t
Co s ch Ap wi
o y
Tools: a ul a y, p pl
p d a
 STM32Cube MCU t ur Package
m a y
Sa e
g
an
http://www.st.com/en/embedded-software/stm32cube-mcu-packages.html?querycriteria=productId=LN1897
Ch

 ST-Link Utility
http://www.st.com/en/development-tools/st-link-v2.html

 Partners IDE (KEIL, IAR, Eclipse)


http://www.st.com/content/st_com/en/support/partners/third-parties-for-mcu-tools.html#3
Copyright © Murata Manufacturing Co., Ltd. All rights reserved. 15 March 2018 2
Advance Preparation
 DevEUI:
• Globally unique identifier for device
• Need to obtain OUI from IEEE. Then create DevEUI using the certified OUI
a
 Network Server/Application Server:Murat
• Contact Network/Application server m
my providers and setup your account
o
• ,
fr Network/Application
Alternatively, establish your own 46
server
l y
297
on 71
n ce -
n.
re m o
fe co ti
Re a g. ca
rt 8 i
l, ce 2 01 t if
a a no
ti tr ,
den @ 21 ut
l o
n fi ip ri th
Co s ch Ap wi
ulo y, p ly
pa rd
a ap
tu y
Sa ma
n ge
Cha

*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

Configuration file LoRa stack


a ta
Mur
my
om
fr State machine and API
, 46
MCU97driver
ly 2 Encryption engine
on 71
nce -
n. MAC
e o m o
fer .c ti
Re t ag 8 i ca
l ,
c er 2 01 tif PHY interface
tia ra , no
n t 21
de @ l o ut
fi ip ri th
Co
n
s ch Ap wi Examples of Application
ulo y, ply
pa d a ap
ur y
Sa
t ma
n ge
Cha
Project files
for each IDE

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

LORAWAN_NWKSKEY ABP Configure NetSkey

LORAWAN_APPSKEY ABP Configure AppSkey

Copyright © Murata Manufacturing Co., Ltd. All rights reserved. 15 March 2018 10
Main Configuration File (Regional)

In the case of AS923…


File Parameter Description

AS923_NUMB_DEFAULT_CHANNELS ta Set the number of channels


ra
Mu
AS923_DEFAULT_DATARATE my Set DataRate (DR=0~7)
om
fr
y , 7 46
AS923_DEFAULT_MAX_EIRP l 9 Set EIRP
on 7 12
e -
e nc m on
.
AS923_LC1,eAS923_LC2 r c o i Set the channel
f . t
Re t ag 8 i ca
er 01 f
a l,
AS923_RSSI_FREE_TH c 2 o ti Set threshold for RSSI Free
i a n
e nt tr 2 1, t
RegionAS923.h d @ o u
n fi AS_CARRIER_SENSE_TIME
i p r il th
h p i Set duration for carrier sense
Co c A w
l os , l y
u y p
pa r da ap Set default TX Power
AS923_DEFAULT_TX_POWER
tu y
Sa ma
e
a ng
Ch
AS923_DEFAULT_UPLINK_DWELL_TIME Set default uplink dwell time

AS923_DEFAULT_DOWNLINK_DWELL_TIME Set default downlink dwell time

AS923_MAX_NB_BANDS Set Max Band number

 Parameters configuration for each region is required


Copyright © Murata Manufacturing Co., Ltd. All rights reserved. 15 March 2018 11
Parameters Changing (1)
The following parameters can be modified in main.c
 Adaptive Data Rate (ADR)
 Data transmission period
 Message type (Confirmed or Unconfirmed)
ta
ra
Mu
ADR (OFF ► ON) om
my
fr
y, 746
on
l 29
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, p ly
pa rd
a ap
tu y
Sa ma
n ge
Cha

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

Enjoy your design journey!


Copyright © Murata Manufacturing Co., Ltd. All rights reserved. 15 March 2018 14

You might also like