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
Essentials
  • Learn
  • Learning Center
  • Essentials
  • More
  • Cancel
Essentials
Documents LoRaWAN for IoT Applications
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Essentials requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: pchan
  • Date Created: 24 Apr 2018 10:31 PM Date Created
  • Last Updated Last Updated: 13 Oct 2023 8:22 PM
  • Views 9552 views
  • Likes 20 likes
  • Comments 99 comments
Related
Recommended

LoRaWAN for IoT Applications

Profile Image

As the Internet-of-Things (IoT) becomes more mainstream, one of the issues to consider has been how to send tiny bits of information from miniscule sensors over long distances using extremely low power. The general class of a network capable of wide area connection using low power is called a Low Power Wide Area Network (LPWAN). Among LPWAN technologies, Long Range Wide Area Network or LoRaWAN is proving to be an extremely effective solution with practical applicability to IoT applications. In this Learning Module, we take a close look at LoRaWAN technology.
Related Components | Test Your Knowledge

2. Objectives


Upon completion of this module, you will be able to:

  • Define LoRaWAN technology
  • Describe what LoRaWAN can be used for
  • Explain how LoRaWAN works
  • Compare LoRaWAN to other LPWAN technologies

3. What is LoRaWAN?

Back to Top

diagram 1
Figure 1: LoRaWANTm is a standard that defines the communication protocol for LPWAN technology based on the LoRa chipset. It allows low-powered devices to communicate with Internet-enabled applications across long range wireless connections.

LoRaWAN is the name for a network technology protocol stack that is based on the LoRa chipset. LoRaWAN is maintained by the LoRa Alliance, which includes among its membership companies such as Cisco, IBM, Semtech, HP, Orange, Proximus, ARM, Microchip, NEC, and many others.  (See full list.)

LoRaWAN is ideally suited for IoT applications that require sensing at long ranges (2-15 km; 1-9 miles). LoRaWANs are characterized by a star-of-stars topology.  LoRaWAN finds applications in Smart grid, Smart cities, industrial automation, farming, and much more.

4. What Can LoRaWAN Be Used For?

Back to Top

For wireless connectivity, many different technologies are available. However, technologies such as WiFi, Bluetooth, and ZigBee are all most suited to shorter range communications. For communication over long distances, these technologies cannot be used at all, or if they can be used, the cost-benefit in terms of high power consumption per bit of information transmitted makes their use unfeasible (See Figure 2).

LoRa Zigbee Bluetooth WiFi
Topology Star of Stars Mesh, Star Star Star
Battery life Decades Years Days Hours
Maximum Data Rate 50 kbps 250 Kbps 1 Mbps 54Mbps
Coverage 5-15 kilometers 70-300 meters 100 meters 50-100 meters
Table 1: Comparison of WiFi, Bluetooth and Zigbee to LoRa

For many IoT applications, the actual amount of data to be transmitted is relatively small, so the higher data rate of some unlicensed band technologies (WiFi/Bluetooth) is not required. Here a special class of technologies is being designed under the broad umbrella of Low Power Wide Area Network (LPWAN), that have the characteristics of being low data rate, low power consumption, and long range. LoRaWAN belongs to the LPWAN set. Other technologies in the LPWAN domain include NB-IoT (Narrow Band IoT), SigFox, Random Phase Multiple Access (RPMA), Weightless, and more. LPWANs are usually characterized by long range, low power consumption, a capacity to support a large number of nodes, and robustness to interference.

LoRaWAN is particularly suited to low-cost, high-volume applications that require primarily uplink capabilities. But LoRaWAN having a downlink capability is beneficial in certain situations. In the next section, we will be looking at how the uplink/downlink combination comes into play with different classes of LoRaWAN service.

4.1 LoRaWAN Applications

Application areas for LoRaWAN include industrial automation, manufacturing, precision farming, smart grid, pipeline monitoring, environment monitoring, smart cities, and healthcare. It is usually suited to applications in which data has to be gathered and aggregated from a number of remote locations. The star of stars topology of LoRaWAN makes it suited to the aggregating function, and the relatively long range (up to 5 km urban and 15 km rural) makes it suitable for applications such as precision farming, smart grid, or smart cities, where data has to be gathered from a localized area but one that nonetheless can stretch for a few miles or kilometers.

Smart City

Things Network Architecture
Figure 2: The Things Network Architecture

When the LoRaWAN network was initially set up by The Things Network for the city of Amsterdam, it was able to cover the whole city using only 10 Gateways. The entire network was setup by academics, researchers, and volunteers in a matter of weeks. It is free for use by anyone in the city. (As of writing this module, the Amsterdam LoRaWAN network has grown to 51 gateways with 120 contributors.)

Livestock Monitoring

LoRa Livestock Monitoring
Figure 3: LoRa Livestock Monitoring System

Cattle feed lots can lose billions of dollars each year from sick cows. One way to combat this problem is for the rancher to be more aware of the livestock's health. This can be done by using LoRa-enabled cattle tags that can measure the cow's body temperature, head movement, and mobility. Cattle health data can be gathered in an application server, with reduced mobility and body temperature as key indicators of sickness. Once a sick cow is identified, a rancher would remotely video conference with a veterinarian, who can then check the cow's vitals and other biometric data. This system can get faster care to the sick cow while preventing the sickness from spreading throughout the herd.

Radiation Leak Detection

Lora Radiation Leak detection
Figure 4: Lora Radiation Leak Detection and Alert System

Another example of a LoRaWAN application is radiation leak detection. In America, many people live within 10 miles of a nuclear power plant. As such, this circumstance can pose a potential safety hazard. One way to limit the safety risk is to place radiation leak detectors throughout the plant and the adjacent community, so radiation can be monitored. Radiation leak detectors can be made of sensors and gateways embedded with LoRa technology. Radiation level data is collected by LoRa-enabled sensors. Data is regularly sent to a LoRa gateway, which in turn sends the information to the network server where it gets analyzed.  An application server can send alerts to the plant manager and/or community via mobile device, computer, or other media.

5. How Does LoRaWAN Work?

Back to Top

We will consider 3 planes when discussing LoRaWAN operation. The first one is the topological plane in which we will look at how a LoRaWAN network is set up and how data is aggregated. In the second, we will look at the classes of operation for LoRaWAN; you can also think of these as modes. Finally, we will look at some of the specific radio technology aspects of LoRaWAN.

5.1 Topology

LoRaWAN topology is a star of stars. The ultimate information gatherers are the nodes, which are often called "motes" as a carryover from sensor network terminology. Typically, motes sense information and send it to a localized gateway that is within range. This is the lower level of the star of stars. Each gateway that is connected to motes in its local region forms a star.

LoRaWAN architecture
Figure 5. A typical LoRaWAN network architecture (Source: Experimental Performance Evaluation of LoRaWAN: A Case Study in Bangkok/IEEE).

Gateways are connected to an aggregating server using a separate backhaul technology (i.e. traditional internet connectivity, not using LoRaWAN). Gateways connecting to the server then form the upper level of the star of stars. (See Figure 5).

One Hop Transmission
Figure 6: Mote to Gateway is a One Hop Transmission

Note how the motes have very limited capability; they do not perform any routing function. The transmission from mote to gateway is simply a one-hop transmission in range. It is conceivable that a mote may be within the range of more than one gateway. If more than one gateway were to pick up the same information/message, the server is capable of detecting that, and in terms of Acknowledgements (ACKs), the server designates one of the gateways to be the responder/acknowledger.

All motes on a LoRaWAN are provided with a 32-bit dynamic address. Each device has a unique 64-bit identifier. Thus, they are similar to MAC addresses used in many other networking technologies.

5.2 Classes

LoRaWAN has 3 operational modes or classes of operation. In this section, we will discuss each class:

Class A: Class A is the basic mode and all LoRaWAN nodes must support this mode. The mote looking to uplink to the gateway looks to see if the channel is free. If free, it can transmit information to the gateway. Thereafter, the mote waits two receive time slots in which it is expecting communication from the gateway. Typically, this is when the gateway would send an Acknowledgement (ACK) indicating that it received the uplink message from the mote correctly. This is also the time when the gateway can send other information using one of the two downlink slots (but not both).

Class A operation is completely asynchronous, so the mote only tries to transmit when it has something to transmit, and then stays “on” for the duration of the communication. The rest of the time the mote can save power by being in a power-save mode in which the radio and associated circuitry can be turned off.  Class A is essentially an ALOHA-like uplink protocol, which means that even though power consumption is low, the efficiency of channel utilization is low and it may take several attempts to get reliable communication.

Class B: Class B is also called a Beacon mode. This mode extends the operation of Class A by scheduling time slots for downlink transmission. A periodic Beacon message is sent out by the Gateway. As is typical with Beacon messages, this Beacon is used to synchronize clocks between the Gateway and the motes (to correct for clock drift); additionally, the Beacon also specifies specific time slots or time windows during which it wishes to send information to specific motes. Having this information from the Beacon, the associated mote then can “come alive” during those time slots to receive the required communication.

A device can still do class A operation at any time if it is ready to transmit information, provided it works with the time framing as specified by the Beacon. Obviously, the power consumption in this mode is higher because the device has to be alive when the Beacon is expected, and in additional listening slots if so specified by the Gateway.

Class C: Class C is a fully synchronous mode in which the mote, when it is not transmitting, is always listening for communications from the Gateway. Not surprisingly, this mode is called the “Continuously Listening” mode. Class C would require a continuous or frequently changeable power source and is likely to not be used frequently in practice (because if there is a power infrastructure available, then there may also be other networking capabilities available).

Both Class B and Class C can be used to multicast messages from the Gateway to motes, i.e. all motes can receive the same message from the Gateway simultaneously.

Over-the-air (OTA) updates (ex: firmware updates) to motes are unfeasible in Class B and even Class C because packet sizes in LoRaWAN need to be small. If packet sizes are increased, this would have an effect on the reliability of the transmission and would in turn reduce the range of transmission.

5.3 Radio Technology

As we have mentioned before, there is LoRa and there is LoRaWAN. It is essential to understand the difference between the two terms. LoRa refers to the radio chipset or wireless technology that is used for the devices. Semtech is the original manufacturer of this technology. (Microchip and STMicroelectronics are now able to manufacture chipsets under license.) But LoRaWAN refers to the protocol stack used for communication and utilizes the LoRa physical layer. As we saw before, LoRaWAN is maintained by the LoRa Alliance. We may think of LoRa as referring to the Physical (PHY) layer of the LoRaWAN protocol stack.

5.4 Chirp Spread Spectrum Technology

diagram7a_WirP2
(a)
diagram7b_WirP2
(b)
diagram7c_WirP2
(c)
Figure 7: Chirp modulation uses sinusoidal waveforms whose instantaneous frequency increases (a) or decreases (b) over time. LoRaWAN transmissions work by chirping, that is, separating the chirps in various places relative to time and frequency to encode information (c).

LoRa uses Chirp Spread Spectrum (CSS) technology. CSS is a wideband Spread Spectrum technology. In layman's terms, CSS spreads the transmission over a wide bandwidth. CSS was originally developed as an alternative to Ultra Wide Band (UWB, sometimes called wireless USB). It is distinguished from more traditional Spread Spectrum (SS) such as Direct Sequence (DSSS; used in CDMA and WiFi) and Frequency Hopping (FHSS; used in WiFi and cordless phones) in that it does not add any pseudo-random elements to help distinguish the signal from noise on the channel; instead, it relies on the predictability of the Chirp signal for that purpose. CSS is also more resistant to multipath fading and Doppler shifts.

LoRaWAN signals are resistant to noise at low power. The signal level actually appears below the noise floor. [The noise floor in a communication network is the amount of ambient noise detected at a certain spectrum band.] The predictable properties of the signal and wide band make it distinguishable from the noise floor.

LoRa uses CSS with Spreading Factors (SF) ranging from SF7-SF12. Typically, increasing SF means reducing the data rate while making the signal more robust to noise. In LoRaWAN, the mote is allowed to select the SF to optimize for power consumption and range.

5.5 Frequency Bands

One of the advantages of a technology like LoRaWAN is that it has been designed to work in an unlicensed band. Thus, devices and applications can be easily deployed without having to go through an extensive approval process with the FCC (or other regional communications regulatory body). However, one of the disadvantages of LoRaWAN is that in the sub-GHz spectrum different bands are available in different regions of the world. Thus, we have the following regional bands of operation for LoRaWAN, making it less portable from one region to another (although there is some overlap in the 900 MHz ISM bands):

  • United States: 902-928 MHz ISM
  • European Union: 863-870 MHz and 433 MHz
  • China: 779-787 MHz ISM; 433.575 MHz
  • Australia: 915-928 MHz ISM
  • Asia: 923 MHz ISM
  • South Korea: 920-923 MHz ISM
  • India: 865-867 MHz ISM

5.6 Other Details

We have already discussed that ACKs are used to confirm message transmission. This improves the reliability of the communication while sacrificing some of the channel capacity; although by now you will have observed that with typical packet sizes in the 10s of bytes with a data rate of up to 50 kbps, a large number of messages can still be transmitted. In an ALOHA like (i.e., random access protocol developed at the University of Hawaii) broadcast situation with no synchronization, the probability of packet collision is fairly high and so ACKs are desirable to know whether or not your transmission succeeded.

Security is provided through AES-128 (substitution permutation network (SPN) block cipher algorithm). There are 3 distinct keys:

  • AppKey: An application key known to the device and the application: this is used for Over-the-Air (OTA) Authentication (OTAA); on session activation, the other two keys are generated.
  • NwkSkey: A Network Session Key (Public): this is used to do a Message Integrity Code (MIC) check to ensure that messages are not tampered with in transition.
  • AppSkey: Application Session Key (Private): this is used to encrypt the message payload.

6. Comparison of LoRaWAN to Other LPWAN Technologies

Back to Top

As you can see in table 2 below, LoRa is somewhat similar in many respects to other LPWAN technologies. The question arises then: why should one choose LoRa over any of the others? The best way to answer that question is to examine some key factors. Of course, the choice of the specific technology is definitely dependent on the application. For example, the 50 Kbps speed may not be sufficient for certain applications.

In IoT applications, power and range—a suitable combination of power range—is extremely important. With LoRa technology at a medium cost, one can get a good range (up to 15 km rural) while having the kind of power consumption that enables motes to keep going for years, even decades (estimates of 20 years on a single battery are common). And for that decent power/range combination you also get a pretty good speed of up to 50 Kbps in both uplink and downlink.

On top of that, there are two features that make LoRa technology attractive for IoT applications. One is the security, which is robust, and the second is the fact that there is flexibility of application through the use of the 3 classes of operation. Other attractive features include the fact that the standard is maintained by an Alliance and is not proprietary, and even though the chipset technology is proprietary, Semtech, the manufacturer, is sharing that with other manufacturers such that there is going to be a range of LoRaWAN offerings in the marketplace. Finally, the use of an unlicensed band is always attractive in terms of time-to-market for new LoRa device manufacturers and Spectrum Regulatory compliance (although this may be less relevant to the end user, it does have an impact, as we have observed a wide range of devices in unlicensed bands).

Of the cons for LoRaWAN technology, the chief one is the fact that, although working in an unlicensed band, the band itself is not consistent in different regions of the world. The bands used in North America, Europe, and Asia are different, and this puts a burden on the manufacturer looking to sell applications in expanded markets. This is not that much of a concern for the DIY end user, however.

LoRaWAN SigFox NB-IoT LTE-M RPMA Weightless-P LinkLabs Symphony Link
Model Alliance Proprietary Open Open Proprietary Open Proprietary
Frequency Band Sub-GHz, variable 868 MHz, 902 MHz LTE Various 2.4 GHz Sub-GHz 150 MHz - 1 GHz
Spectrum Unlicensed Unlicensed Licensed Licensed Unlicensed Unlicensed Unlicensed
Range (km) urban: 2-5
rural: 15
urban: 3-10
rural: 30-50
urban: 1-5
rural: 10-15
urban: 2-5 urban: 1-3
rural: 25-50
urban: 2 urban: 2-5
rural: 15
Speed (up/down) 50 kbps/50 kbps 300 bps/- 250 kbps/250 kbps 1 Mbps/1 Mbps 634 kbps/156 kbps 100 kbps/100 kbps 100 kbps/100 kbps
Power consumption Low High High Low Medium High Medium
Cost Estimate Medium Low Medium High High Low Medium
Table 2: Comparison of LoRaWAN to other LPWAN Technologies
*The longer range in rural environments is due to Line-of-Sight communications being possible. The max range is always possible when there is direct line of sight. Rural environments are also less likely to have obstructions that absorb the signal, such as buildings. (Note that trees can still be a factor.) The terrain in applications such as farming is also expected to be relatively flat, once again making for better communication.
** It's clear that a lot of LPWAN technologies use sub-GHz spectrum. The reason for this is that the radio characteristics are favorable in this frequency range, providing longer range at lower power.

7. Getting Started with LoRaWAN

Back to Top

The best way to get started with LoRaWAN is to get started with an evaluation kit. In the LoRa development boards' page of this learning module, we provide additional information about a wide array of LoRA development boards and kits, for makers to professional users, including Arduino, Microchip, The Things Network, Laird Technologies, Mikroelektronica, ST Microelectronics, and Pycom.

*Trademark. Microchip is a trademark of Microchip Inc. Other logos, product and/or company names may be trademarks of their respective owners.

Shop our wide range of LoRa products, including development kits, demonstration boards, LoRA transceivers, and RF modules.

Shop Now


Test Your Knowledge

Back to Top

IoT II

IoT II
Complete our IoT II: LoRaWAN for IoT Applications course, rate the document, take the quiz and leave your feedback to earn this badge.

Are you ready to demonstrate your LoRaWAN for IoT Applications knowledge? Then take a quick 15-question multiple choice quiz to see how much you've learned from this LoRaWAN for IoT Applications Learning Module.

To earn the LoRaWAN for IoT Badge, read through the module to learn all about LoRaWAN for IoT Applications, attain 100% in the quiz at the bottom, and leave us some feedback in the comments section.

essentials logo In Partnership with Microchip Logo
Featuring: Arduino, Microelektronica, The Things Network, ST Microelectronics, Laird Technologies, & Pycom

  • iot_ess
  • microchip
  • iot_series
  • lorawan
  • internet_of_things
  • iot
  • lorawan for iot applications
  • element14 essentials: iot ii
  • ess_module
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • Instructorman
    Instructorman over 7 years ago +9
    A much improved Essentials module. Less emphasis on a specific vendor (I liked the use of a link that brings up all dev kits that represent this technology - even though the module was sponsored by Microchip…
  • gregoryfenton
    gregoryfenton over 7 years ago +7
    I host a LoRaWan gateway at home and would really love to learn what I need to use it.
  • tonydbeck
    tonydbeck over 6 years ago +7
    Another really good article - thankyou! LoRaWAN is a radio technology that really interests me due to its range, low power and low cost and also the fact that it is deigned to take data over the LoRa physical…
  • Former Member
    Former Member 7 months ago

    Another interesting module, thank you.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rsjawale24
    rsjawale24 over 3 years ago

    Learnt a lot about LoRAWAN

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • albertabeef
    albertabeef over 4 years ago

    Very good overview image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • vmate
    vmate over 4 years ago

    Nice overview, having dozens of kilometers of range opens up a lot of possibilities

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • navadeepganeshu
    navadeepganeshu over 4 years ago

    This is interesting! Relatively new and rapidly grown technology.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • BigG
    BigG over 4 years ago

    A nice refresher

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • reboleira
    reboleira over 4 years ago

    Very Good

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • stevaras
    stevaras over 4 years ago

    LoRa for IoT !

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • sokol07
    sokol07 over 4 years ago

    Excellent overview of LoRa technology - it's presented better than anyone has ever explained it to me.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kkazem
    kkazem over 4 years ago

    Good.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
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