https://lora-alliance.org/resource_hub/lorawan-specification-v1-1/
https://habr.com/ru/articles/316954/
This article is an introduction to LoRaWAN wireless networks and based on the LoRaWAN 1.0.2 specification.
A typical wireless LoRaWAN network is a collection of gateways forwarding messages between terminal and central server (Network Server, NS), and is characterized by “star” topology “star-of-stars”.
Gateways are also called concentrators and base stations. The end-devices are often named as motes.
Communication between the gateways and the central server is carried out through standard IP connections, and between the gateways and end-devices through wireless connections using wideband modulation LoRa or FSK. LoRa modulation was developed by Semtech and is designed for low-speed wireless data transmission over distances of up to several kilometers in license-free frequency bands (Europe - 433 and 868 MHz).
Communication between gateways and end-devices is two-way, but it is assumed that the bulk of the data is transferred from end-devices to gateways. LoRa technology provides wireless transmission speed from 0.3 to 50 kbps. To separate channels, both a set of frequency channels and data rates are used.
To optimize the system performance, an adaptive change in the transfer rate is used - ADR (adaptive data rate). The network server evaluates the quality of the signal received from the end-device and can control both the transmission rate and the transmitter power of this device.
The end-device can transmit data on any available channel and any bit rate, considering the following:
The main advantages of LoRaWAN wireless networks are due to the use of wideband LoRa modulation and license-free frequency bands. LoRaWAN networks:
Possible uses:
Let's go back to the LoRaWAN specification and see what devices exists. At the end of 2016, the specification defines 3 classes of LoRaWAN end-devices: A, B and C, which differ from each other in reception modes. Devices of these classes are bidirectional. Class A is basic and must be supported by all devices.
Class A devices after each transmission open two short time windows for reception (denoted as RX1 and RX2).
The intervals from the end of transmission to the opening of the first and second time windows can be configured, but must be the same for all devices in the network (RECEIVE_DELAY1, RECEIVE_DELAY2). For the European 868 MHz band, the recommended value for RECEIVE_DELAY1 is 1 second. The value of RECEIVE_DELAY2 must be (RECEIVE_DELAY1 + 1) second.
The frequency channels and transmission rates used for RX1 and RX2 slots may differ. Recommended values are given in a separate document - “LoRaWAN Regional Parameters”, available on the website LoRa Alliance.
Class A devices are the lowest power devices, but to send a message from the server to the end-device, you must wait for the next outgoing message from this device.
In addition to the receive windows defined for Class A devices, Class B devices open additional scheduled receive windows. To synchronize the opening time of additional receive windows, the gateways emit beacons. All gateways that are part of the same network must emit beacons at the same time. The beacon contains a network ID and a timestamp (UTC).
The use of class B ensures that when polling end-devices, the response delay will not exceed a certain value determined by the beacon period.
Class C devices are in receive mode almost all the time except when they are transmitting messages. With the exception of the RX1 time window, the end-device uses the RX2 receive parameters.
Class C can be used where it is not necessary to save energy as much as possible (electricity meters) or where it is necessary to interrogate terminal devices at arbitrary times.