Getting started with the P-NUCLEO-LRWAN2 and P-NUCLEO-LRWAN3
starter packs
Introduction
This user manual describes how to get started with the P-NUCLEO-LRWAN2 and P-NUCLEO-LRWAN3 starter packs.
Hardware and software setups are discussed in detail, together with the setup of supported network and application servers.
The P-NUCLEO-LRWAN2 starter pack supports the higher frequency bands (868 MHz and 915 MHz). It includes:
•
A sensor node based on STMicroelectronics NUCLEO-L073RZ Nucleo board and USI® I-NUCLEO-LRWAN1 LoRa
expansion board with antenna
•
A LoRaWAN® gateway based on STMicroelectronics NUCLEO-F746ZG Nucleo board and RisingHF LRWAN_GS_HF1
expansion board with antenna
The P-NUCLEO-LRWAN3 starter pack supports the lower frequency bands (433 MHz and 470 MHz). It includes:
•
A sensor node based on STMicroelectronics NUCLEO-L073RZ Nucleo board and RisingHF LRWAN_NS1 LoRa
expansion board
•
A LoRaWAN® gateway based on STMicroelectronics NUCLEO-F746ZG Nucleo board and RisingHF LRWAN_GS_LF1
expansion board
•Antennas
This user manual also describes the I-CUBE-LRWAN STM32Cube Expansion Package for the sensor node, and the gateway
binary software.
®
®
Figure 1. P-NUCLEO-LRWAN2 and P-NUCLEO-LRWAN3 - LoRaWAN® sensors and gateways
P-NUCLEO-LRWAN2P-NUCLEO-LRWAN3
Sensor
Pictures are not contractual.
Gateway
Gateway
Sensor
UM2587 - Rev 2 - April 2021
For further information contact your local STMicroelectronics sales office.
www.st.com
1P-NUCLEO-LRWAN2 starter pack overview
Figure 2 shows an overview of the P-NUCLEO-LRWAN2 starter pack, which includes a LoRaWAN® sensor
device and gateway as well as the antennas.
Instructions at the back of the insert card guide the users on how to power up and configure the sensor device
and gateway and setup the network.
The starter pack is configured to use the EU868 frequency band with the sensor device in OTAA mode and
the gateway forwarding the packets to Loriot EU1 server. The pack is user configurable by firmware and by AT
commands.
Figure 2. STM32 Nucleo LoRaWAN® development kit (P-NUCLEO-LRWAN2 starter pack)
UM2587
P-NUCLEO-LRWAN2 starter pack overview
UM2587 - Rev 2
The antennas in this product are assembled and locked with the boards, which was not the case in earlier
versions. They do not have to be removed by users to comply with FCC regulations. The current product
packaging is adapted to this configuration. Visuals and illustrations in the related technical documents may differ
from the current product version.
page 2/51
1.1Sensor hardware overview
The P-NUCLEO-LRWAN2 LoRaWAN® sensor device has the following key features:
Main board
•NUCLEO-L073RZ development board (from STMicroelectronics)
–STM32L073RZT6 Arm® Cortex®-M0+ ultra-low-power MCU at 32 MHz with 192-Kbyte Flash memory,
20-Kbyte SRAM and 6-Kbyte data EEPROM
–1 user LED
–1 user and 1 reset push-buttons
–32.768 kHz crystal oscillator
–On-board ST-LINK/V2-1 debugger/programmer with USB re-enumeration capability: mass storage,
Virtual COM port, and debug port
–Board connectors
◦Mini-AB USB connector for the ST-LINK
◦
ARDUINO® Uno V3 expansion connector
◦ST morpho extension pin headers for full access to all STM32 I/Os
I-NUCLEO-LRWAN1 LoRa® HF band and sensor expansion board
The I-NUCLEO-LRWAN1 is supplied by a third party (USI®). For complete and latest information, refer to the third
party GitHub page https://github.com/USILoRaModule/USI_I-NUCLEO-LRWAN1.
Figure 4. I-NUCLEO-LRWAN1 block diagram and connectors
Note:The Nucleo board communicates with the expansion board via the STM32 UART (PA2, PA3). The following
modifications are applied to the Nucleo board:
•SB62 and SB63 are closed
•SB13 and SB14 are opened to disconnect the STM32 UART from ST-LINK
UM2587 - Rev 2
page 5/51
1.2Gateway hardware overview
The P-NUCLEO-LRWAN2 LoRaWAN® gateway shown in Section 1.2 has the following key features:
Gateway main board
•NUCLEO-F746ZG development board (from STMicroelectronics)
–STM32F746ZGT6 Arm® Cortex®-M7 high-performance MCU at 216 MHz with 1-Mbyte Flash memory
and 320-Kbyte SRAM
–3 user LEDs
–1 user and 1 reset push-buttons
–Ethernet compliant with IEEE-802.3-2002
–USB OTG full speed or device only
–32.768 kHz crystal oscillator
–On-board ST-LINK/V2-1 debugger/programmer with USB re-enumeration capability: mass storage,
Virtual COM port, and debug port
–Board connectors
◦Micro-AB USB connector for the ST-LINK
◦
ST Zio expansion connector including ARDUINO® Uno V3
◦ST morpho extension pin headers for full access to all STM32 I/Os
•LoRa® demodulators and 1 GFSK demodulator embedded
•Single +5 V supply
•AT command interface to re-configure the parameters of the gateway
–change frequency plan
–change IP of the gateway
–change MAC address and ID of the gateway
–change network server that supports Semtech packet forwarder
–set to use public server or private server
–change DNS address
–change NTP server address
UM2587 - Rev 2
page 7/51
1.2.1Gateway expansion board
The LRWAN_GS_HF1 gateway expansion board shown in Figure 6 is designed by RisingHF (www.risinghf.com).
It includes a Semtech SX1301 digital baseband circuit integrating the LoRa® concentrator, Semtech SX1257 HF
front-end transceiver module, and two SAW filters to achieve a wider bandwidth range (868 MHz to 915 MHz).
The expansion board is controlled by the NUCLEO-F746ZG via the SPI interface.
The gateway expansion board includes also an external +5 V power supply circuitry, which powers both the
gateway expansion board and NUCLEO-F746ZG development board. The NUCLEO-F746ZG is powered via pin
VIN (Pin 15 of connector CN8 on the Nucleo board).
VINPower supply to NUCLEO-F746ZG from external 5 V
PF5/PD12/PC4/PB9 -GPIO4GPIO4 from SX1301
PF10/PD13/PC5/PB8 -GPIO3GPIO3 from SX1301
PF15-GPIO2GPIO2 from SX1301
PF14-GPIO1GPIO1 from SX1301
PF13-GPIO0GPIO0 from SX1301
PE11-CSNCSN of SPI for SX1301
Pin description
UM2587 - Rev 2
page 8/51
Pin namePin description
PE13-MISOMISO of SPI for SX1301
PE12-SCKSCK of SPI for SX1301
PE14-MOSIMOSI of SPI for SX1301
PE15-RSTReset for SX1301
PD15-Band Set1ST Nucleo LoRa GW HF
PE9-Band Set2
PA5-SCK (optional)
PA6-MISO (optional)
PA7/PB5-MOSI (optional)
PD14-CSN (optional)
•PE9=0, PD15=1: Band EU868
•PE9=1, PD15=0: Band US915/AS915/AU915
Backup SCK of SPI for SX1301
(no connection on board in default)
Backup MISO of SPI for SX1301
(no connection on board in default)
Backup MOSI of SPI for SX1301
(no connection on board in default)
Backup CSN of SPI for SX1301
(no connection on board in default)
UM2587
Gateway hardware overview
Figure 7 presents the architecture of the LRWAN_GS_HF1 gateway expansion board.
Figure 7. Hardware architectures of the P-NUCLEO-LRWAN2 gateway expansion board
BalunLTCC LPF
Transceiver
SX1257
SAW
868 MHz
Baseband
SX1301
LNA
SW
SAW
Transceiver
915 MHz
SX1257
Legend:
HF specific
SW
Emission
SW
Reception
UM2587 - Rev 2
page 9/51
P-NUCLEO-LRWAN3 starter pack overview
2P-NUCLEO-LRWAN3 starter pack overview
Figure 8 shows an overview of the P-NUCLEO-LRWAN3 starter pack, which includes a LoRaWAN® sensor
device and gateway as well as the antennas.
Instructions at the back of the insert card guide the users on how to power up and configure the sensor device
and gateway and setup the network.
The starter pack is configured to use the CN470Prequel frequency band with the sensor device in OTAA mode
and the gateway forwarding the packets to Loriot CN1 server. The pack is user configurable by firmware and by
AT commands.
Figure 8. STM32 Nucleo LoRaWAN® development kit (P-NUCLEO-LRWAN3 starter pack)
UM2587
2.1P-NUCLEO-LRWAN3 starter pack known limitation
The serial number of the NUCLEO-L073RZ MB1136 reference board is indicated on a sticker under the MB1136.
If the number is within the range from A191400001 to A191402004, the board must be updated with a new
firmware before use. Download the last firmware version available at www.st.com/i-cube-lrwan.
UM2587 - Rev 2
page 10/51
2.2Sensor hardware overview
The P-NUCLEO-LRWAN3 LoRaWAN® sensor device has the following key features:
Main board
•NUCLEO-L073RZ development board (from STMicroelectronics)
–STM32L073RZT6 Arm® Cortex®-M0+ ultra-low-power MCU at 32 MHz with 192-Kbyte Flash memory,
20-Kbyte SRAM and 6-Kbyte data EEPROM
–1 user LED
–1 user and 1 reset push-buttons
–32.768 kHz crystal oscillator
–On-board ST-LINK/V2-1 debugger/programmer with USB re-enumeration capability: mass storage,
Virtual COM port, and debug port
–Board connectors
◦Mini-AB USB connector for the ST-LINK
◦
ARDUINO® Uno V3 expansion connector
◦ST morpho extension pin headers for full access to all STM32 I/Os
LRWAN_NS1 LoRa® LF band and sensor expansion board
The LRWAN_NS1 is supplied by a third party (RisingHF). For complete and latest information, refer to
LRWAN_NS1 reference manual [2].
Figure 10. LRWAN_NS1 block diagram and connectors
UM2587 - Rev 2
page 13/51
UM2587
Gateway hardware overview
Note:By default, USART1 (PA9/PA10) is used in the NUCLEO-L073RZ board to control the RHF0M003-LF20 modem.
Optionally, it is possible to use USART2 (PA2/PA3) via jumper resistor on the LRWAN_NS1. Refer to its user
manual. If USART2 (PA2/PA3) is used to control the modem, the following solder bridge on the Nucleo board
must be configured accordingly:
•SB62 and SB63 are closed
•SB13 and SB14 are opened to disconnect the STM32 UART from ST-LINK
Refer to [5] in the USART Communication section for more details.
2.3Gateway hardware overview
The P-NUCLEO-LRWAN3 LoRaWAN® gateway shown in Figure 11 has the following key features:
Gateway main board
•NUCLEO-F746ZG development board (from STMicroelectronics)
–STM32F746ZGT6 Arm® Cortex®-M7 high-performance MCU at 216 MHz with 1-Mbyte Flash memory
and 320-Kbyte SRAM
–3 user LEDs
–1 user and 1 reset push-buttons
–Ethernet compliant with IEEE-802.3-2002
–USB OTG full speed or device only
–32.768 kHz crystal oscillator
–On-board ST-LINK/V2-1 debugger/programmer with USB re-enumeration capability: mass storage,
Virtual COM port, and debug port
–Board connectors
◦Micro-AB USB connector for the ST-LINK
◦
ST Zio expansion connector including ARDUINO® Uno V3
◦ST morpho extension pin headers for full access to all STM32 I/Os
•LoRa® demodulators and 1 GFSK demodulator embedded
•Single +5 V supply
•AT command interface to re-configure the parameters of the gateway
–change frequency plan
–change IP of the gateway
–change MAC address and ID of the gateway
–change network server that supports Semtech packet forwarder
–set to use public server or private server
–change DNS address
–change NTP server address
UM2587 - Rev 2
page 15/51
2.3.1Gateway expansion board
The gateway expansion board shown in is designed by RisingHF (www.risinghf.com). It includes a Semtech
SX1301 digital baseband circuit integrating the LoRa® concentrator, Semtech SX1255 LF front-end transceiver
module, and two SAW filters to achieve a wider bandwidth range (434 MHz to 470 MHz). The expansion board is
controlled by the NUCLEO-F746ZG via the SPI interface.
The gateway expansion board includes also an external +5 V power supply circuitry, which powers both the
gateway expansion board and NUCLEO-F746ZG development board. The NUCLEO-F746ZG is powered via pin
VIN (Pin 15 of connector CN8 on the Nucleo board).