-
Notifications
You must be signed in to change notification settings - Fork 39
Part 3: Compile LoRa gateway software
Raspberry-Pi is powerful enough and Raspbian image comes with gcc, git... We are going to compile from inside Raspberry-Pi, we need not cross-compile in a desktop PC and then upload the binaries to Raspberry-Pi.
Open a console or SSH session, default username is "pi" and password "raspberry".
First of all we need the FTDI driver (libmpsse.so). Don't try to find it in internet because it is platform dependent. It is better to compile it from sources:
sudo apt-get update
sudo apt-get install git --assume-yes
sudo apt-get install libftdi-dev --assume-yes
cd ~
wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libmpsse/libmpsse-1.3.tar.gz
tar zxvf libmpsse-1.3.tar.gz
cd libmpsse-1.3/src
./configure --prefix=/usr --disable-python
make
sudo make install
cd /etc/udev/rules.d
sudo wget https://raw.githubusercontent.com/mirakonta/lora_gateway/master/libloragw/99-libftdi.rules
sudo udevadm control --reload-rules
sudo udevadm trigger
sudo adduser pi plugdev
cd ~
Now we can continue with the LoRa gateway: download the sources and compile them. Once finished basic_pkt_fwd should be compiled and copied in ~/lora/exec:
mkdir ~/lora
cd ~/lora
mkdir exec
git clone https://github.com/mirakonta/lora_gateway.git
git clone https://github.com/mirakonta/packet_forwarder.git
cd ~/lora/lora_gateway
make clean all
cd ~/lora/packet_forwarder
make clean all
cp ~/lora/packet_forwarder/basic_pkt_fwd/basic_pkt_fwd ~/lora/exec/
cp ~/lora/packet_forwarder/gps_pkt_fwd/gps_pkt_fwd ~/lora/exec/
cp ~/lora/packet_forwarder/gps_pkt_fwd/global_conf.json ~/lora/exec/
cd ~/lora/exec
Finally we can execute the LoRa gateway:
sudo ./gps_pkt_fwd
This tutorial was made using these links:
https://github.com/Lora-net/lora_gateway/blob/v3.1.0/libloragw/install_ftdi.txt
https://github.com/Lora-net/packet_forwarder/wiki/Use-with-Raspberry-Pi
Visit http://www.scoop.it/t/the-french-wireless-connection follow me at @nestorayuso or email me at nestorayuso@gmail.com