ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

LoRa/LoRaWAN tutorial 53: Payload Formatters (V3), fport and json

Автор: Mobilefish.com

Загружено: 2021-06-07

Просмотров: 10982

Описание: If you like this video and want to support me, go this page for my donation Paypal or crypto addresses:
   / mobilefish  

This is part 53 of the LoRa/LoRaWAN tutorial.

In this tutorial I will explain what fport is and a short refresher what a json object is.
I will also explain what payload formatters are and show you several Javascript payload formatters examples.

This presentation can be found at:
https://www.mobilefish.com/download/l...

All my LoRa/LoRaWAN tutorials and presentations can be found at:
https://www.mobilefish.com/developer/...

The LoRa packet comprises of three elements: Preamble, header (optional) and payload.

To create the Radio Frequency (RF) waterfall, a RTL-SDR (Software Define Radio) dongle is used.
More information:
   • RTL-SDR Dongle and GQRX on Mac OS X  
The RTL-SDR dongle is nameless but has the following chipsets:
The radio tuner: Rafael Micro R820T2
The demodulator: RealTek RTL2832U

FPort means Frame Port.
FPort is 1 byte in size.
Allowed values: 1-223, except fports 200-203.
This byte is always sent, even if you use it or not.

My end device uses this Arduino sketch:
https://www.mobilefish.com/download/l...
This sketch uses the MCCI LoRaWAN LMIC library in my Arduino IDE (v1.8.10)
https://github.com/mcci-catena/arduin...

In the sketch, change function LMIC_setTxData2 to change the fport value.
LMIC_setTxData2(fport, data, data_length, confirmed)

There are LoRaWAN end devices where fports can not be changed.
These devices have fixed fport values.
There are LoRaWAN end devices where fports can be changed programmatically (for example in an Arduino sketch) or with at-commands.
There are LoRaWAN end devices where fports can only be changed by modifying, compiling and uploading the new firmware to the end device.

Payload formatters allow you to process data going to and from end devices.
When a binary payload is sent from end device to LoRaWAN network (uplink), the data can be converted using, for example, a Javascript payload formatter.
The data can be converted to human readable data.

When a message is sent from the LoRaWAN network to the end device (downlink), the message can be converted using, for example, a Javascript payload formatter.
The message can be converted from human readable data to binary data.

The payload formatters used in the V2 console can not be copy-and-pasted directly in the V3 console.
The V2 and V3 payload formatters are different.
For example, the function names and the function parameters are different.

In the V3 console several payload formatters can be used:
Javascript payload formatters
https://www.thethingsindustries.com/d...
Cayenne Low Power Payload formatters
https://www.thethingsindustries.com/d...
Device specific payload formatters
Device manufacturers may have payload formatters designed to work with their devices.
https://github.com/TheThingsNetwork/l...

The V3 payload formatters can be applied to an entire application, or to a specific end device.
The payload formatter tester is only available on the device level and not on the application level.

The decodeUplink function has only one function parameter (input) which is a json object.
The encodeDownlink function has only one function parameter (input) which is a json object.
If you specify a downlink formatter the encodeDownlink function is required but not the decodeDownlink function.
The decodeDownlink formats the binary data “bytes” into human readable data, just like the decodeUplink function.

Check out all my other LoRa/LoRaWAN tutorial videos:
   • LoRa/LoRaWAN tutorials  

Subscribe to my YouTube channel:
   / @mobilefish  

The presentation used in this video tutorial can be found at:
https://www.mobilefish.com/developer/...

#mobilefish #lora #lorawan

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
LoRa/LoRaWAN tutorial 53: Payload Formatters (V3), fport and json

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

LoRa/LoRaWAN tutorial 54: LoRaWAN 1.1 OTAA

LoRa/LoRaWAN tutorial 54: LoRaWAN 1.1 OTAA

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

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

LLM и GPT - как работают большие языковые модели? Визуальное введение в трансформеры

LLM и GPT - как работают большие языковые модели? Визуальное введение в трансформеры

38C3 - Hacker's Guide to Meshtastic: Off-Grid, Encrypted LoRa Meshnets for Cheap!

38C3 - Hacker's Guide to Meshtastic: Off-Grid, Encrypted LoRa Meshnets for Cheap!

Docker за 20 минут

Docker за 20 минут

LoRa/LoRaWAN tutorial 28: LoRaWAN Gateway

LoRa/LoRaWAN tutorial 28: LoRaWAN Gateway

Блокировка Telegram: ТОП-5 защищенных мессенджеров на замену

Блокировка Telegram: ТОП-5 защищенных мессенджеров на замену

САПР в машиностроении. Фильм 1, 1986

САПР в машиностроении. Фильм 1, 1986

КАК УСТРОЕН TCP/IP?

КАК УСТРОЕН TCP/IP?

Фильм Алексея Семихатова «ГРАВИТАЦИЯ»

Фильм Алексея Семихатова «ГРАВИТАЦИЯ»

Как на самом деле работает модуляция LoRa — дальняя связь с использованием ЧИРП-сигналов

Как на самом деле работает модуляция LoRa — дальняя связь с использованием ЧИРП-сигналов

Проблема нержавеющей стали

Проблема нержавеющей стали

All you need to know about LoRaWAN, in 40 mins

All you need to know about LoRaWAN, in 40 mins

LoRa/LoRaWAN tutorial 41: Dipole Antenna

LoRa/LoRaWAN tutorial 41: Dipole Antenna

Так из чего же состоят электроны? Самые последние данные

Так из чего же состоят электроны? Самые последние данные

Объяснение LoRa и LoRaWAN! Настройка шлюза и устройства TTN — демонстрация платы Cicerone

Объяснение LoRa и LoRaWAN! Настройка шлюза и устройства TTN — демонстрация платы Cicerone

LoRa/LoRaWAN tutorial 56: OUI, OUI-36, EUI-64, DevEUI, AppEUI, JoinEUI

LoRa/LoRaWAN tutorial 56: OUI, OUI-36, EUI-64, DevEUI, AppEUI, JoinEUI

Революционная разработка, которая никому не интересна — Mazda Skyactiv-X SPCCI: как она работает ...

Революционная разработка, которая никому не интересна — Mazda Skyactiv-X SPCCI: как она работает ...

Почему 100 лет в электропоездах применяли не самый лучший двигатель? #энерголикбез

Почему 100 лет в электропоездах применяли не самый лучший двигатель? #энерголикбез

#112 LoRa / LoRaWAN De-Mystified / Tutorial

#112 LoRa / LoRaWAN De-Mystified / Tutorial

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]