iC880A QuickStart Guide - QuickStart Guide
Open Source Driver on Github
confidential
iC880A_QuickStartGuide.docx, Wireless Solutions, V0.6
page 9 of 15
3.3.2
File: lora_gateway/libloragw/src/loragw_spi.ftdi.c
As second step a small modification must be done in one of the low level connection files. The
WiMOD iC880A LoRa Concentrator board uses a FTDI USB to SPI converter chip that is not
supported in Semtech’s reference code. The only difference is another USB PID. Therefore the
USB PID settings in the
libloragw
library have to be adjusted prior compiling the library.
Open the file lora_gateway/libloragw/src/loragw_spi.ftdi.c with your favorite editor (e.g. nano)
nano lora_gateway/libloragw/src/loragw_spi.ftdi.c
Find the block with the “
PRIVATE CONSTANTS
” (around line 50 in the file) and change the
line
#define PID
0x6010
to
#define PID
0x6014
Afterwards save the file and close the editor.
3.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.
3.5
Setting up “udev” Rules
The FTDI USB chip needs to be run in the SPI mode. Therefore an “udev” rule must be installed
on the Linux host system. This rule will configure the right mode automatically when the iC880A
device is connected to the host system. In order to install the udev rule the following steps must
be done: