Lora / Lorawan Tutorial 2
Lora / Lorawan Tutorial 2
com
v1.0.0
mobilefish.com
INTRO
• In this tutorial I will explain what the difference is between LoRa and LoRaWAN.
• Several
products will be shown in this video. They are not payed endorsements. I have
bought all these products myself.
• There are many LoRa gateway and Lora development board manufacturers.
If you plan to buy such products do your own research.
mobilefish.com
LORA
• LoRa is an acronym for Long Range and it is a wireless technology where a low
powered sender transmit small data packages (0.3 kbps to 5.5 kbps) to a receiver over
a long distance.
• Multiple gateways can receive data from the same end node.
Source: https://lora-alliance.org/sites/default/files/2018-04/what-is-lorawan.pdf
mobilefish.com
UPLINK AND DOWNLINK
• When an end node transmits data to the gateway it is called an uplink.
• When the gateway transmits data to the end node it is called a downlink.
uplink gateway
end node
downlink
mobilefish.com
LORAWAN HOW IT WORKS
• An end node broadcast its data to every gateway in its vicinity.
• The network server collects the messages from all gateways and filters out the
duplicate data and determines the gateway that has the best reception.
• Thenetwork server forwards the packet to the correct application server where the
end user can process the sensor data.
the application server can send a response back to the end node.
• Optionally
When a response is send, the network server receives the response and determines
which gateway to use to broadcast the response back to the end node.
mobilefish.com
LORAWAN HOW IT WORKS
mobilefish.com
DIRECT COMMUNICATION BETWEEN LORA DEVICES
• The LoRaWAN protocol does not support direct communication between end
nodes.
• Ifyou want direct communication between LoRa devices without the use of gateways,
use the RadioHead Packet Radio library for embedded microprocessors. It provides a
complete object-oriented library for sending and receiving packet sized messages via a
variety of radios such as LoRa on a range of embedded microprocessors:
https://www.airspayce.com/mikem/arduino/RadioHead/
• RadioHead does not have an official GitHub repo but several people have cloned the
Radiohead library on GitHub.
mobilefish.com
LORA PROTOCOL STACK
Application Layer
Media Access Control (MAC) Layer LoRaWAN
Class A Class B Class C