Build your own LoRaWAN gateway, Step 1: Build the Software

Source: Internet
Author: User
Tags md5 hash prepare ssh git client git clone

Build Your own LoRaWAN gateway, Step 1: Build the software


Introduction

If you only care: to create a LoRaWAN gateway, please refer to "Spend one hours to build their own LoRaWAN gateway"

https://blog.csdn.net/jiangjunjie_2005/article/details/79758720

If you are interested in: building a LoRaWAN Gateway software system, then this article is more suitable. Although it requires a bit of Linux knowledge, it is something that every "patient" person can master.


1th step: Install Linux 1.1 Prepare SD card

Prepare a 4GB capacity, Class 6 above the high-quality SD card, is the premise of using Raspberrypi.


1.2 Download and burn Raspbian

The tool for burning SD card is Win32diskimager

Download and extract the Raspbian-4.1 (recommended to install 4.1, the later version refused SSH login).

Download Link: http://www.rimelink.com/nd.jsp?id=70#_np=107_316



1.2.1 Select the corresponding disk character of SD card, this example is G disk.

(Caution: If you choose the wrong letter, it can result in a disaster----data loss.) )

1.2.2 Find the raspbian-4.1.img mirror file.

1.2.3 Generate MD5 Hash to make sure that the mirrored file is 100% correct.

MD5 Hash = 881ff4362f42a9173bfef07b8301259f

1.2.4 Click Write


1.3 Login via SSH

For Raspberry IP, consult your network administrator or find it from the DHCP table in router. This example is 192.168.1.121

Download PuTTY software: http://www.rimelink.com/nd.jsp?id=33#_np=105_315


User name: Pi

Password: Raspberry

1.4 Enabling SPI Drive

According to the above figure, step-by-step operation, can enable SPI Drive.



After restarting Raspberry Pi, you can see that the SPI was successfully enabled.

2nd step: Compiling software 2.1 New User

User name: Rime

Password: Link



Add sudo permissions to the Rime user.


2.2 Installing GIT client

You can install Git client by entering the following 3 commands to wait for a while (depending on the speed of the network).

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install git


2.3 Download Source program



git clone https://github.com/Lora-net/lora_gateway.git

Git clonehttps://github.com/lora-net/packet_forwarder.git

2.4 Compiling the source program


2.5 Operating System


Explain:

sudo/home/rime/lora_gateway/reset_lgw.sh start 22 is used to reset SX1301

sudo./lora_pkt_fwd start the gateway process

Download this PDF document: http://www.rimelink.com/nd.jsp?id=70#_np=107_316

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.