The WisLora is WisAp(Mt7628 + OpenWRT) and Lora gateway, here to use RAK831. It is based on the latest SX1301 driver lora_gateway v5.0.1 and semtech packet_forwarder v4.0.1. We've tested it with TTN.
WisAp:
RAK831:
Here the RAK831 is Lora Gateway
RAK831 WisAp
5V <===> 5V
GND <===> GND
RST <===> GPIO0
SCK <===> SPI_CLK
CSN <===> SPI_CS
MISO <===> SPI_MISO
MOSI <===> SPI_MOSI
Ubuntu16, gcc version 5.x
Before you get started, let's review what you'll need.
Compile dependency with ubuntu 16.04
sudo apt-get install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip
Open terminal, and type the following:
cd Desktop
git clone https://github.com/RAKWireless/RAK831-LoRaGateway-OpenWRT-MT7628.git
Before you run make, you need to set compile environment first with envsetup.sh.
cd ~/Desktop/RAK831-LoRaGateway-OpenWRT-MT7628
./build/envsetup.sh
make
Finally compiled generated files firmware in the folder out/target/bin
cp ~/Desktop/RAK831-LoRaGateway-OpenWRT-MT7628/out/target/bin/firmware /windows/
Click "GATEWAYS"
Click "register gateway"
Fill in, "Gateway EUI" is unique and must consist of exactly 8 bytes hexadecimal, and choose "Frequency Plan", here use 868MHz
Click "Register Gateway"
Finally you will see the gateway overview, and Status is not connected
Connect RAK831 to WisAp
Power on, then setup wifi
Check the connection of RAK831 and WisAp, excute:
/usr/bin/lora/test_loragw_reg
It will display:
if failed, you need check the connnection, or you need restart lora gateway first and try again:
reset_lgw.sh start
check the gateway ID(Gateway EUI) and server address ,make sure they are consistent with The Things Network Control,
vi /usr/bin/packet_forwarder/local_conf.json
power on the Gateway and the packet_forwarder will auto start. check the log file at /usr/bin/packet_forwarder/log
Finally you can see the Status is connected in the gateway overview, then the gateway will be started and you can use it.