iC880A-SPI QuickStart Guide - QuickStart Guide
Open Source Driver on Github
confidential
iC880A-SPI_QuickStartGuide.docx, Wireless Solutions, V0.1
page 11 of 17
(As an alternative to an external program, the reset routine shown can also be copied into the
“lgw_spi_open()” function that is located in the file called “loragw_spi.native.c”.)
2.3
Configuration of the Driver
The driver can be configured in order to change the verbosity level of the internal processes
within the library.
The filef ile lora_gateway/libloragw/library.cfg is used as general configuration file for the whole
libloragw
system library. In order to fit the needs of the iC880A-SPI, some parameters can
be set to the following values prior (re-) compiling the library:
DEBUG_AUX= 0
DEBUG_SPI= 0
DEBUG_REG= 0
DEBUG_HAL= 1
DEBUG_GPS= 0
These flags are used by the internal modules of the library to enable / disable additional output
for debugging purposes.
2.4
Compilation of the Library
In order to compile the
libloragw
library it is assumed that a gcc/g++ compiler and a make
utility is already installed and runable.
Enter the lora_gateway folder and execute the make command:
cd lora_gateway
make
This will compile the library and some of the basic test utilities located in the subfolders of
lora_gateway
.
After a successful compilation a library file called “
libloragw.a
” has been created and is
ready for usage now.
2.5
Example Utilities
In the folder
lora_gateway
there are several example utilities showing the usage of the
libloragw
library. This quick start guide will show the “
util_pkt_logger
” and the
“
util_tx_test
”.