We’re giving away 1,500 more DJI Tello drones. Enter to win ›
Get the code
by Kalonji Bankole | Updated October 8, 2018 - Published October 2, 2018
Learn how to set up the hardware platform that takes advantage of LoRaWAN networking provided by The Things Network. In this pattern, you learn how to wirelessly join multiple resource-constrained devices as a network using LoRaWAN networking, collect data for an IoT project at the physical or network layer, and then publish that data to the Watson IoT Platform.
LoRaWAN is a wireless network protocol designed for the Internet of Things, which has a long range (up to 10km in optimal conditions) and requires a minimal amount of battery power from the devices that use it to communicate with each other. This longer range allows for the deployment of larger scale projects, such as smart parking structures, agricultural monitoring, tracking weather conditions, asset tracking, and so on.
Each LoRa network consists of a “gateway”, and one or more “nodes”. This network uses a star-based topology, in which each node communicates directly with the gateway. Data can be sent and received through each gateway/node connection. As data is received by the gateway, the gateway can then convert the data to a readable format and send it up to an IoT platform for further processing.
When you have completed this pattern, you understand how to:
LoRaWAN end nodes power on, sample values from sensors, and send data to Gateway. This process is repeated at a interval set by the user
Gateway receives LoRa packets, and forwards packets up to “The Things Network” (TTN)
TTN processes LoRa packets and confirms packets came from an authenticated device
Gateway receives JSON object containing LoRa payload from to TTN MQTT broker
Gateway decodes LoRa payload (base64 to integer/plaintext) and publishes an updated JSON object to Watson IoT platform
Watson IoT platform receives JSON, updates dashboard and persists sensor values in a Cloudant Database
Ready to put this code pattern to use? Complete details on how to get started running and using this application are in the README file.
Get the Code »
Learn how to integrate LPWAN networking into a standard wireless network architecture for a large-scale IoT solution.
Back to top