Тёмный

LoRa/LoRaWAN tutorial 17: LoRa Packet Format, Time on Air and Adaptive Data Rate 

Mobilefish.com
Подписаться 29 тыс.
Просмотров 38 тыс.
50% 1

If you like this video and want to support me, go this page for my donation Paypal or crypto addresses:
/ mobilefish
This is part 17 of the LoRa/LoRaWAN tutorial.
In this video series different topics will be explained which will help you to understand LoRa/LoRaWAN.
It is recommended to watch each video sequentially as I may refer to certain LoRa/LoRaWAN topics explained earlier.
In this video I will explain what the LoRa packet format is, how the Time on Air is calculated and what Adaptive Data Rate is.
The LoRa packet comprises of three elements:
Preamble, header (optional) and payload.
There are two types of LoRa packet format modes:
- The explicit header mode includes a short header that contains information about the payload length, coding rate and whether a CRC is used in the packet.
CRC stands for Cyclic Redundancy Check and is used to detect errors in digital data.
- The implicit header mode where the payload, coding rate and CRC presence are fixed.
In this mode the header is removed from the packet thus reducing transmission time.
In this case the payload length, error coding rate and presence of the payload CRC must be manually configured on both sides of the radio link.
When a signal is send from a sender it takes a certain amount of time before a receiver receives this signal.
This time is called Time on Air (ToA).
The total air transmission time of a LoRa packet, aka Time on Air (ToA), aka LoRa packet duration (Tpacket) is calculated as follow:
ToA = Tpacket = Tpreamble + Tpayload [2]
Preamble duration (Tpreamble) in sec
Payload duration (Tpayload) in sec
Given the potentially long duration of the packet at high spreading factors the Low Data Rate Optimization option can be set to improve the robustness of the transmission to variations in frequency over the duration of the packet transmission and reception.
When the Low Data Rate Optimization is enabled it increases the robustness of the LoRa link at these low effective data rates.
Its use is mandated when the symbol duration exceeds 16ms.
Note that both the transmitter and the receiver must have the same setting for LowDataRateOptimize.
The LowDataRateOptimize is enabled for bandwidth 125 kHz and Spreading Factor greater or equal than 11
An online tool to calculate the Time on Air see:
www.loratools.nl/#/airtime
A higher spreading factor means a longer Time on Air and a lower data rate as can be seen in the previous graph.
A higher spreading factor also means the sender-receiver range gets larger but it requires more energy (battery power).
The LoRaWAN protocol defines the Adaptive Data Rate (ADR) scheme to control the uplink transmission parameters of LoRa devices:
- Spreading Factor (SF)
- Bandwidth (BW)
- Transmission power
Whether the ADR functionality will be used is requested by the end nodes by setting the ADR flag in the uplink message.
If the ADR flag is set, the network server can control the end node’s transmission parameters.
ADR should only be used in stable Radio Frequency (RF) situations where end nodes do not move.
Mobile end nodes which are stationary for longer times can enable ADR during those times.
What now follows is a simplified explanation how the Adaptive Data Rate works.
The network server collects the 20 most recent uplink transmissions data (such as data rate and Signal-to-Noise Ratio (SNR)) from an end node.
Of the 20 received uplink messages the network server takes the maximum SNR value which is now called the SNRmeasured and the corresponding data rate.
The network server calculates the margin:
margin = SNRmeasured - SNRlimit - margindefault = 5 - (-20) - 10 = 15 dB
The margin is large which means the end node uses unnecessary too much battery power to transmit uplink messages.
The network server does the following calculation with an optimised data rate:
margin = SNRmeasured - SNRlimit - margindefault = 5 - (-7.5) - 10 = 2.5 dB
The margin is changed from 15 dB to 2.5 dB, but it can further be optimised by lowering the transmission power.
This optimised data rate and/or transmission power are the transmission parameters calculated by the network server and send to the end node.
The end node will use these new transmission parameters to transmit its data and thus using less power.
How the ADR actually works is explained in detail in the LoRaWAN specification [4].
Check out all my other LoRa/LoRaWAN tutorial videos:
• LoRa/LoRaWAN tutorials
Subscribe to my RU-vid channel:
/ @mobilefish
The presentation used in this video tutorial can be found at:
www.mobilefish.com/developer/...
#mobilefish #lora #lorawan

Наука

Опубликовано:

 

7 окт 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@doyouknowthis007
@doyouknowthis007 Год назад
Excellent explanation
@billordonezegoavil7013
@billordonezegoavil7013 5 лет назад
Very good videos.
@refusneant
@refusneant 5 лет назад
thanks
@oceanqian
@oceanqian 5 лет назад
Very good tutorial. Thank you very much. I am wondering why the maximum SNR value is used as measured SNR? Isn't it safe to use minimum SNR since we have to make sure the worst signal should be able to be received?
@terabonneinc.72
@terabonneinc.72 3 года назад
All your tutorials are precise and super helpful. So the ADR is something LoRaWAN protocol does automatically between the server and uplink device? Or is this something the device manufacturer does to program the device uplink? This feature is very important as we seek to prolong device battery life.
@beneeeto
@beneeeto 3 года назад
What length of bytes or how many bytes can the payload have as maximum?
@R0hirrim
@R0hirrim 4 года назад
Is payload length equal to size of data comes from sensors?
@zark474
@zark474 4 года назад
Do the header data need to be verified manually on the reciever end or is it done internally and I do not need to worry about it? Comparing the payloadsize etc., and is the header even accessible on the reciever end ?
@Markovisch
@Markovisch Год назад
Does LoRa not include headers to indicate the identities of the source (transmitter) and the destination (intended receiver)?
@Nomi433
@Nomi433 2 года назад
What is 28 in the payload duration formula?
@nickilanto3308
@nickilanto3308 5 лет назад
@saranyaudhayakumar3519
@saranyaudhayakumar3519 4 года назад
i am using lora sx1278 connecting with multiple nodes(arduino) how can i differentiate the lora connected to nodes to send sensor data to particular node
@Mobilefish
@Mobilefish 4 года назад
Sorry I do not know. My tutorials are about LoRaWAN, communication between end nodes and gateways. See LoRaWAN specification, page 17: lora-alliance.org/sites/default/files/2018-07/lorawan1.0.3.pdf The Frame Header (FHDR) contains the device address (DevAddr). In your situation, the communication is between end-nodes. I have no idea how that works.
@martinrasmussen5898
@martinrasmussen5898 5 лет назад
What is the worst case max payload size? I cant seem to find a number anywhere, and I want to know how small I have to make the packages.
@AlexanderBukh
@AlexanderBukh 3 года назад
depending on datarate, max payload can be from 11 bytes to 256
@s.husain6125
@s.husain6125 5 лет назад
How to send incoming Lora packet sensors data to Cloud like firebase sir
@pedroramirez5905
@pedroramirez5905 5 лет назад
Saddam Husain Good Question
@travellingguitarsinger
@travellingguitarsinger 5 лет назад
can you please share some pcaps?
@Mobilefish
@Mobilefish 5 лет назад
Sorry, at this moment I have no time to make packet captures.
@Curt49
@Curt49 3 года назад
why is he yelling at us
@meghanathreddy875
@meghanathreddy875 5 лет назад
DONOT WORRY SIR WONOT GIVE REPLY TO ANYONE OF U SO,SONOT DISTURB HIM BY ASKING DOUBTS
Далее
#112 LoRa / LoRaWAN De-Mystified / Tutorial
20:25
Просмотров 1 млн
LoRa/LoRaWAN tutorial 3: Rules and Regulations
10:07
Просмотров 43 тыс.
Advanced Meshtastic - LoRa Configuration
12:53
Просмотров 21 тыс.
All you need to know about LoRaWAN, in 40 mins
36:52
Просмотров 21 тыс.
LoRa/LoRaWAN tutorial 5: Decibel, dBm, dBi, dBd
14:42
ЗАБЫТЫЙ IPHONE 😳
0:31
Просмотров 20 тыс.
Копия iPhone с WildBerries
1:00
Просмотров 8 млн