-
Notifications
You must be signed in to change notification settings - Fork 1
WisLora
The WisLora is WisAp and Lora gateway, here to use RAK831
WisAp:
RAK831 WisAp
5V <===> 5V
GND <===> GND
RST <===> GPIO0
SCK <===> SPI_CLK
CSN <===> SPI_CS
MISO <===> SPI_MISO
MOSI <===> SPI_MOSI
Before you get started, let's review what you'll need.
- WisAp development board - Buy at Rakwireless - wisapBoard
- Micro-USB power cable
- Lora Gateway - RAK831
Open terminal, and type the following:
cd Desktop
git clone https://github.com/RAKWireless/WisCore-SDK.git
Before you run make, you need to set compile environment for the products you use with envsetup.sh, now we want to use the wisap, so we should choose wisAp products types.
cd ~/Desktop/WisCore-SDK
./build/envsetup.sh wisLora hgw
make
Finally compiled generated files firmware in the folder out/target/bin
Note: if you have selected the product and want to comiple other product,you need "make clean" then rebuild
cp ~/Desktop/WisCore-SDK/out/target/bin/firmware /windows/
- 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
-
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 can restart lora gateway
reset_lgw.sh start
- Change the ID and Service
in the configures, you should change the ID which you have registered "Gateway EUI", and you can use lora servece, here service is "router.as1.thethings.network", port is "1700"
vi /usr/bin/packet_forwarder/local_conf.json
vi /usr/bin/packet_forwarder/global_conf.json
-
Start Lora Gateway
/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.