How to integrate LoRaWAN gateway

Revision as of 16:28, 29 March 2022 by Registered User (→‎Software setup)

1. Article purpose[edit source]

The purpose of this article is to explain how to integrate the LoRa Concentrator Module with STM32MP157F-DK2, managed by Linux on Cortex®-A7.

2. Prerequisites[edit source]

2.1. Hardware prerequisites[edit source]

  • STM32MP157F-DK2
STM32MP157F-DK2

For more information about the STM32 discovery board and how to start it up, jump to this section
Getting_started/STM32MP1_boards/STM32MP157F-DK2

Source.png

Source → STMicroelectronics

  • RAKMODULES
  • RAK EXTENSION
  • NUCLEO-WL55JC1

2.2. Software prerequisites[edit source]

3. Hardware setup[edit source]

The lora concentrator module should be connected to 40 pin connector

3.1. ST hardware[edit source]

3.2. Additional hardware[edit source]

4. Software setup[edit source]

5. Building and Running the example[edit source]

Step 1. Download and compile the STM32MP1 Distribution Package
Step 2. Follow the default Example_of_directory_structure_for_Packages suggested by ST wiki page to follow this document synchronously.
Step 3. Download and clone the layer "meta-st-loragateway" to "meta-st" layer.

 cd $HOME/STM32MPU_workspace/STM32MP15-Ecosystemv3.1.0/Distribution-Package/openstlinux-5.10-dunfell-mp1-21-11-17/layers/meta-st
git clone https://github.com/amitemrkumar/meta-st-loragateway

Step 4. Set up the build configuration.

 DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh

Step 5. Add the meta-st-loragateway layer to build configuration.

 bitbake-layers add-layer ../layers/meta-st/meta-st-loragateway/

Step 7. Build your layer separately and then build the complete Distribution Layer.

   bitbake st-image-weston