LoRa/IoT B.Tech/Diploma Beginner

Setting up LPS8N LoRaWAN Gateway with The Things Network

Setting up Dragino LPS8N LoRaWAN Indoor Gateway & Register on The Things Network Server TTN with the 915MHz frequency n-Channel LoRa Nodes

  • Suitable forB.Tech/Diploma LoRa/IoT students
  • Build time1-2 weeks
  • LevelBeginner
  • Available atAjvika Labs, Kakinada

About this project

Overview
This article provides a guide on how to set up the Dragino LPS8N open-source LoRaWAN Indoor Gateway with The Things Network Server (TTN Server). In LoRaWAN communication, there are LoRa nodes, LoRa gateways, Network Servers, and Application Servers. In this guide, we will focus on setting up a gateway and registering it on The Things Network Server to receive data from LoRa nodes. Earlier we learned to set up
LPS8 LoRaWAN Gateway
, but LPS8N is more advanced.
The LPS8N is an open-source LoRaWAN Indoor Gateway that bridges LoRa wireless to IP networks via WiFi, Ethernet, 3G, or 4G cellular network, allowing for low-data rate, long-range data transmission. It uses a Semtech packet forwarder and the LoRaWAN Station connection is fully compatible with LoRaWAN protocol and includes an SX1302 LoRaWAN concentrator with 10 programmable demodulation paths. LPS8N has pre-configured LoRaWAN frequency bands for different countries but can be customized. It can communicate with ABP LoRaWAN end nodes without a LoRaWAN server and can be used by system integrators to integrate with existing IoT services.
Setting up a LoRaWAN gateway is essential for building a LoRaWAN network. A gateway is responsible for forwarding data between the LoRa nodes and the Network Server, which then sends the data to the Application Server. The LPS8N Indoor LoRaWAN gateway supports both Ethernet and Wi-Fi connectivity and can connect to The Things Network Server with ease.
Purchase Link
:
LPS8N Gateway
Dragino LPS8N Indoor LoRaWAN gateway
The LPS8N is a LoRaWAN Indoor Gateway that operates on an open-source platform. With its WiFi, Ethernet, 3G, or 4G cellular network connectivity options, it enables the bridging of LoRa wireless networks to IP networks. The LoRa wireless technology provides users with the ability to transmit data over incredibly long distances at low data rates.
This device uses the Semtech packet forwarder and is fully compatible with the LoRaWAN protocol. It comes equipped with an SX1302 LoRaWAN concentrator that allows for 10 parallel demodulation paths to be programmed.
The LPS8N comes pre-configured with standard LoRaWAN frequency bands for use in different countries. Users can customize these frequency bands for their own LoRa network.
One of the key features of the LPS8N is its ability to communicate with ABP LoRaWAN end nodes without the need for a LoRaWAN server. This makes it an excellent option for system integrators looking to integrate the device into their existing IoT service without setting up their own server or using a third-party LoRaWAN service.
Additional features of the LPS8N include an OpenWrt system, a web GUI for management, SSH via WAN or WiFi for remote access, and the ability to emulate 49x LoRa demodulators. It also supports the Semtech Packet Forwarder, LoRaWAN basic station, and optional 3G/4G cellular connectivity. The device supports different levels of login and allows for the local decoding of ABP end node information and transfer to an MQTT server.
Hardware
The gateway has an antenna to receive the LoRa Packets in 8-channels. On the front side, it has a USB Type C port for Input Power of DC 5V,2A. Apart from the power, it also has an Ethernet port, USB Host Port & a Toggle button to reset the gateway.
The other sides of the Gateway have SIM Card slot to install a 4G Sim Card for Cellular Connectivity.
There are two antenna ports for connecting an antenna as LoRa Antenna and a 4G Antenna.
At bottom of the gateway, it has the LoRa Pico Station information Like Model-LPS8N, Frequency Band, Serial Number, and the WiFi mac address.
LED Indicators
LPS8N has totally four LEDs, They are:
Power LED
: This
RED LED
will be
solid
if the device is properly powered.
Wireless LED
: No function yet.
SYS LED
: This
RGB LED
will show different colors on the different states:
SOLID BLUE
: The device is alive with a LoRaWAN server connection.
BLINKING BLUE
: a) Device has an internet connection but no LoRaWAN Connection. or b) Device is in the booting stage, in this stage, it will
BLINKING BLUE
for several seconds and then with
SOLID RED
and
BLINKING BLUE
together
SOLID RED
: The device doesn’t have an Internet connection.
ETH LED
: This LED shows the ETH interface connection status.
Button Instruction
LPS8N has a black toggle button, which is:
➢
Long press 4-5s:
The gateway will reload the Network and Initialize wifi configuration
LED status:
SYS LED will BLINKING BLUE Until the reload is finished.
➢ Long press more than 30s: T
he gateway will restart and restore factory settings.
LED status:
When the user releases the button, the LED will TURN OFF.
How to configure LPS8N Indoor LoRaWAN Gateway?
There are three methods to configure the LPS8N LoRaWAN Gateway. By default, the LPS8N is configured as a WiFi Access Point. To access and configure the LPS8, you can connect to its WiFi network or use its WAN Ethernet port.
1. Connect via WiFi
At the first boot of LPS8, it will auto-generate a WiFi network called
dragino-xxxxxx
with password:
dragino+dragino
You can use a PC to connect to this WiFi network. The PC will get an IP address of
10.130.1.xxx
and the LPS8N has the default IP
10.130.1.1
2. Connect via Ethernet with DHCP IP from router
Alternatively, connect the LPS8N Ethernet port to your router and LPS8N can obtain an IP address from your router. In the router’s management portal, you should be able to find what IP address the router has assigned to the LPS8. You can also use this IP to connect.
3. Connect via WiFi with DHCP IP from router
If the LPS8N already connects to the router via WiFi, use can use the WiFi IP to connect to LPS8N.
Configuring Network Connection to Gateway
You can use any of the methods mentioned above to connect the Gateway to WiFi Network. The LPS8N is configured as a WiFi Access Point by factory default. So I followed the first method to connect to the network.
The Gateway will generate WiFi access point called
dragino-xxxxxx
with password:
dragino+dragino
. Connect to that Access point by entering the password.
After successful connection, open any of the Web Browser. Then browse to the following IP:
10.130.1.1
. A web page like the below will appear.
Enter the User Name:
root
& Password:
dragino
. Then hit enter. A webpage like below will appear.
The login page will show internet connectivity status. If it is connected to the internet, it is wifi or ethernet. The webpage will also show the status of LoRaWAN connection, the LoRa connection, and the Access point connection.
At this moment the Dragino LPS8N LoRaWAN Indoor Gateway doesn’t have an internet connection. So, first, we need to configure the LPS8N as a WiFi client by providing the Wifi credentials.
Go to the network, then click on WiFi.
The following Webpage will appear.
Click on the WiFi survey and select your WiFi Network. Then enter the WiFi password. Also “Enable WiFi client” option. Finally, you can click on save and apply.
Now you will get the following response as green. Congratulations, your Gateway is connected to the WiFi Network.
Now uncheck the above Enable WiFi access point option and click on the save and apply button. This will disable the Access Point. At this time you need to find the IP Address of your Gateway. You can get the IP Address from your WiFi Router Login page.
In case if you are unable to get the IP Address of your Gateway then you can connect the Gateway via Ethernet with fall back IP. The complete process is explained in the
LPS8N User Manual
Configuring Gateway Frequency & Gateway ID
Now, we need to setup the LoRa frequency. To do that go to the LoRa option as shown in the image below.
From the frequency option you need to select your LoRa frequency. Currently, I am using my LoRa devices from Canada which is in Nother America. The LoRaWAN frequency allocated for this region is 915MHz.
You can select the frequency band allowed in your region. There

Technologies used

LoRaLoRaWANMQTTWiFiBLE

Software & tools

  • MQTT

What you get

  • Working project / hardware kit, tested before delivery
  • Complete source code with explanation
  • Project demo and guidance for your viva
  • Project report, PPT and IEEE paper support (on request)
Delivery & Payment
Delivery takes a minimum of two weeks from the date your inquiry is confirmed. Payment is in two parts: • 50% advance to start the project • Remaining 50% before delivery Note: • Documentation and PPT are not included by default • If you need documentation/PPT, it can be arranged for extra time and cost We'll confirm the exact timeline and cost with you after reviewing your requirements.