element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs RAK831 LoRa Gateway with Raspberry Pi
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: oksbwn
  • Date Created: 27 Sep 2018 5:28 AM Date Created
  • Views 1230 views
  • Likes 4 likes
  • Comments 0 comments
  • lora
  • cheap
  • rak831
  • raspberry pi
  • gateway
Related
Recommended

RAK831 LoRa Gateway with Raspberry Pi

oksbwn
oksbwn
27 Sep 2018

Lately, I have been working with LoRAWAN and I don't have Lora gateway around. As you might be knowing LoRAWAN network requires a gateway to push data to the internet. As Lora is not an IP based protocol the gateway helps it in doing so. Basically, multiple LoRAWAN nodes transmit data to the gateway and the gateway transfers the concentrated data to server backend. Server backend which resides in the cloud contains a network server which helps in managing the network and the application server which is responsible for the data and UI. For that, I have used The Thing Network Server. There are a lot of gateways available as a commercial product and also DIY products and I went with the RAK831 module by RAK Wireless. The module is cheap and works with Raspberry Pi as well so quite handy in terms of DIY. This project is going to be how to configure and use the gateway with the Raspberry Pi.

The first thing we need to do is assemble the Raspberry Pi and the gateway if it is not already assembled. It is pretty much straightforward, but you can check the video for that. After that, we need to prepare the SD card by flashing the Raspbian Lite. You can download the latest version of the OS from here. For flashing the OS you can use Etcher. After OS get flashed to the SD card (I have used 4 GB one) don't forget to create a file named SSH (without any extension) to the SD card, which will enable SSH connection to the Pi. After booting the Pi with the SD card and having an SSH connection, next is to install the required packages for the gateway, First, we need to update the pi, followed by installation of git. After that SPI has to be enabled from raspi-config.

sudo apt-get update
sudo apt-get install git
sudo raspi-config

After git is installed use the command below to clone the spi branch of the ttn-zurich ic880a gateway repository. This will enable the communication to the gateway from the Pi.

git clone -b spi https://github.com/ttn-zh/ic880a-gateway.git

Now navigate to the cloned folder and run the install.sh script to proceed with the installations.

sudo ./install.sh

It will prompt for remote configuration setup or local. You can select anyone but if you are going for the remote you need to push config file to  https://github.com/ttn-zh/gateway-remote-config repository. You can do so by adding your config file to the repository and making a pull request, and it might take up to 24 hours for them to approve. You need to copy the EUI from here which will be used while registering the gateway with TTN. After that just fill up the details as prompted. Now the gateway has to be registered to TTN and for that get into TTN Console. If you don't have an account you will be prompted to create one.  Click on Gateways and select add a new gateway. You will be prompted to fill in some details so fill it up. The important thing is to fill the Gateway ID (Paste the copied device EUI)and select the legacy packet forwarder. 

 

  TTN Gateway Registartion

 

That's it, your gateway will be shown as connected and ready to go.

Video:
You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image
Links:

Repository URL:http://bit.ly/2xFfYrd

Gateway Page: http://bit.ly/2MU6Aol

Etcher: http://bit.ly/2zdS7gK

Raspbian: http://bit.ly/2d4CGfK

 

Blogpost: http://www.weargenius.in/cheap-lora-gateway-using-pi-rak831/

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube