STEP 3

Preparing the LoRa Basics™ Station software

In this step , you going to install the necessary software packages to make your new gateway ready for configuration of the packet forwarder for ThingPark Community. Two software packages must be installed to the Raspberry Pi:

  • Semtech® LoRa® Gateway
  • Semtech® Basics™ Station

LoRa Gateway is the Hardware Abstraction Library (HAL) provided by Semtech®  which enables the Raspberry Pi to access the IC808A concentrator over the SPI port. The HAL provides a low level API to control the LoRa SX130x gateway concentrator RF chip. The LoRa Basics™ Station application uses the HAL to receive LoRaWAN® uplinks and transmit LoRaWAN® downlinks, under control of the Network Server. The configuration of the LoRa Basics™ Station packet forwarder to interface with ThingPark Community will be explained at STEP 4

STEP 3a - LoRa Gateway Installation

1

Issue cd ~ command in order to ensure that you are located in the default directory.

2

Issue a git clone command to download LoRa HAL library.

git clone https://github.com/Lora-net/lora_gateway.git

It will create the lora_gateway directory which will contain the LoRa Basics Station source code.

3

Issue a cd command to go to the HAL installation directory.

cd ~/lora_gateway

4

Issue make command to compile the LoRa Gateway and create the executable files.

5

You will see several messages during the Make process, after the last one (below), the HAL application is successfully compiled.

make[1]: Leaving directory ‘/home/pi/lora_gateway/util_spectral_scan‘

STEP 3b - LoRa Basics™ Station Installation

1

issue cd ~ ~ to move to root directory

2

Issue the git clone command to get the LoRa Basics Station.

 git clone https://github.com/lorabasics/basicstation.git

A directory called ~/basicstation will be created.

3

issue cd ~/basicstation command to go to the installation directory

4

Issue make command to compile the Basics Station packer forwarder and create executable files.

5

Issue make platform=rpi variant=std deps s-clean s-all command to compile source files for Raspi

6

After a last message (below), the Basics Station packet forwarder application is successfully compiled.taed

make[1]: Leaving directory '/home/pi/basicstation/build-rpi-std/s2core'

Leave a comment