Lg02/olg02 LoRa Gateway User Manual


Example 5: Write a customized script



Download 3,94 Mb.
bet15/23
Sana07.04.2022
Hajmi3,94 Mb.
#533351
1   ...   11   12   13   14   15   16   17   18   ...   23
Bog'liq
LG02 LoRa Gateway User Manual v1.6.1 1-64

8. Example 5: Write a customized script

LG02 supports customized script to process LoRa data. This chapter describes about the data format from LoRa End node and How to write the script.


The data flow from LoRa End Node to LG02 is as below:


Example: Store Data in a file.




Step 1: Choose LoRa customized script mode


Step 2: Configure LoRa Frequency



LG02 LoRa Gateway User Manual

43 / 64

www.dragino.com


Step 3: Choose the customized script

The directory to store customized script is in /etc/lora/customized_scripts/. User can write a


new script and put it under this directory for their application. The web will auto detect it.




Step 4: Configure the LoRa End Device to send sensor data.

Here is an example code for LoRa Shield: End Device Code




Outputs:

End node send out packages:


Gateway receive packet & Script find packet


Script store data into file





LG02 LoRa Gateway User Manual

44 / 64

www.dragino.com


9. Example 6: LoRaWAN Packet Relay mode

The LG02 has two radio channels, we can use these two channels as LoRaWAN relay to improve the network coverage.



Download 3,94 Mb.

Do'stlaringiz bilan baham:
1   ...   11   12   13   14   15   16   17   18   ...   23




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish