background image

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

Gateway

Sensor

Gateway

Sensor

P-NUCLEO-LRWAN2

P-NUCLEO-LRWAN3

Pictures are not contractual.

Getting started with the P-NUCLEO-LRWAN2 and P-NUCLEO-LRWAN3

starter packs

UM2587

User manual

UM2587

 - 

Rev 3

 - 

December 2021

For further information contact your local STMicroelectronics sales office.

www.st.com

Содержание P-NUCLEO-LRWAN2

Страница 1: ...tarter 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 LoRaWA...

Страница 2: ...de 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 T...

Страница 3: ...r for the ST LINK ARDUINO Uno V3 expansion connector ST morpho extension pin headers for full access to all STM32 I Os RF module and sensor expansion board I NUCLEO LRWAN1 LoRa HF band 868 915 923 MHz...

Страница 4: ...evice Figure 3 STM32 Nucleo LoRaWAN sensor device P NUCLEO LRWAN2 NUCLEO L073RZ main board I NUCLEO LRWAN1 expansion board ST LINK USB VCOM LSM303AGR LPS22HB HTS221 USI module Sensors STM32L073RZT6 mi...

Страница 5: ...ctors XTAL 32 MHz SX1272 860 MHz 1020 MHz STM32L052T8Y6 64 Kbyte Flash 8 Kbyte RAM 2 Kbyte EEPROM SPI1 RESET DIO 0 4 Antenna RFI VR_PA RF SWITCH PA_BOOST U FL XTAL 32 768 kHz ANT TX RX ADC 1 3 Note Th...

Страница 6: ...ity 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 ac...

Страница 7: ...ngle 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 su...

Страница 8: ...n VIN Pin 15 of connector CN8 on the Nucleo board For more details refer to 3 Figure 6 Gateway expansion board P NUCLEO LRWAN2 LF HF identification VIN PF5 GPIO4 PF10 GPIO3 USB for external 5 V supply...

Страница 9: ...PI for SX1301 no connection on board in default PA7 PB5 MOSI optional Backup MOSI of SPI for SX1301 no connection on board in default PD14 CSN optional Backup CSN of SPI for SX1301 no connection on bo...

Страница 10: ...de 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 2...

Страница 11: ...onnectors Mini B USB connector for the ST LINK ARDUINO Uno V3 expansion connector ST morpho extension pin headers for full access to all STM32 I Os RF module and sensor expansion board LRWAN_NS1 LoRa...

Страница 12: ...Figure 9 STM32 Nucleo LoRaWAN sensor device P NUCLEO LRWAN3 LPS22HB HTS221 NUCLEO L073RZ main board LRWAN_NS1 expansion board ST LINK USB VCOM LSM6DS3 RisingHF module Sensors STM32L073RZT6 microcontr...

Страница 13: ...ansion 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 Senso...

Страница 14: ...ry 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...

Страница 15: ...ngle 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 su...

Страница 16: ...of connector CN8 on the Nucleo board For more details refer to 3 Figure 12 Gateway expansion board P NUCLEO LRWAN3 LF HF identification VIN PF5 GPIO4 PF10 GPIO3 USB for external 5 V supply ANT connec...

Страница 17: ...SX1301 no connection on board in default PA7 PB5 MOSI optional Backup MOSI of SPI for SX1301 no connection on board in default PD14 CSN optional Backup CSN of SPI for SX1301 no connection on board in...

Страница 18: ...m en product i cube lrwan A specific firmware project called AT_Master is an example code available only for the STM32L0 Series microcontroller interfacing either with the I NUCLEO LRWAN1 USI LoRa exp...

Страница 19: ...ay MAC address IP DHCP static IP control DNS Sets gets the DNS address NTP Sets gets the NTP server address EUI MAC Address EUI48 to Gateway ID EUI64 padding LORAWAN LoRaWAN network selection public p...

Страница 20: ...binary file At startup firmware checks for frequency band setting compatibility versus RF hardware It displays a warning if the setting is not compatible with the hardware UM2587 STM32F7 Nucleo LoRaWA...

Страница 21: ...W LINK009 from www st com if needed Figure 16 ST LINK driver installation Run the batch file to install 2 On the LoRa expansion board connect the antenna to connector J1 for P NUCLEO LRWAN3 Figure 17...

Страница 22: ...address AppKey AES 128 application key specific to the end device assigned by the application provider that is used to derive the session keys NwkSKey and AppSKey specific to that end device to encryp...

Страница 23: ...TM32 ST LINK Utility 1 Download STM32 ST LINK Utility STSW LINK004 from STMicroelectronics web site and install it 2 Connect the NUCLEO L073RZ Nucleo board with the personal computer by means of the U...

Страница 24: ...Ra_SetDeviceAddress uint32_t DeviceAddr Sets the device address DevAddr LoRa_SetKey ATCmd_t KeyType uint8_t PtrKey Sets the key configuration APPKEY NWKSKE APPSKEY Lora_UpdateConfigTable Updates the D...

Страница 25: ...LINK009 from www st com if needed Figure 20 ST LINK driver installation Run the batch file to install 2 On the LoRa expansion board connect the antenna to connector CN10 for P NUCLEO LRWAN3 Figure 21...

Страница 26: ...further viewing of the LoRa device parameters Port Virtual COM port number assigned to the board from step 4 Baud rate 9600 Data 8 bit Parity none Stop 1 bit Figure 23 Terminal emulation software set...

Страница 27: ...ayload field of MAC only data messages ABP AppSKey Application session key specific to the end device Used by both the network server and the end device to encrypt and decrypt the payload field of 30...

Страница 28: ...uring the sensor device using the AT_Master project Edit firmware to change join mode frequency band device IDs and keys More parameters are reconfigurable The following examples show functions used t...

Страница 29: ...4 On the LoRa gateway expansion board connect an external 5 V supply through its USB Micro B connector CN1 to power the whole board Important power supply must be connected to the gateway shield USB...

Страница 30: ...setting of the LRWAN_GS_LF1 gateway is set to the CN470Prequel frequency band and Loriot CN1 server 6 2 Configuring the gateway to use a different frequency band The ST Nucleo LoRa GW user guide from...

Страница 31: ...867 1 902 3 433 175 779 5 915 2 923 2 922 1 470 3 471 5 865 0625 1 867 3 902 5 433 375 779 7 915 4 923 4 922 3 470 5 471 7 865 2625 2 867 5 902 7 433 575 779 9 915 6 923 6 922 5 470 7 471 9 865 4625 3...

Страница 32: ...114 DNS2 8 8 8 8 NTP SERVER 1 ubuntu pool ntp org EUI PADDING 3 FF 4 FF GATEWAY ID 080027FFFF0C2338 LORAWAN Public LORAWAN SERVER eu1 loriot io UPLINK UDP PORT 1780 DOWNLINK UDP PORT 1780 CHANNEL0 867...

Страница 33: ...ing the LoRaWAN server MAC address and gateway EUI By default the gateway is configured to forward packets to Loriot network server It is possible to use other servers that support the Semtech packet...

Страница 34: ...te for more details about their offer The default network server setting for the P NUCLEO LRWAN2 gateway is eu1 loriot io The corresponding Loriot network server that the user needs to create an accou...

Страница 35: ...way status is updated after a few seconds 7 1 2 Device registration to Loriot network server The device parameters are needed to enroll the device depending on the join mode setting of the device Foll...

Страница 36: ...e 28 Loriot registered device details 7 1 3 Loriot default application output A number of application APIs are available in Loriot Dashboard Application SampleApp Output Click on Add new output and se...

Страница 37: ...k on Add new output 2 Select myDevices Cayenne from the list of supported data output types 3 Click Confirm change Refer to Section 8 to setup the myDevices Cayenne dashboard 7 2 The Things Network TT...

Страница 38: ...The Things Network v3 server Follow the procedure below to register the gateway to The Things Network server Figure 32 The Things Network gateway registration UM2587 The Things Network TTN v3 server...

Страница 39: ...nect to The Things Network on UDP port 1700 AT PKTFWD eu1 cloud thethings network 1700 1700 2 In The Things Network Console Console click on Gateways Add Gateway 3 Provide the necessary gateway inform...

Страница 40: ...7 908 5 1 AT CH 8 907 8 0 8 500 FSB5 AT CH 0 908 7 0 AT CH 1 908 9 0 AT CH 2 909 1 0 AT CH 3 909 3 0 AT CH 4 909 5 1 AT CH 5 909 7 1 AT CH 6 909 9 1 AT CH 7 910 1 1 AT CH 8 909 4 0 8 500 FSB6 AT CH 0...

Страница 41: ...ion data provide the necessary information Frequency plan select Europe 863 870 MHz SF9 for RX2 recommended AppEUI select the app EUI of the device DevEUI enter the device EUI of the device refer to t...

Страница 42: ...7 Click on Register end device to complete the registration Figure 35 The Things Network end device registration UM2587 The Things Network TTN v3 server setup UM2587 Rev 3 page 42 55...

Страница 43: ...overview shows the credentials and status of the last packets received from the device Figure 36 The Things Network registered device overview UM2587 The Things Network TTN v3 server setup UM2587 Rev...

Страница 44: ...gration in The Things Network v3 The network server can also be configured to forward the data to a third party application server like myDevices Cayenne refer to Figure 38 and Figure 39 1 In the Appl...

Страница 45: ...e 38 Cayenne webhook template selection Figure 39 Cayenne webhook settings Refer to Section 8 to setup the myDevices Cayenne dashboard UM2587 The Things Network TTN v3 server setup UM2587 Rev 3 page 4...

Страница 46: ...connected to different LoRaWAN network servers and view the sensor data on the dashboard The widgets are customizable and trigger alerts can be set More details about the myDevices Cayenne dashboard...

Страница 47: ...pplication SampleApp Application ID e Loriot security token refer to Loriot Dashboard Application SampleApp Access Token Authentication Tokens f Tracking i This device moves if the device sends packet...

Страница 48: ...in the firmware code As soon as pockets are received in Cayenne the widgets automatically appear in the dashboard depending on the data types used in the data payload Widgets can be customized as per...

Страница 49: ...er to STMicroelectronics web site at www st com 5 User manual STM32 Nucleo 64 boards MB1136 UM1724 Refer to STMicroelectronics web site at www st com 6 User manual STM32 LoRa Expansion Package for STM...

Страница 50: ...view Section 4 1 Sensor device setup Section 5 1 Sensor device setup and Section 6 1 Gateway setup 14 Dec 2021 3 Updated the registration procedure and configuration parameters in Section 7 2 The Thin...

Страница 51: ...LoRaWAN gateway firmware 18 4 I NUCLEO LRWAN1 sensor device setup and reconfiguration 21 4 1 Sensor device setup 21 4 2 Extracting DevEUI and AppEUI from the LoRa module 22 4 3 Reconfiguring the sens...

Страница 52: ...o The Things Network v3 server 38 7 2 2 Device registration to The Things Network v3 server 40 7 2 3 Setup the myDevices Cayenne integration in The Things Network v3 44 8 Application server setup 46 8...

Страница 53: ...ble 3 AT command list 19 Table 4 Device activation and parameters P NUCLEO LRWAN2 22 Table 5 Device activation and parameters P NUCLEO LRWAN3 27 Table 6 Predefined frequency channel plans 31 Table 7 U...

Страница 54: ...Figure 17 Antenna and personal computer connection 21 Figure 18 USB enumerated instances 22 Figure 19 I NUCLEO LRWAN1 expansion board serial port 23 Figure 20 ST LINK driver installation 25 Figure 21...

Страница 55: ...ts and ST assumes no liability for application assistance or the design of Purchasers products No license express or implied to any intellectual property right is granted by ST herein Resale of ST pro...

Отзывы: