Тёмный

LoRa/LoRaWAN tutorial 31: LoRa Server Project 

Mobilefish.com
Подписаться 29 тыс.
Просмотров 50 тыс.
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 31 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 tutorial I will demonstrate how to install and configure the open source LoRaWAN network server called LoRaServer.
The LoRa Server project provides open source components for building LoRaWAN networks.
The LoRa Server project consists of four major components: LoRa Gateway Bridge, LoRa Server, LoRa App Server and LoRa Geo Server.
All components are licensed under the MIT license and can be used for commercial purposes.
The LoRa Gateway Bridge abstracts the packet forwarder UDP protocol data into JSON and sends it to the LoRa Server over MQTT.
The LoRa Server is the LoRaWAN network server.
It de-duplicates and handles the received uplink frames from the gateway(s), handles the LoRaWAN mac layer and schedules the downlink data transmissions.
The LoRa App Server is the LoRaWAN Application Server and handles the join-requests, encryption of application payloads and offers a RESTful JSON API, gRPC API or MQTT for external services.
The LoRa App Server has a web interface to manage users, organisations, applications and devices.
It also allows you to see the received sensor data.
Many users are sending their sensor data to The Things Network.
Now you can create your own private LoRaWAN network by using the LoRa Server components.
More information about the LoRa Server project:
www.loraserver.io
All LoRa Server project code:
github.com/brocaar
LoRa Server forum:
forum.loraserver.io
The LoRa Server and the LoRa App Server each requires their own PostgreSQL database.
There are many configurations of these components possible, for example:
- All LoRa Server components and their dependencies can be installed on their own servers.
- All LoRa Server components and their dependencies can be installed on the gateway itself, which I will demonstrate in this video.
- All LoRa Server components and their dependencies can be installed on a single server instance.
- LoRa Gateway Bridge can be installed on the gateway itself, the other LoRa Server components and their dependencies can be installed on a single server instance.
How it works
The gateway has the Semtech packet forwarder installed.
The global_conf.json and local_conf.json files are used to configure the packet forwarder.
In the global_conf.json file the Lora Gateway Bridge server address and port 1700 are set.
The Lora Gateway Bridge abstracts the received packet forwarder UDP protocol data.
The data is converted into JSON and publishes it to a MQTT broker.
The lora-gateway-bridge.toml file is used to configure the Lora Gateway Bridge.
The Lora Server is the LoRaWAN network server and it has a PostgreSQL database to store the gateway data.
The loraserver.toml file is used to configure the Lora Server.
The Lora App Server is the LoRaWAN application server and it also has a PostgreSQL database to store the gateway data.
The lora-app-server.toml file is used to configure the Lora App Server.
I have created a manual how to install and configure the LoRa Gateway Bridge, LoRa Server, LoRa App Server and their dependencies on the RAK 831 Pilot Gateway.
www.mobilefish.com/developer/...
The LoRa Gateway OS is an easy way to get started with LoRaWAN and the LoRa Server project.
LoRa Gateway OS are SD card images which contains out-of-the-box support for the Semtech packet forwarder, Lora Gateway Bridge, LoRa Server and LoRa App Server for certain concentrator shields.
More information: www.loraserver.io/lora-gatewa...
There are also gateways on the market with the LoRa Server components already installed, such as the RAK WisKit.
This kit contains among other things:
- RAK2245 Pi HAT (LoRa concentrator module)
- Raspberry Pi 3B+
- WisNode (LoRa Node)
A tutorial about this can be found at:
www.hackster.io/fomi-T/simple...
An SD Card MAY wear out.
The lifetime of SD cards is limited by the number of writes.
It is recommended NOT to use cheap SD cards.
LoRa Server tries to minimise the number of database writes.
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

Наука

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

 

9 май 2019

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 55   
@stevechesney9334
@stevechesney9334 Год назад
Amazing! Thanks for your time and effort to put this tutorial series together!
@dasamu140990
@dasamu140990 4 года назад
Many thanks for that. I really appreciate your work. It is a very well detailed explanation (I would say perfect) about many possibilities of configuration. Congratulations and all the best for you.
@nexgenstemschool
@nexgenstemschool 4 года назад
Fantastic instruction and explanation. Thank you . It filled in more of the puzzle for us
@haimik0
@haimik0 5 лет назад
You're awesome! Thank you for this!!
@houssembadri9350
@houssembadri9350 2 года назад
Perfect detailing, thanks a lot
@nguyencanh1651
@nguyencanh1651 3 года назад
Great. Thank you for tutorial.
@annapurnadammur1506
@annapurnadammur1506 3 года назад
Thank you really it is helpful.
@2020lexx
@2020lexx 4 года назад
Great !!! Thank you! 10+
@wullibar4154
@wullibar4154 2 года назад
Great tutorial
@chulote8
@chulote8 4 года назад
Thank you!!!
@shanebekker
@shanebekker 5 лет назад
At this time I will just say thank you.
@mohammedk.h.f3016
@mohammedk.h.f3016 Год назад
Thank you
@rtreio
@rtreio 2 года назад
Many many thanks for such detailed descriptive Video. Kindly request you to make a video or suggest any document on the configuration where the three components namely - Gateway bridge, Network server and Application server are installed separately on three different VMs.
@spreeuferberlin
@spreeuferberlin 5 лет назад
thx
@settisa604
@settisa604 3 года назад
this is awesome! One big question! would you please make a tutorial about making such network ( lora node -> dragino gateway-> local raspberry MQTT mosquitoo ->node-red)?
@Johs4490
@Johs4490 3 года назад
Hi Thank You great video, clear explained , one thing about the DevEUI shall be in Little endian in the Kooyman sketch , this means lsb I suppose , it is the first generatet key is it not , afterwords the key is written in Msb , wich DeVEUI to use in the sketch the first generated or the one that shows when the device is created? I got it nearly all running but my Arduino monitor shows EV_JOIN_FAILED. I suspect there is something wrong with the OTAA process where maybe the key is wrong. ?
@victoralberti198
@victoralberti198 4 года назад
I've been facing some trouble to communica the end-device with the application, but i got the gateway on, exactly like 34:34 min. Did i mess up only on end-device code? Or i've made some others mistakes? Thanks for everything.
@vladoportos
@vladoportos 5 лет назад
very nice, one thing I'm not cleat at.. If I want to use one TTGO ESP32 as single channel GW does it contain lora gateway bridge in it ? Or Do I have to have lora gateway bridge installed on the same place as my lora server and app server ? How do I register lora gateway bridge that is installed on the same machine, I did not notice any MAC setting or UID....
@SuperBatiskaf
@SuperBatiskaf 4 года назад
Thank you for your tutorial. My Arduino device should send MQTT message over the LoRa. Today I use the PubSubClient which can push data to the TCP Stream (known as Client). Do you know some LoRaWAN based Client implementation for Arduino? Or, if I need to implement device to use LoraWAN infra itself, how the Gateway Bridge will know how to convert messages to MQTT format?
@6dfablab24
@6dfablab24 3 года назад
Hello, excellent tutorial, it helped me a lot, but when I want to see the live device data, I get a message that says: "not connected to the websocket API", why is this happening? If I followed the steps of the tutorial, someone has an idea?
@luiscristobal5779
@luiscristobal5779 2 года назад
Sooo interesting! I have many LoRa nodes to test (flow sensors and shutoff valves). Also I have a Kerlink ifemtocell gateway. Could you confirm if I can use LoRa Server, nodes and gateway to run a testing enviroment? Is it restricted to use with Raspberry technology only? Thank you in advance for your help.
@belkacembelkacem8161
@belkacembelkacem8161 5 лет назад
Thank you for the work you do a question is that it is possible to install loraserver on the LoRaWAN Gateway I mean on the same raspberry
@akekakong78
@akekakong78 5 лет назад
Yes, you can build both a GW and server on the same RPI.
@Chungus75
@Chungus75 4 года назад
Great videos with an enormous amount of information. As a beginner, can I ask a question to try and cut through some of the terminology; This video is basically creating a private network much like TTN? Its the entire framework required for a dedicated LoRaWAN network?
@Mobilefish
@Mobilefish 4 года назад
Yes, you can create your own private LoRaWAN network.
@mrnobody1286
@mrnobody1286 5 лет назад
Hi, first of all I'd like to thanks to you for all your helpful tutorials. I've problem about end node. On the web interface I can see my gateway connected a few seconds ago. But my wisnode lora device cannot connect to the web interface. On the status of my devices it says : last seen Never. Even I followed your web interface device installation step by step. Note : I can connect my wisnode to the ttn and send data to my gateway over ttn properly. But I do not know whats wrong with loraserver Im waiting for your answer. thanks in advance
@mtrriba
@mtrriba 3 года назад
Did you fix your fail?
5 лет назад
Could you make a video to send downlink data from gateway to end-node (Arduino)?. I was stuck here for a long time. Thanks
@gummibear654
@gummibear654 5 лет назад
It would be great.
@Mobilefish
@Mobilefish 5 лет назад
Bligher​ and Anh Quân, when I revisit this topic I will make a video about this. I have missed the downlink.
@PALTUBABY
@PALTUBABY 4 года назад
In step G while connecting to lora-app-server from my browser, ERR_CONNECTION_REFUSED is coming. My gateway IP address is 192.168.188.35. I typed 192.168.188.35:8080. ERR_CONNECTION_REFUSED error is thrown and I am noy able to access the UI for device, user management and other activities. Please help :)
@junaid_qadir
@junaid_qadir 2 года назад
Thank you, sir, you are a legend. Can you please let me know can I build Raspberry Pi + Adafruit RFm95W Lora single channel gateway with this server?
@gummibear654
@gummibear654 5 лет назад
Where do i find the Gateway ID? I have an ic880a Board
@Mobilefish
@Mobilefish 5 лет назад
Check out: www.arduinomaker.dk/2018/08/28/lorawan-gateway-ic880a/ In the above mentioned tutorial the gateway id is shown when using the setup script. In the RAK831 the gateway id (aka gateway eui) is based on the MAC address, see: www.mobilefish.com/download/lora/lora_part28.pdf (page 31) Note: It is recommended that your setup script determines your gateway id. The RAK831 setup script uses the MAC address. I think this happens also in the ic880a board (but I am not 100% sure!!)
@ManishGupta-jz9jf
@ManishGupta-jz9jf 2 года назад
Please make a video on IC880a lora gateway.
@simpleengineering6542
@simpleengineering6542 5 лет назад
Great Video! I have linux running on a virtual box. I followeed this tutorial and couldn´t get through step G. Can anyone help me?
@mtrriba
@mtrriba 3 года назад
Did you solve your fail?
@houssamwees2359
@houssamwees2359 5 лет назад
Hi @mobilefish.com i am following your video, Where did you clone ttn-gateway...!! Please provide the link to clone it.
@Mobilefish
@Mobilefish 5 лет назад
Clone?? I have used the RAK Pilot Gateway and installed the LoRa Server components, see: www.loraserver.io/
@aghamaretha6006
@aghamaretha6006 4 года назад
Can I use this on Dragino LG308 Gateway?
@Mobilefish
@Mobilefish 4 года назад
Sorry I do not know. You can ask this question at www.thethingsnetwork.org/forum/
@waelfarhatfullstackdevelop8467
where can I find the file txt you are copying from ?
@Mobilefish
@Mobilefish 5 лет назад
I created the file from www.mobilefish.com/developer/lorawan/lorawan_quickguide_loraserver_installation.html All the steps can also be found on this webpage.
@gr7480
@gr7480 5 лет назад
@@Mobilefish very good job, thanks a lot. I have a TTN gateway with a RAK831 but i think that is a very interesting alternative. Congratulation for your great videos. Jorge from Spain
@technation2088
@technation2088 4 года назад
how i can change spreading factor??
@Mobilefish
@Mobilefish 4 года назад
Sorry I do not know. It is better to ask these questions at forum.chirpstack.io/
@ManishGupta-jz9jf
@ManishGupta-jz9jf 2 года назад
Sir, Please make a video on the downlink.
@Bllackmage
@Bllackmage 3 года назад
What are you using computer or arduino or what
@halukyilmaz9621
@halukyilmaz9621 5 лет назад
class c sample please
@xxguestxxy
@xxguestxxy 3 года назад
can you share the slides? :)
@Mobilefish
@Mobilefish 3 года назад
All my presentations can be found at: www.mobilefish.com/developer/lorawan/lorawan_quickguide_tutorial.html
@ressamendy
@ressamendy 2 года назад
Actually, it would be very nice if you can set up the chirpstack structure on a virtual pc and put the image file there. (For example, Virtualbox or proxmox etc.) Because not everyone has a good command of working with docker and linux command structures. But everyone needs Lorawan.
Далее
LoRa/LoRaWAN tutorial 28: LoRaWAN Gateway
37:56
Просмотров 28 тыс.
All you need to know about LoRaWAN, in 40 mins
36:52
Просмотров 21 тыс.
What is a Protocol? (Deepdive)
18:14
Просмотров 162 тыс.
Getting Started with LoRa & testing Range in my City
12:39
Testing LoRaWAN Gateway using Arduino | Dragino LG01-N
18:15
НЕ БЕРУ APPLE VISION PRO!
0:37
Просмотров 372 тыс.