Skip to content

Wvirgil123/RAK2247-RAK833-LoRaGateway-OpenWRT-MT7628

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the WisLora wiki!

The WisLora is WisAp(Mt7628 + OpenWRT) and Lora gateway, here to use RAK833. 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.

RAK2247&RAK833 USB interface usage

Compilation environment requirements:

Ubuntu16, gcc version 5.x

Compile SDK

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

Step 1: Clone SDK

Open terminal, and type the following:

cd Desktop
git clone https://github.com/RAKWireless/RAK2247-RAK833-LoRaGateway-OpenWRT-MT7628.git RAK833-LoRaGateway-OpenWRT-MT7628-USB

Step 2: to set compile environment

Before you run make, you need to set compile environment first with envsetup.sh.

cd ~/Desktop/RAK833-LoRaGateway-OpenWRT-MT7628-USB
sudo ./build/envsetup.sh

Step 3: Run Make to compile

sudo make

Finally compiled generated files firmware in the folder out/target/bin

Burn firmware to the board

cp ~/Desktop/RAK833-LoRaGateway-OpenWRT-MT7628-USB/out/target/bin/firmware /windows/

How to burn firmware to Board

To Use LoraGW

  1. Register an account in The Things Network Control, then login and register gateway
  • 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
  1. Power on, then setup wifi or connect to your router with WisAp WAN port directly.

  2. Connect RAK833 to WisAp usb port

  3. Check the connection of RAK833 and WisAp, excute:

    /usr/bin/lora/test_loragw_reg

It will display:

  1. Check the ID and Service

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
  1. Start Lora Gateway

    root@OpenWrt:/usr/bin/packet_forwarder# ./lora_pkt_fwd

Finally you can see the Status is connected in the gateway overview, then the gateway will be started and you can use it. BTY. this project also tested with loraserver.

RAK2247&RAK833 SPI interface usage

the RAK2247&RAK833 mini-PCIe module also support spi connection, here list the procedure tested on EVK-RAK833 board.

Compile SDK

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

Step 1: Clone SDK

Open terminal, and type the following:

cd Desktop
git clone https://github.com/RAKWireless/RAK831-LoRaGateway-OpenWRT-MT7628.git  RAK833-LoRaGateway-OpenWRT-MT7628-SPI

Step 2: to set compile environment

Before you run make, you need to set compile environment first with envsetup.sh.

cd RAK833-LoRaGateway-OpenWRT-MT7628-SPI
./build/envsetup.sh

Step 3: Run Make to compile

make

Finally compiled generated files firmware in the folder out/target/bin

Burn firmware to the board

How to burn firmware to Board

To Use LoraGW

1.connect jumper caps of the EVK board: URXD1/USBTX ,UTXD1/USBRX,GND/3V3/RESET/PPS/CSN/MOSI/MISO/SCK/M1

2.Plug RAK833 to EVK-RAK833 mini-PCIe slot.

3.Reset RAK833 module.

cd /usr/bin
./reset_lgw.sh start 11

4.Check the connection of RAK833 and EVK, excute:

cd /usr/bin/lora
./test_loragw_reg

It will display:

5.Check the ID and Service check the gateway ID(Gateway EUI) and server address.

6.Start Lora Gateway

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.

About

update to lora_gateway v5.0.1 and packet_forwarder v4.0.1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 72.3%
  • Makefile 11.4%
  • C++ 4.8%
  • Shell 4.8%
  • Objective-C 2.1%
  • Perl 1.6%
  • Other 3.0%