Introduction of LoRa
What is LoRa?
LoRa® is the abstract of Long Range. It is one of the major long-range and lower-power wireless communication systems developed by Semtech Corporation.
LoRa® is the physical layer or the wireless modulation utilized to create the long range communication link… It is based on chirp spread spectrum modulation, which maintains the same low power characteristics as FSK modulation but significantly increases the communication range… LoRa® is the first low cost implementation for commercial usage.
As it provides an attractive combination of features – super long-range, low-power consumption, multi-usage, minimal cost, and encrypted data transmission – LoRa operated in both public and private networks are able to provide much greater coverage compared with the cellular network.
The long-range and low-power nature of LoRa, therefore, is critical for its application in the Industrial Internet of Things (IIoT) which improves our living standards rapidly. It solves many new challenges in both rural and urban areas around the world, including climate change, pollution, and natural disasters, etc. Due to its convenience and profitable attributes, Lora as a kind of Low-Power Wide Area Networks (LPWAN), is widely adopted in transportation, manufacture, facilities, household appliances, and even wearable devices.
Technically, how does LoRa function?
Generally, IoT has many technological solutions to transfer data over a network, including LoRa, NB-IoT, WiFi, Bluetooth, Zigbee, and sub-1GHz. But in most cases, long transmission distance and energy conservation can barely be guaranteed simultaneously in wireless communication network systems, because more energy is always needed for longer transmission distance. Thus, LoRa which can ensure both long-range and low-power is the most optimal choice in situations where transmitting a comparatively small amount of data over the long-distance is needed.
To help you establish a direct and basic overview of the application & feature of LoRa, this diagram below shows you the comparison between LoRa and many other commonly used wireless network technologies.
So how does LoRa solve the contradiction between and energy and distance while guaranteeing high efficiency?
Technically, LoRa encodes information by using frequency chirps with a linear variation of frequency. According to edited by Dongkyun Kim, the frequency offset between the transmitter and the receiver can reach 20% of the bandwidth without impacting decoding performance. This largely reduces the price of LoRa transmitters but creates a sensitivity of the order of -130dBm. At the same time, LoRa improves the sensibility and the anti-interference ability of receivers by generating the Forward Error-correction code (FECs) that corrects errors from the environment. Therefore, compared with traditional modulation schemes like Frequency-Shift Keying (FSK) that requires a Signal to Noise Ratio (SNR) to 8dB, LoRa only needs an SNR of -20dB. As well, the payload of each transmission can range from 2-255 octets and the data rate can reach up to 50 Kbps when channel aggregation is employed.
What are the pros and cons of LoRa?
To know the characteristics of the technology is critical for determining the possible application. Here we make a list to show you some pros and cons of LoRa. You can use it as a reference to think of fields that LoRa suits the most.
- Maximizing transmission distance by adopting a spread spectrum gain., LoRa provides communications up to three miles (five kilometers) in urban areas, and up to 10 miles (15 kilometers) or more in rural areas.
- Long lifespan: even if the communication distance has reached 5 km, LoRa can still maintain its energy-saving nature in a superior way. For example, , a Seeed industrial IoT product, can maintain its battery use for more than 6 years if the data upload interval is once per hour.
- Working in the free ISM frequency range, which provides a convenient manner for common people to use the network and significantly reduces the cost of network deployment.
- Low transmission speed: LoRa has a comparatively narrower bandwidth and is only suitable for sensor networks.
- Higher price of hardware: as a new product/technology, LoRa has not been widely applied as cellular does. This slightly boosts the price of LoRa products.
LoRa VS LoRaWAN
Many people think LoRa and LoRaWAN are the same things, as these two have similar names and are often used together. But the fact is they have distinctive concepts.
LoRa is based on a chirp spread spectrum modulation that supports an ultra-long distance wireless transmission, while LoRaWAN is a set of communication protocols and system architecture designed for LoRa long-distance communication network. In other words, LoRa is a radio frequency carrier signal based in the physical (PHY) layer that converts the data it receives to signals. And LoRaWAN is a protocol located in the Media Access Control (MAC) layer that promotes the LoRa signals to wider applications. As well, LoRa is one of the most commonly used LPWAN, especially in the application of IoT corporations and devices.
LoRaWAN network architecture
LoRaWAN architecture contains four major parts: end nodes, gateway, network server, and application server. Star topology is adopted between gateways and end nodes, and a single wireless hop is applied to communicate between these two devices. After gathering data, end nodes are able to send messages to multiple gateways at the same time by using LoRa Radio Frequency (RF). Cellular, WiFi, Dust and Mop and or Ethernet Backhaul then help forward the received information in gateways to the network server, the last part which is eligible to finalize the uploading of the packets to the application servers.
Introduction of LoRaWAN
LoRaWAN™ defines the communication protocol and system architecture for the network while the LoRa® physical layer enables the long-range communication link.
LoRaWAN is an LPWAN standard based on an open-source MAC layer protocol brought out by LoRa Alliance. It is able to provide local, nationwide, or global network to the battery-powered wireless devices. LoRaWAN specifically focuses on the core demand of IoT, including secure bidirectional communication, accessible mobility, and location identification, etc. Its design has an extreme-easy-to-use mindset, which enables IoT users and developers to develop and deploy the technology flexibly and rapidly.
With great reliability and practicality, LoRaWAN has widespread network deployment as there are more than a hundred LoRaWAN network operators around the world, which is clearly shown on the map below.
Star Topology in LoRaWAN
As we mentioned above, LoRaWAN architecture presents as a star topology. Compared with Mesh topology, Star topology can do a better job in maintaining long battery life while enforcing the range of communication.
(comparison between Mesh and Star topology)
In Star topology structures, messages are transmitted from end nodes to the central servers by using gateways. Gateways act as transparent bridges and only bi-directionally convert the information it receives. Each end node concurrently sends data to multiple gateways and then gateways retransmit data to the network server.
Star topology has three obvious advantages:
- Ensures the reliability of LoRaWAN: no data collision will occur because all devices are asynchronous. When one fails to work properly, the other can still send data to the central server.
- No need for additional communication between gateways, as end nodes can send data to multiple gateways instead.
- Energy-saving: compared with mesh topology (with large communication range but has weak network capacity and short battery lifetime), star topology maximizes both the battery lifespan and the long-distance connectivity.
LoRaWAN classifies three types of LoRa end nodes that serve distinctive requirements and cover almost all kinds of IoT applications. introduces that “The device classes trade off network downlink communication latency versus battery lifetime.” The below chart form shows details of three classes of LoRa end nodes which can give you a better understanding of the difference of features and the application of the three types of end nodes:
Moreover, all end nodes have to join the network before sending out data. There are two major ways to enact this process: Over-the-Air Activation (OTAA) and Activation by Personalization (ABP).
First, the end node sends “join requests” to the gateway to enact network accessing processes. network server then verifies information including device keys. As long as all information is correct it will send notifications to the end node and start distributing DevAddr. The end nodes and the network server will generate NwkSKey and AppSKey based on information such as AppKey, to encrypt and verify data.
If using ABP to access the network, the operation procedure is more simplified. By directly configuring the three communication parameters – DevAddr, NwkSKey, and AppSKey, the end nodes can directly send out data for application without additional procedures.
The LoRa Alliance® is the fastest growing technology alliance. A non-profit association of more than 500 member companies, committed to enabling large scale deployment of Low Power Wide Area Networks (LPWAN) IoT through the development and promotion of the LoRaWAN® open standard.
Here are some members of LoRa Alliance (updated 2019). that widely develop LoRa technology into industrial IoT products, especially for serving smart agriculture, smart city and other environmental sensing scenarios.
Application of LoRa technology
Because of its great reliability and outstanding performance, LoRa and LoRaWAN assist more IoT products to contribute to the establishment of smart agriculture, smart cities, and smart industry in recent years
Since 2016, Seeed has started to develop LoRa products, especially to help independent developers around the world turn their novel ideas into creative inventions. At the same time, we realize there is a large and increasing demand for industrial-grade products that can be deployed outdoors and collect data stably and wirelessly for long-term use. Therefore, in 2018, we began to invest in developing Industrial IoT products. The is one of the most popular Industrial LoRa IoT products. It is suitable for applications in a wide range of fields, including outdoor farming such as tea growing on high mountains, fruits & vegetable cultivation in greenhouses, different categories of husbandry, environmental monitoring, and weather stations, just to name a few.
Here at Seeed, we are continuously developing LoRa products to meet different application needs. We are looking forward to cooperating with system integrators, technology providers, and other partners in making LoRa technologies more accessible to different applications in various industries.
Seeed Studio LoRa-E5 LoRa wireless module powered by , the smallest and cost-effective LoRa SoC with certification and covered global bands, will be launched soon!