background image

Figure 5. 

STM32 Nucleo LoRaWAN

®

 gateway (P-NUCLEO-LRWAN2)

Gateway additional features

Programmable parallel demodulation paths

LoRa

®

 demodulators and 1 GFSK demodulator embedded

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

Gateway hardware overview

UM2587

 - 

Rev 3

page 7/55

Summary of Contents for P-NUCLEO-LRWAN2

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Reviews: