LoRaWAN Class A Devices in Depth Downloadable
LoRaWAN Class A Devices in Depth Downloadable
Class A Devices
Semtech Corporation
November 2019
An In-depth Look at LoRaWAN® Class A Devices semtech.com/LoRa Page 1 of 12
Technical Paper Proprietary
November 2019 Semtech
Introduction
A LoRaWAN®-based network is made up of end devices, gateways, a network server, and application
servers. End devices send data to gateways (uplinks), and the gateways pass it on to the network server,
which, in turn, passes it on to the application server as necessary.
Additionally, the network server can send messages (either for network management, or on behalf of the
application server) through the gateways to the end devices (downlinks).
End devices in a LoRaWAN network come in three classes: Class A, Class B and Class C. While end devices
can always send uplinks at will, the device’s class determines when it can receive downlinks. The class also
determines a device’s energy efficiency. The more energy efficient a device, the longer the battery life.
In contrast, rather than only waiting for one of its sensors to notice a change in the environment or fire a
timer, Class B end devices also wake up and open a receive window to listen for a downlink according to
a configurable, network-defined schedule. A periodic beacon signal transmitted by the network allows
those end devices to synchronize their internal clocks with the network server.
Finally, Class C (“Continuous”) end devices never go to sleep. They constantly listen for downlink messages
from the network, except when transmitting data in response to a sensor event. These devices are more
energy-intensive, and usually require a constant power source, rather than relying on a battery.
To illustrate the different levels of power consumption for each of the different end-device classes, see
Figure 3.
The key characteristic of Class A is that communication is initiated only by the end device.
Downlink messages from the network server are queued until the next time an uplink message is received
from the end device and a receive window (Rx) is opened. This design is specifically geared toward
applications that require downlink communication in response to an uplink, or that can schedule
downlinks ahead of time with fairly loose latency requirements.
Receive Windows
Following an uplink, a Class A end device opens a short receive window (Rx1) and, if no downlink is
received during that period, it opens a second receive window (Rx2). The start time of Rx1 begins after a
fixed amount of time following the end of the uplink transmission. Typically, this delay is one second,
however this duration is configurable. Rx2 typically begins two seconds after the end of the uplink
The default delay for Rx1 (RECEIVE_DELAY1) is a network parameter found in the LoRaWAN Regional
Parameters document from the LoRa Alliance®. The default delay may be region-specific, and can be
changed by the network operator through the MAC command RxTimingSetupReq. It is typically set to one
second
Note: A device will not try to send another uplink message until either:
Rx2 uses a frequency and data rate that can be configured using a MAC command. The defaults are region-
specific.
MAC Commands
With respect to Rx1, the offset between the uplink transmission (Tx) data rate and the downlink data rate
can be configured using the Rx1DRoffset field of the RxParamSetupReq MAC command
To configure the Rx2 data rate, use the MAC command RxParamSetupReq.
The DiChannelReq MAC command allows the network to associate a different downlink frequency with
the Rx1 window. This command works for all regions that support the NewChannelReq MAC command.
For example, DiChannelReq applies in the EU and in China, but not in the U.S. or Australia, as described in
the LoRaWAN Regional Parameters document.
If a downlink was detected and demodulated during Rx1 and if, (after the address and Message Integrity
Check (MIC)) it is determined to be intended for the end device that received it, the device will not open
Rx2 in an attempt to conserve energy. However, if the end device does not receive a downlink message
during Rx1, it will continue to open Rx2 on schedule.
The energy drain linked to Rx1 and Rx2 when no downlink message is detected is negligible compared to
the energy required for the transmission of the uplink
No complicated network planning is required. Gateways can be added anywhere at any time.
Accurate message delivery is more robust, since multiple gateways receive the same data packet
during each uplink. This is called uplink spatial diversity.
There is no need to plan for different frequencies for each gateway, or to reallocate frequencies
when the number of gateways change. All gateways are constantly listening to all frequencies of
the network.
Mobile devices can operate at low power thanks to the fact that any gateway can receive
messages from any device. This means that (in contrast, for example, to Cellular networks) the
LoRaWAN network does not notice or care that the device is moving; it simply receives uplinks
from the gateways nearest the device’s current location.
When a device sends an unconfirmed message, it does not require an acknowledgement from the server.
For example, most of the time a smoke detector will send periodic, unconfirmed uplinks to the network
server via nearby gateways just to confirm that it is working. The gateways receive the data and pass it on
to the network server, which in turn passes it on to the application server.
Figure 9 shows a smoke detector transmitting encrypted, unconfirmed messages (see the arrows pointing
from the device at the bottom of the diagram up to the Application Server at the top via the three leftmost
boxes), which are received by two gateways. The gateways add encrypted metadata to the messages and
then forward them to the network server. The network server decrypts the metadata and sends the data
packet to the application server, which decrypts the data.
In orange, we see the smoke detector sending an alert. These are confirmed messages, however, in the
first two instances, no acknowledgement has been received, so the device continues to broadcast the
alert. Finally, after the third transmission of the alert in our example below, the application server sends
an acknowledgement to the device via the network server and the most appropriate gateway.
SEMTECH PRODUCTS ARE NOT DESIGNED, INTENDED, AUTHORIZED OR WARRANTED TO BE SUITABLE FOR USE
IN LIFE-SUPPORT APPLICATIONS, DEVICES OR SYSTEMS, OR IN NUCLEAR APPLICATIONS IN WHICH THE FAILURE
COULD BE REASONABLY EXPECTED TO RESULT IN PERSONAL INJURY, LOSS OF LIFE OR SEVERE PROPERTY OR
ENVIRONMENTAL DAMAGE. INCLUSION OF SEMTECH PRODUCTS IN SUCH APPLICATIONS IS UNDERSTOOD TO
BE UNDERTAKEN SOLELY AT THE CUSTOMER'S OWN RISK. Should a customer purchase or use Semtech products
for any such unauthorized application, the consumer shall indemnify and hold Semtech and its officers,
employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages and attorney fees
which could arise.
The Semtech name and logo are registered trademarks of the Semtech Corporation. All other trademarks and
trade names mentioned may be marks and names of Semtech or their respective companies. Semtech reserves
the right to make changes to, or discontinue any products described in this document without further notice.
Semtech makes no warranty, representation guarantee, express or implied, regarding the suitability of its
products for any particular purpose. All rights reserved.
©Semtech 2019
Contact Information
Semtech Corporation
200 Flynn Road, Camarillo, CA 93012
Phone: (805) 498-2111, Fax: (805) 498-3804
www.semtech.com