#196
HTML-код
- Опубликовано: 11 сен 2024
- Multi-Channel Lora Gateways are quite expensive, and competition amongst the suppliers was not significant. This is why I was happy when RAK Wireless announced its RAK831 concentrator board. And also my viewers. They voted for this video. Today we will build a LoRaWAN gateway which costs less than half of the first one I made one and a half years ago. With today's project, we will build a gateway using this concentrator and a Raspberry Pi zero.
Links:
RAK831 Gateway: s.click.aliexpr...
Charles' Github: github.com/hal...
Installation guide: github.com/ch2...
Boards: pcbs.io/share/...
The Things Network console: console.thethi...
Supporting Material and Blog Page: www.sensorsiot.org
Github: www.github.com...
My Patreon Page: / andreasspiess
If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission (of your purchases the next 24 hours) to buy new stuff for the channel
For Banggood bit.ly/2jAQEf4
For AliExpress: bit.ly/2B0yTLL
For ebay.com: ebay.to/2DuYXBp
www.facebook.c...
/ spiessa
www.instructab...
Please do not try to Email me or invite me on LinkedIn. These communication channels are reserved for my primary job
Equipment in my lab: www.sensorsiot....
I think this video is going spawn whole new series of LORA Gateways around the world. Thanks to you and all the people who contributed to this project for such a great tutorial.
Let's hope it will be of use for others. I think this technology deserves it.
According to the Things Network home page there are 274 loragateways in Switzerland. My guess is that the majority of those are on your balcony ;-)
In Switzerland, >50% is considered to be the majority. So I still have to go a long way ;-)
Andreas Spiess those Swiss, always so precise with numbers ;-)
Another thorough and beautifully crafted presentation that will become the 'go to' for Gateway builds! Very well worth waiting for. Well done!
Thank you. And Charles did a marvelous job to create this simple installation guide.
Awsome, i have already thought of 101 things i can use this for. Thank you for yoyr time and teaching us lesser mortals.
Let's hope you can transfer one or the other of your ideas into reality :-)
Another great video! There are pads on the rPi 0-W for an external antenna connector. There's a 0 ohm resistor above the pads that must be rotated clockwise by 45 degrees. It's easier with a microscope.
Thanks for your info. I have to look at it when I do my next project with the RPi zero
Now finding a nice tall place to mount one is the only real issue. Thank you!
Fortunately, we have a rooftop terrace
Call me old-fashioned, but I have never been the least bit interested in anything wireless. However, having watched quite a few of Herr Spiess's videos regarding different wireless technologies, my opinion has gradually changed. Maybe one day...
So we are the contrary. I always liked the possibilities of wireless ;-)
Yes, another great video Andreas! Brilliant idea to put the GW in a easy-to-purchase drainage tube
I got the idea from a friend!
Interesting. You're my leading feed on LoRa. As a suggestion, on the pi, if you attached to a gpio a servo to open a vent when reading temp data, that would save the heating issues.
I'm just waiting for some practical data transfers to see what this is really like.. I see it is one tenth of dial up for most applications. Shame really...but upto 2mb. Which is great.
Also the test you did, it shows more than you think. Links (route paths TTL) has not been done on LoRa. This means that the performance could be increased. But... this maybe a Achilles heel as the same un optimisation is what makes it work.
Non the less interesting as much as it is a retrograde solution.
Charles-Henri Hallard runs a company which makes open-source building control systems.
douro20 What's the name of his company?
Prakhar Birla ch2i
Thanks
Thanks so much as always for talking about Lora.
:-)
Hi Andreas yesterday I ordered my RAK831 (915mhz) I have wanted to do a build but Israel blocked both 915mhz and 868mhz
and only opened up 915 in the last while. My single channel node works well it uses your 8266 (443mhz). I Plan to use a Orange Pi not a Pi zero
I believe it is a better deal. It may be the First TTN node in Israel unless somebody get in before me. The RAK831 costs me 142$ with shipping
on Aliexpress Orange pi about 10$ so 150$ is a bit low I think 200-230$. I am about 300m above sea level with line of sight of most of Israel costal cities .
so I am hope to get a good range.
Single channel gateways do not count TTN and I was on 433mhz with all the water meters of the city.
Good luck that you are the first!
Thank you, Andreas. This was another great video.
Thank you!
Looks like competition is good. Both solutions appear to be around the same price now. The iC880A-SPI is €120. That's what I will go with
Today, availability can also be a deciding factor ;-)
Nice video, which makes me want to build one. I have already built one based on the IMST Concentrator, but only recently came across the RAK one. Have subscribed to your youtube channel.
Welcome to the channel!
After watching the video, I've ordered a RAK831 shield for my Raspberry Pi 3. It has arrived yesterday and today I've installed it and found that the video is already a bit outdated because Charles Hallard has updated the scripts in the mean time: it's even more automated now with fewer manual steps. So better check the installation guide first - then you can skip a few steps of the video. Thanks to Andreas and Charles for the awesome work.
Thank you for your information.
Bravo to Andreas and Charles.
:-)
As usual fantastic work.
Thank you!
Love these video. I wonder since it’s been some time will you revisit this to see what new hardware is available?
LoRaWAN Gateways are no more very interesting for the viewers of this channel :-(
@@AndreasSpiess that is unfortunate, but I understand your position. I am planning to put a weather station and other sensors at a garden across town, ~2 miles. I thought using LoRa to transmit and read that data would be neat.
@@JohnWeland Jost do it if you have a line of sight from the nodes to a gateway (no need it is yours)
thank you for this interesting comparison and hands-on lab
You are welcome!
Next Video Andreas, How to build your own Lorawan Gateway Concentrator !!
This should help:- ruclips.net/video/hMOwbNUpDQA/видео.html
+ Andrew: I do not think so. I love to buy a module and make something useful with it
Very nice tutorial. When the price can get lower, everyone is going to have one. The price is still a little high. I wonder if something can be made with gnu radio SDR for the RF and LoRa PHY? This video is almost 4 yrs old.
The LoRa protocol is proprietary. So you have to buy their chips.
Thank you Andreas for interesting tutorial.
You are welcome!
I bought an SX1276 868Mhz LoRa module(RFM95w) from robokits and tried to communicate a simple “hello world” message with ’ The things network ’ . I used an arduino UNO to connect with my LoRa module and the library I was using was the arduino LMIC library. Since I am from India, I checked the frequency plan in the things network and found that the frequency range for India is 865-867Mhz. So in the downloaded Arduino LMIC ibrary, I made changes in lorabase.h and ttn-abp code for arduino-RFM95 connections. I edited the European frequency values to Indian frequency values. I tried using activation by personalization (ABP) for communicating with the things network. There was a gateway in our area and all I know about the gateway is that it is an RAK831 gateway. I tried to send the message to the things and I could receive the messages in the thing network. It all worked fine… Now I bought an RAK7243 gateway from Aliexpress which is a latest version of RAK831. Actually RAK7243 is considered to be slimmer and cooler than RAK831. The SD card showed a website where we could download the firmware.I loaded the software and the OS raspbian stretch lite in the raspberry Pi 3B+ and connected the gateway to internet using WiFi. I used putty to access the raspberry Pi from my computer using a LAN cable. Raspberry Pi was configured for WiFi settings and I could get internet. I checked pinging Google.com and I got response from Google which means internet is connected in my gateway. I looked for my ethernet MAC address and made the changes in global_conf.json where I entered this MAC and the things network server address for Asia region. In the global _conf file downloaded, I could see the frequencies were the same which I used in my LoRa module library. SPI communication was enabled. Then I registered the gateway in the things network. I gave the gateway ID, checked the semtech packet forwarder dialog box and also properly gave the region, operating frequencies, location and antenna position and registered…The antenna used was rubber duck (2dBi and 50 ohm). The gateway was seen as connected with green symbol…each time I switch on the gateway, the power(Red led) will blink and (green led) also blinks for sometime (may be a few 10 seconds) and after that only red LED blinks. Now I tried the same hardware (LoRa module and arduino UNO) and the same arduino LMIC code, which I used to communicate with the gateway in my locality. But this time, it was not working. I didn’t receive any message in the the things network… Is it the problem with the gateway or my LoRa node? I checked for the status in the gateway using raspberry Pi command… It showed the message, gateway is active(running).Could anyone please help me to solve this issue?
Maybe you watch my videos about debugging? Since you have two different gateways you should be able to find out where the problem is. If your node does not work with both gateways (and you are sure the signal reaches the second gateway), the problem is your node (or the activation on TTN). Otherwise, it is your gateway. Check the keys and if they are LSB or MSB.
i faced the same issue , after a lot of search i found the issue was in TTN . Some times it misbehaves ...
Guten Tag. Ich bin aus Russland und ich mag Ihren Kanal. Ich würde merh Geräte mit LoRa sehen. Danke.
Vielen Dank for dein Feedback!
I only discovered your videos recently, so I'm not sure if you have done a video on Ethernet over powerlines yet. This is very interesting technology generally making use of modem chipsets from Qualcomm or Broadcomm, and the bandwidth is surprisingly good considering the mains wiring was never designed to have good impedance characteristics for communication. In any event, this would have been a third candidate for connecting your gateway to the internet...
I did not do such a video yet. You are right, this would have been an interesting possibility for my situation. I did a quick search, but only found devices, no "bare boards". For a device like that it would be good to have at least in the gateway only a board (smaller)
Looking at the thumbnail I thought the gateway was a physical gate :) But that would be sensible too, a remote controlled gate.
Better than one of our customers who has a second burglar alarm panel down in their gatehouse just to control the gate. $15/month plus install costs just to avoid having to have an ethernet or fibre bridge to cover the 500+ metres between house and gate. Lorawan would actually be a good solution for that, you don't need much data or very often.
If the burglar does not know about LoRa this might be a good solution ;-)
surely with LoRa your processor will have enough power to encrypt/decrypt using AES128 or something else cheap an symmetric, so with a shared key your "open gate" command ends up transmitted as 16 random-looking bytes? Sure, you're using a lot of memory to store the crypto if it's not built in, but it beats having the local high school kids playing with it.
Thanks for sharing 😀👍
Interesting stuff 👍
You are welcome!
Next, how to build one’s own LoRa Server?
I do not think ;-)
There is Open Source Lora Server Software available on github, though it takes a bit of configuring.
check out loraserver.io
If it was your home then it is a cute town where you live...:)
It is more a village than a town.
Hi! I like very much your videos about lorawan. After 2 years what do you recommend as a "starter kit" with the Raspberry Pi to start a little project and fiddle a bit? Here in my area there is only 1 with a gateway, a few kilometers away, i'd like to make one too. Do you think the "RAK Discover Kit 2 - EU868" is still good or at the end of life? Thanks :D
Hi Mr Spiess,
Thankyou kindly for your videos. My fellow Techs and I like to watch your shows as they are more entertaining thank Netflix.
I have a scenario that you may have a solution.
In a remote environment, is it possible to have a group of sensors report to a central device in small data packets- where No LoRa connection is available?
Each station would have the following parts . 1. Raspberry Pi 3 B 2 . SX1278 radio chip (SPI connection ) 3 . sensors.
4. LED display with basic alarm results.
Each station could work in a stand alone "Mesh Simplex " environment at in an non interference band . Thanks
Thank you for your compliment! Maybe you have a look at this page: www.radioshuttle.de/en/radioshuttle-2/protocol/ . They describe a protocol which might fit your purpose.
It would also be interesting to look at the LoRa antenna performance for this unit...
You can connect whatever antenna you want.
Interesting use of those SMD type pinheaders. I have seen those in KiCAD but haven't ever bought/tried any. I've never thought about using them over through holes before.
I've been collecting different types of basic pinheaders and terminal connections lately. Do you have any suggestions for (cheap) stackable higher current capable pin header type connectors? I've got a bunch of 2.54mm headers, and a small collection of 2mm's. I've got screw terminals for 2.54mm and 5.1mm. My problem is that I'm always trying to squeeze too much in a small space and I still want to build in more.
Like right now I have a small DC 'wall wart' taken apart. It has 24.5mm × 48mm × 45mm of space on the secondary side. I'm dumb enough to try to replace the original PCB w/Diode bridge that was occupying that area, and etch my own using an IC rectifier, LM317, feedback passives, adjustment pot, banana terminals, and an AliEx PIC16 voltmeter. It sure would be easier to build it with 2 double sided PCB's and a couple of stackable connectors that are spaced more than 2.54mm. I know I could connect multiple pins in multiple locations, but it just seems like the kind of thing a product could easily fix ;)
-Jake
Charles used different SMD pin-headers which are only half the height. But I did not find them on AliExpress. So I chose the "original height"...
Another advantage of indoor gateway: Someone steals your outdoor gateway and they have your WiFi password on the SD card. At the very least you will want to notice when the gateway goes AWOL and change your WiFi password ASAP... maybe include something to detect and notify when there is a lack of communication.
Just hang 'em high (ruclips.net/video/eB46dRO0YZ8/видео.html )
Great video. How could I determine if I am within range of the nearby existing gateways. It would be good also to see more vids on specific node sensor solutions that connect to these gateways. It seems that most information is about just building the gateways.
1. You see if you are close to a gateway if you receive messages on TTN
2. I made videos about nodes. And in the Forum of TTN you find many more. Maybe you visit www.thethingsnetwork.org/forum/ ?
Thank you Andreas. The movement really needs people like yourself that give us your time in explaining things as well as you do. I think the desire for setting up gateways will increase rapidly when people can see more node sensor examples.
Hi Andreas... thanks so much for this tutorial. With your IoT network in your hometown, what sort of sensors have you deployed? I like the idea of the gateway and the IoT, but can't think of exactly what to use it for!
You raise the most important question! You can google and find some info like air quality sensor networks in Stuttgart or flood sensors in England.
Hello Andreas, I am collecting the parts to build a gateway. Is the supplied antenna really the best choice or what would you recommend? I thought there was already a video on your channel via different antennas, but I can not find it right now. Steffen
I recently had a good gateway antenna in one of my mailbags. You should find it in the title (something like LoRa surprise)
Hi Andreas,
where exactly is the differance between the Gateway you build in this Video to the Gateway from Episode #124? I would like to use a LoRa-Gateway in my house and Connect it with maybe 20 Temperature and humidity Sensors. Is therefore the cheap Gateway from Episode #124 usable?
Thank you really much in advance, Klemens
For your case, a single channel gateway can be ok. As its name says, it operates only on one channel and if this frequency is blocked somehow, no communication is possible. The full gateways have 8 different channels as well as all Spreading Factors.
So, ... we'd have to get the RAK831 Gateway which is priced at $999 at aliexpress at the moment ..
Does there not exist open-source PCB's and build guides on how to build your very own multi-channel Lora Gateway without spending hundreds of dollars? I have so many LoRa transiver chips, and so many Node PCB's sitting .. but nowhere can I find a guide that will help me build a 8ch gateway from scratch.
Please help?
Maybe you watch my other LoRa videos? And Gateways are much cheaper: s.click.aliexpress.com/e/_dYxZJiK
@@AndreasSpiess Yes, I have watched probably 90% of them. But here I am, and I've got the Semtech LoRa-chips, and I've etched some PCB's ... So, .. there is no one that has created a Raspberry Pi Concentrator able to do 8 channels?
Hello Andreas, greetings from Peru, congratulations for your excellent work! I would like your help, I will tell you quickly. I have proposed to implement a monitoring system for warning of landfalls in my city, for that I am thinking of setting up a "Wireless sensor network", I have researched and want to use LoRa technology, but I am still learning and your videos have helped me a lot to elaborate my possible solution. Please correct me and guide me if you think something is wrong in my plan: the system is made up of 3 sensor nodes (since there are 3 streams), each of them has a microcontroller (I want to use arduino), a LoRa module (maybe use the RFM95W like in your video #117) and the sensors, that's all. I have seen that each one can be configured as a transmitter or receiver, but the detail is in the "Gateway", if I have 3 sensor nodes mounted in the way I explained to you, I would need to be able to use a Dragino gateway, but it would have to be multichannel TRUE? Those are very expensive, I saw the way you built the gateway yourself, but the limitations leave me in doubt... Besides, you use Raspberry 3 or 4, although I saw another that you used a raspberry zero. Since your videos are from 5/6 years ago.
As of today, what components do you specifically recommend using?
What do you think of the structure as such?
What is the best way you recommend to develop the gateway? Or if a single channel gateway would work for my 3 sensor nodes?
You will need a gateway (today, I would use a commercial one) and as many sensors with a LoRa module as you want. The gateway has to have internet connection.
@@AndreasSpiess Thank Andreas, and do u know if this gateway (rak831) can receive data from different nodes LoRa? not at the same time, but with delay maybe...
@@maikdaiwt-8 Maybe you watch my LoRa introduction video?
@@AndreasSpiess Thanks, that's the only video I hadn't seen.
Merci viel Mal Andreas
Bitte, gern geschehen.
Hi Andreas! I’m in search of a good outdoor antenna for an outdoor LoRa Gateway .I remember you tried a LoRa ground plane antenna from ebay. If I'm not mistaken it came from the Czech Republic, I can no longer find the video in which there was the link in the description. Could you send me the link or recommend anything else?
search for "
stanislavpalo130" on the uk ebay site. He often changes the product links
Andreas Spiess Thank you very much!
Hi Andreas spiess
How does the LoRa module for gateway differ from a LoRa module for node!?
It has more channels and can do all spreading factors at once.
just clicked on the link above for
the Rak gateway and the was listed with an exorbitant price of
€ 836,46
Maybe you watch my newest video and you will understand, why...
In the video at 9m20s there is a sudden reference to packet forwarder, is there a reference missing to a git or other fetching of the code ?
The packet forwarder is the heart of the gateway software.
How are you finding the range? I've had a RAK831 for a few months and I get maybe 800 metres from it max. I even got a custom 915MHz antenna made for it and it didn't seem to help all that much. Aside from that I found the things network stuff to be a total mess. I ended up writing my own software to drive the concentrator and do the LoRaWAN session tracking etc.
I hit about 6000 meters but nominal range is 3000 meters. My antenna is outdoors and I'm on 868mhz. Never had an issue with ttn
>Never had an issue with ttn
OTAA would regularly fail for me and their software package was massive for what it did. And then they decided to drop that in favour of the original semtech thing, or maybe not? Who knows.
Hi space rabbit
Which driver u are using and what is the rssi at 6000 meter range.
lmic, -120db. Its spotty at 6000m, but quite solid at about 2000-3000m
+ donpalmera: I did some rudimentary range tests and did not find differences between the two. But it was no "scientific" test. Concerning the Software: I did not have too many problems over the last year. But I only started recently with OTAA. And so far, it worked for me.
I am honored I have viewers which are able to create such complex software. Maybe you publish it one day?
Hi Andreas, do you think ESP32 will be used with RAK831 for Lora gateway in the future? I am just wondering hahahah
I do not think a gateway software for the ESP32 exists...
Thanks for the great video. I'm looking for the RAK831 somewhere in Europe to prevent hassle with customs when shipping from China. But I can't find it. Any hints?
No idea. I got mine from China.
Andreas Some advice Please. I live in a area that I'm going to have to have a Antenna very high to get line of sight. Instead of putting the Control Box up on the Antenna, I'm thinking of running a very long Coaxial from Antenna down to Pi and RAK831 control box in house., does that sound right to you ?
No, antenna cables on these high frequencies have to be avoided! As you see my antenna cable is about 10 cm long. Good antenna cables cost around 10 $ per meter and still lose power.
So I guess I will have to go with a Long Ethernet cable from box on Antenna, Thanks for your help Andreas.
Or Wi-Fi as I do it
@@AndreasSpiess I'm putting a RPI 3B+ up in the box so I guess WiFi it will be it. The Antenna pole will be about 40 foot up, that high I should be able to talk to Martians. Thanks for all your help Andreas
How is this compare to the $15 LoRa Gateway you built in #134?
It has 8 parallel channels an can listen to all SF in parallel
Andreas, this is really a very good video ! many thanks. I absolutely want to reproduce a gateway like this. First of all I have to buy a RAK 831 but would be better buy it in Europe otherwise in Italy I will have to wait a lot of time and be prepared to unpredictable expenses from customs regulation. So, do anyone has some information about where can I buy one of them in europe ? thanks a lot for your time.
I do not know European sources. But maybe you consider the other concentrator mentioned (880A). It is "made in Europe"
Does this build require a connection to TTN or can it be used w/o the WAN feature?
It needs a connection to TTN
Andreas, What do you use Lora for? Just playing or you have real application?
Just playing
The RAK board is everywhere out of stock, but they have the RAK7246 WisGate Developer D0. Is this a good alternative?
It has a 1308 chip. So it is an 8-channel gateway and should work for indoor. Look at the Mikrotik Gateways if you need an outdoor gateway.
@@AndreasSpiess Can I build a waterproof enclosure? Or is the gateway itself not good for outdoor
@@jan.8879 Of course you can do it.
@@AndreasSpiess And the performance is ok like yours or are there differences? To what should I pay attention when choosing a gateway?
@@jan.8879 They all use a similar design and the same chip.
Will RAK831 Gateway work with a different company's node which is built on SX1262?
LoraWAN is a standard and all certified products should work together
Whats the diference between ic880a va rak 831?
Two different manufacturers. The purpose is the same.
Can anyone recommend a supplier within the EU where an end consumer (not a company) can buy the BOM parts? Both digikey and mouser seem to ship from US.
do I have to use tan server to get the data received by LoRa Gateway? Can I post the data to the http server?
Maybe you watch my LoRa introduction video? Yes, you can get the data to your computer using various ways (HTTP, MQTT, etc).
OMG, yes, this:
Bleeding Edge -> Leading Edge -> Mainstream
:-)
Gateway is not connected what is my problem???
pls help me
Unfortunately I cannot do remote debugging.
Hi there I am very new to this Lora things as I am in South Africa, Iam trying to find info about building a multi channel 100+ can you please (the guy with the swiss accent ) please point me in the direction i need to look
Maybe you watch the videos in my LoRa playlist
Looking at the RAK831 vs RAK833 any ideas?
One is for the PC and the other for the Raspberry Pi.
What if I want my private gateway (without connecting to TTN) ?
Their backbone software is open source. You have to install and maintain it on your infrastructure.
who is better rak831 or sx2178 gateway? which has more channel? and support more devices?
They both use the same chip
thanks for reply,
one more question, do you test the gateway of dragino?
dragino is a 1 channel gateway, not to good as a gateway but nice as a node.
few days ago, I bought a dragino for initial steps in lora, but in the future I'll invest in some better,
i have build it like you. What is todo for TTN V3?
For the moment: The only thing you have to do is to wait for my video about the migration ;-) It most probably will air in Summer/Autumn
@@AndreasSpiess ok i am waiting ;o)
🧿
:-)
hi, I have things outdoor gateway. can u help me?
I am a RUclipsr and share my knowledge in my videos 😔
@@AndreasSpiess Yes I have watched your videos. I want to build my own LORA gateway. I have The things Outdoor Gateway (WAPS-232N_LW). Could you please tell me from where should I start, as I am a new researcher.
Updates?
Not planned. You get now many commercial gateways. And no Raspberries, at least for the moment :-(
Anyone tested rak831 range
The module now costs $999
Maybe you serach for a successor.
Andreas did you see (and expect to test) the ESP32 to ESP32 Wifi 802.11LR goo.gl/MBsL82 on ESP32 from espressif => 1 Km transmission ?
Maybe. I have to find out if and how it can be used in the Arduino IDE. Do you know?
No. I just get the info and thought that you were interested in.
First
:-)
So do we call this the 'Spiess RAK' ( goo.gl/images/u7qnRD ) :-D
This is the American pronunciation of "Spiess". Nice idea!