#404

  Переглядів 71,525

Andreas Spiess

Andreas Spiess

День тому

LoRa and LoRaWAN are remarkable technologies, they have a long-range and low power consumption and therefore are ideal for our sensor projects. Today I will show you how to build a LoRaWAN sensor and connect it to the open The Things Network in the new version 3. I will also show how you can migrate your infrastructure if you are already a user of the V2 network, where the deadline is this December. In the end, you even will get a surprise. A lot of exciting stuff!
I am a proud Patreon of @GreatScott!, @ElectroBOOM , @Electronoobs , @EEVblog , and others. No Docker, No Microsoft Teams, Zoom
00:00 Intro
01:32 LoRa and LoRaWAn overview
03:30 Sensors
06:36 Migrate V2 sensors
07:00 Avoid frustrations with sensors
09:25 How to build a modern V3 sensor and integrate it into Node-Red
16:02 Gateways
19:51 What do you have to remember?
Links:
ESP32 LoRa board CN: s.click.aliexpress.com/e/_Ars56y
ESP32 LoRa board SMA CN: s.click.aliexpress.com/e/_AcjM48
1284p low power LoRa board: www.tindie.com/products/iotde...
Heltec 2 channel Gateway: s.click.aliexpress.com/e/_ACKiCL
Heltec Indoor Gateway: s.click.aliexpress.com/e/_AWadHD
Heltec CubeCell: s.click.aliexpress.com/e/_A477SL or amzn.to/3iC0D1Y
RAK Gateway: www.aliexpress.com/item/32978...
RAK 2245 Gateway Hat: s.click.aliexpress.com/e/_AqgPR9
TTN Indoor Gateway: amzn.to/3Defojl
Mailbox notifier Sketch: github.com/SensorsIot/Mailbox...
TTN Coverage: www.thethingsnetwork.org/map
Helium Coverage: explorer.helium.com/hotspots
The links above usually are affiliate links that support the channel (no additional cost for you).
Supporting Material and Blog Page: www.sensorsiot.org
Github: www.github.com/sensorsiot
My Patreon Page: / andreasspiess
Discord: / discord
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 to buy new stuff for the channel
My Amazon.com shop: www.amazon.com/shop/andreassp...
For Banggood bit.ly/2jAQEf4
For AliExpress: bit.ly/2B0yTLL
For Amazon.de: amzn.to/2r0ZCYI
For Amazon UK: amzn.to/2mxBaJf
For ebay.com: ebay.to/2DuYXBp
profile.php?...
/ spiessa
www.instructables.com/member/...
Please do not try to email me. This communication channel is reserved for my primary job
As an Amazon Associate, I earn from qualifying purchases
#no#midroll#ads

КОМЕНТАРІ: 215
@AndreasLink
@AndreasLink 2 роки тому
Awesome! The video I was waiting for so long 😁. Now I'm motivated to update my gateway to V3 and will rethink my GPS tracker nodes. Thank you very much!
@AndreasSpiess
@AndreasSpiess 2 роки тому
My TTN trackers (using T-beams) work fine on V3. But I use the newest software and did not try to update them
@avejst
@avejst 2 роки тому
Great walkthrough video as always 👍 Thanks for sharing your experience with all of us 👍😀
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are welcome!
@wjn777
@wjn777 2 роки тому
As always, well made, attention to detail and lots of humour. Thanks for sharing
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are welcome!
@zytheran
@zytheran Рік тому
Thanks for the video. Inspiration to get started again. My custom LoRaWAN gateway is now up and running again with minor changes to the code and time to build some new nodes ... and the planned 433MHz weather device (Ecowitt) to LoRaWAN TTN transceiver using an ESP32 LoRa board and C1101.
@AndreasSpiess
@AndreasSpiess Рік тому
You are welcome!
@martinsauerteig4882
@martinsauerteig4882 2 роки тому
Excellent summary on the subject of LoraWan / TTN V2&V3. Short and concise! And thanks for the reference to IoTDevices: the device is now on my wish list. Unfortunately, I can only click the thumb once...
@AndreasSpiess
@AndreasSpiess 2 роки тому
I am glad you liked the video. I was not sure if it is a good idea to combine the setup and the migration...
@Mike-kp5tz
@Mike-kp5tz 2 роки тому
Great video, Andreas. I successfully migrated a v2 sensor (running on a 32u4 board) using ABP. After some research, it required small changes in the device description to make it work in v3.
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are right. You have to deal with the counter in a different way and add frequencies in the backend. Our old nodes will not work without changes because most of us kept the counter at 0.
@KrystianBaranowski
@KrystianBaranowski Рік тому
You helped me a lot with my RAK831 pilot gateway! Thank you!
@AndreasSpiess
@AndreasSpiess Рік тому
You are welcome!
@kokoscom
@kokoscom 2 роки тому
Another useful video Andreas! Especially V2-->V3 TTN. Thank you!
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are welcome!
@nathank5140
@nathank5140 2 роки тому
Great content. Covered all topics needed for mvp. Many videos don’t cover full pipeline if needed thing.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Glad you liked it!
@TheKverbeeck
@TheKverbeeck 2 роки тому
Great video Andreas, this will help me further in finalyzing my LoRaWAN project for school 😀😀😀
@AndreasSpiess
@AndreasSpiess 2 роки тому
Glad it helped!
@siripoanchaiwangsakan1830
@siripoanchaiwangsakan1830 2 роки тому
Thank you. This is very informative video.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Glad it was helpful!
@PhG1961
@PhG1961 2 роки тому
Excellent video, I really enjoyed it. Very interesting and I'm looking forward for the next one when you cover more of the Helium network. Maybe I'll get rich after that one...
@PhG1961
@PhG1961 2 роки тому
And by now I found the Tindie store of Matthias... another guy with a Swiss accent ?! I guess the viewers of this channel are very lucky, excellent quality from Switserland. I thought of Swiserland in terms of cheese and chocolate..., I defenately must review my thoughts...
@AndreasSpiess
@AndreasSpiess 2 роки тому
I will only cover the data aspect of Helium in this video, particularly for our US colleagues where TTN is not as present. Nothing to get rich ;-)
@PhG1961
@PhG1961 2 роки тому
@@AndreasSpiess Sounds interesting too... Getting rich with Hemium....I guess I'll carry on working and delay my retirement a few more years. So sad...
@houserental5424
@houserental5424 2 роки тому
@@PhG1961 helium was a flop Until they started turning their product into a get rich scam for the rubes
@christopherguy1217
@christopherguy1217 2 роки тому
Very informative, thank you.
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are welcome!
@joelindra
@joelindra 2 роки тому
Excellent video sir,
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thank you!
@ErikUden
@ErikUden 2 роки тому
What a great video, I think I finally get it!
@AndreasSpiess
@AndreasSpiess 2 роки тому
Glad I could help!
@sinjhguddu4974
@sinjhguddu4974 2 роки тому
Good presentation!
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thank you!
@DanielHofer
@DanielHofer 2 роки тому
Thanks a lot, I've upgraded my gateway but had no idea how to update my sensors!
@AndreasSpiess
@AndreasSpiess 2 роки тому
Glad I could help!
@oscarpeters1351
@oscarpeters1351 2 роки тому
great explanation
@AndreasSpiess
@AndreasSpiess 2 роки тому
Glad you think so!
@alexbristol5199
@alexbristol5199 2 роки тому
Hi Andreas, your videos are always fab. In case no one has mentioned this already, the ESP32 in light sleep, the code continues from where it left off, unlike deep sleep you mentioned where it restarts.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thanks for the info. So far I never used light sleep. Maybe I have to try it once.
@alexbristol5199
@alexbristol5199 2 роки тому
@@AndreasSpiess I have modified the standard WiFi scan example to show it working and limitations, well you help so many of us: /* * This sketch demonstrates how to scan WiFi networks. * The API is almost the same as with the WiFi Shield library, * the most obvious difference being the different file you need to include: */ #include "WiFi.h" #include void setup() { Serial.begin(115200); delay(2000); Serial.println("Setup done"); } void loop() { Serial.println("scan start"); // Set WiFi to station mode and disconnect from an AP if it was previously connected WiFi.mode(WIFI_STA); WiFi.disconnect(); delay(500); // WiFi.scanNetworks will return the number of networks found int n = WiFi.scanNetworks(); Serial.println("scan done"); if (n == 0) { Serial.println("no networks found"); } else { Serial.print(n); Serial.println(" networks found"); for (int i = 0; i < n; ++i) { // Print SSID and RSSI for each network found Serial.print(i + 1); Serial.print(": "); Serial.print(WiFi.SSID(i)); Serial.print(" ("); Serial.print(WiFi.RSSI(i)); Serial.print(")"); Serial.println((WiFi.encryptionType(i) == WIFI_AUTH_OPEN)?" ":"*"); delay(10); } } Serial.println(""); // Wait a bit before scanning again printf("Light sleep starting, 10 seconds. "); delay(1000); //To allow above message to complete before sleep mode kicks in. esp_wifi_stop(); //ESP32, WiFi is turned off in sleep, cannot be avoided. esp_sleep_enable_timer_wakeup(10000 * 1000); //Time in micro seconds, not milli seconds. esp_light_sleep_start(); esp_wifi_start(); printf("Light sleep over. "); //Please note WiFi does stop in light sleep so hence restart it every time on wake up (rather than normally run once on power up in setup()). }
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thank you for the example! I will try it.
@sr.modanez
@sr.modanez 2 роки тому
obrigado pelo seus videos, meu interesse em apreender so esta crecendo por causa sua em emplicar da melhor forma esse mundo tao ocultado por muitos profissionais da area, obrigado, e continue com seu legado, um fan seu do Brasil.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thank you for your nice words! I am glad you like our hobby.
@hzgl
@hzgl 2 роки тому
How to avoid frustrations - only if The Things Network could use terms with some level of coherency and avoid using a vast number of alternatives to refer to the same thing - TTN V3, The Thing Stack, The Things Network Community Edition, The Things Industries V3.
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are right. There is a lot of confusion. And most is home-made. Fortunately, the reality is simpler...
@SootySweep22
@SootySweep22 2 роки тому
Yes!! The barrier to entry for Lora and TTN is the language!
@DD0ULQTC
@DD0ULQTC 2 роки тому
Moin Andreas, your video reminds me that i wanted to start this for a long time. Maybe it was pretty good idea to have waited. Thank you for the helpful information! vy 73 de Micha, DD0UL
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are welcome. The DARC has started a LoRa group if you are interested…
@akindiranolanrewajujohnson1873
@akindiranolanrewajujohnson1873 2 роки тому
well done walkthrough the link to DARC Lorawan
@eddyk6853
@eddyk6853 2 роки тому
Looking forward to your Helium video. Keen to use my Helium Gateway and send it data from sensors.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Good to know. I am not sure when it will become available...
@NicksStuff
@NicksStuff 3 місяці тому
13:02 You could use some of the Energizer Lithium AA or AAA you get with weather balloons, they're meant to work in cold environments
@AndreasSpiess
@AndreasSpiess 3 місяці тому
Yes, I use them sometimes. Fortunately, our weather is not htat cold...
@cedricpod
@cedricpod 2 роки тому
hooray thanks for the excellent video
@AndreasSpiess
@AndreasSpiess 2 роки тому
Glad you enjoyed it
@stcharos
@stcharos 2 роки тому
A big thank you from Greece Andreas! Great video once again! Managed to register my MikroTik lora 8 GW to TTN. Could you suggest an ultrasonic sensor to measure distance? I have an arduino board and I m planning my first Lorawan scenario 🙂
@AndreasSpiess
@AndreasSpiess 2 роки тому
I only know the usual ultrasonic distance sensors. But pay attention. They are active and consume a lot of energy.
@joinedupjon
@joinedupjon 2 роки тому
Maybe a delicate point but isn't updating the protocol with no back compatibility going to destroy confidence and limit uptake. Hope they can keep it stable for many years now.
@AndrewDeme
@AndrewDeme 2 роки тому
Yep, if they have any interest in surviving then forward and backward compatibility will become their highest priority
@AndreasSpiess
@AndreasSpiess 2 роки тому
The network was backwards compatible for about a year before it is shut down. My gateway and sensors ran now for nearly 5 years and the upgrade procedure is not that hard. So it is acceptable if I look to other technologies like my Smartphone or PC. The communication was not very good, I think. I had to do a lot of investigations, mainly on the sensor side.
@MetalheadAndNerd
@MetalheadAndNerd 2 роки тому
I was about to write the same.
@RottnRobbie
@RottnRobbie 2 роки тому
@@AndreasSpiess I find it disturbing that we've reached the point where we'll accept 3 to 5 years of compatibility. I own a 70 year old phone that still works on the current network. I can still listen to 50 year old CD's through my DVD player, and I can still get parts for my 30 year old car, washer, dryer, stove, and furnace. But because it's "modern", we're happy if we get 5 years before we have to toss it? (Edit: *40* year old CDs... Thanks Dagerman65!)
@toolsarecool
@toolsarecool 2 роки тому
@@RottnRobbie I agree with your general sentiment, but 50yr old CDs won’t be here until about 2029… 😂
@sebakiller9736
@sebakiller9736 2 роки тому
Wow nice Video i Must change my Sensor
@AndreasSpiess
@AndreasSpiess 2 роки тому
It is hight time. The old network is switched off by now...
@soumitradey8208
@soumitradey8208 2 роки тому
Fantastic Sir! Thank you. I tried ABP mode MCCI library with RFM95 sensor node. The node works on activation of TTN v3 for a day. Next day the node does not work... so again I have to re do as a new node. I would try OTAA as you suggested. On the GPS tracker node , in the v2 version you can see the gps node on the TTN mapper , but I cannot find that in the V3 after migration...
@AndreasSpiess
@AndreasSpiess 2 роки тому
ABP works. But you need to manually add frequencies and pay attention that you counter always counts up. Even if you disable it.
@soumitradey8208
@soumitradey8208 2 роки тому
@@AndreasSpiess Thank you sir I will check this.
@gandy4711
@gandy4711 2 роки тому
Excellent video, as always. I'm new to LoRaWAN and TTN and even after days of research I'm unsure of one thing: I want to monitor and ideally remote control an off-grid irrigation system controlled by a raspberry pi. Since there's no network connectivity, I'm thinking of connecting it to TTN, but I'm not sure how to best do things. Would a SX1262 Hat be sufficient to send data from an number of sensors and receive commands? Or would it make more sense to have a esp32 board with radio that connects to the raspi through wifi and is used as a relay to TTN? Or are there existing solutions to this? Any help pointing in the right direction is highly appreciated!
@AndreasSpiess
@AndreasSpiess 2 роки тому
Maybe you watch my other videos about LoRaWAN. Particular the introduction. The chip selection is not important. All chips have very similar performance.
@rccmhalfar
@rccmhalfar 2 роки тому
Great as always - I am torn about the LMIC - MCCI dilemma - is there some pointers to learn more? Does this mean ESP32 ESP8226 are no longer viable for LORAWAN Nodes? Appreciated
@AndreasSpiess
@AndreasSpiess 2 роки тому
Only if you want to deep-sleep them. Otherwise MCCI works fine
@myloveisvyvy
@myloveisvyvy 2 роки тому
Excelent informative video!! How can I use the "Low power Atmega1284P based Arduino Lora node" with 915Mhz Andreas?
@AndreasSpiess
@AndreasSpiess 2 роки тому
Just use a different RRM95 module which supports 915MHz
@donovannewton9507
@donovannewton9507 2 роки тому
Is there a discord or a way to ask further questions? I’m loving the content as I’m very new to all of this
@AndreasSpiess
@AndreasSpiess 2 роки тому
TTN has a forum with lots of specialist.
@foibsgap1556
@foibsgap1556 2 роки тому
Great work, I have only one question, how do you send downlink messages (for example: FPort:3 Payload:01), from node-red to the TTN v3 ? I can receive my data, but I donnot know how to send data back to the TTN
@AndreasSpiess
@AndreasSpiess 2 роки тому
I never tried it. But there is a node in Node-Red to do it.
@miguelmoralespinero1216
@miguelmoralespinero1216 2 роки тому
Great video Andrea, nowadays I am using a esp32 for a project using wifi and sigfox, i am starting to use de rfw95 to have also the possibility to use LoRaWAN, and I have test it and it works, but is true that i have to sleep them.The issue is just that after sleep mode I have to redo the JoinRequest, or there are further problems. I will really appreciate your help. Thank you very much in advance. Miguel Morales
@AndreasSpiess
@AndreasSpiess 2 роки тому
If you live in Europe you should be able to use my sketch from the last video.
@Morlev44
@Morlev44 2 роки тому
Hey Andreas, given that some airlines have doubts about 5G networks interfering with navigation instruments of their infrastructure, do you think that 5G might also mess with LoRa networks?
@AndreasSpiess
@AndreasSpiess 2 роки тому
No problem. These are completely different issues. Proof: The problems are only in the US because of their frequency allocations.
@Andrew-rc3vh
@Andrew-rc3vh Рік тому
Have you tried the Ra-08 out? It's got a SX1262 chip in it so more modern and also an ARM Cortex M4. AI-thinker has a Github page for it, some stuff is in Chinese, although what I was wondering is if I could load the Semtech's code onto it. The AI version says you need to run Linux, but the Semtech people say you can run their code in Windows and the way it loads means it will run on any target processor. I've had a look at the code and see it is quite easy to configure. You just dump your data into an array and set the flags etc.
@AndreasSpiess
@AndreasSpiess Рік тому
AFAIK, the RA-08 already has a LoRaWAN firmware on it and is used with AT commands like an old modem (search for "LORAWAN NODE APPLICATION: AI-THINKER RA-08/H MODULE"). I did not find information on how to program it with the Arduino IDE. It contains an ASR6601 MCU. Maybe you can program it with the Heltec Cubecell software?
@Andrew-rc3vh
@Andrew-rc3vh Рік тому
​ @Andreas Spiess What I'm interested in is low power, and low cost and hardware complexity, so the whole reason to use it is it looks possible you can run the whole thing on the internal processor. The other issue that helps is the whole thing comes self-contained in its own screening can and is designed to pass the CE certification. All high speed switching is nicely screened and tested for EMI. Actually I would not be surprised if the Heltec software is very close the AI thinker pre-installed software which in turn will be a fork of the Semtech official software. I've got a copy of Visual Studio if the Arduino system does not work. The Ra-08 is new so not too much software support yet.
@polarexpeditionmedic
@polarexpeditionmedic 2 роки тому
From someone who is really new to LoRa… If I want to send a pdf document (medical protocol) and life stream a video (patient monitor) would that be possible over the LoRa network ?
@AndreasSpiess
@AndreasSpiess 2 роки тому
No. LoRa only has a very low throughput.
@kwinzman
@kwinzman 2 роки тому
The video title and thumbnail are a bit missleading. The newest LoRaWAN versions are: 1.1 Roaming added, security features added. and 1.0.4 Class B improved, security improved, clarifications It is only TTN that has decided to call their version of servers V3, not LoRaWAN gateways or sensors!
@AndreasSpiess
@AndreasSpiess 2 роки тому
I thought TTN was in the thumbnail as well as in the title...
@McTroyd
@McTroyd 2 роки тому
Once our income issues subside, I think I might buy that RAK hat! Got a Pi 3 sitting around gathering dust. Totally unacceptable. 😁
@AndreasSpiess
@AndreasSpiess 2 роки тому
These hats still are quite expensive because the same technology is used by the Helium network which is growing like hell...
@McTroyd
@McTroyd 2 роки тому
@@AndreasSpiess They were twice as expensive when I last looked, even amidst the chip shortage, so hopefully they have further to fall yet. I'm not invested in any of these networks right now so I'm happy to wait.
@pverbakel
@pverbakel Рік тому
I am wondering, if you connect to TTN, with your own LoRa-gateway, is that using LoRa as well?, or is that via Internet only. If so, why not use an any other MQTT broker on the Raspberry Pi itself combined with Grafana. Or connect to TTN directly from the Sensor-Nodes using LoRa. (....Me puzzled....)
@AndreasSpiess
@AndreasSpiess Рік тому
Maybe you rewatch my LoRa introduction video. The gateway is connected to the internet. It receives LoRa messages and transmits it to the TTN backend. There my MQTT broker get them and feeds them into node-red.
@andersyuran7725
@andersyuran7725 Рік тому
In general, must I use a outside server to use lorawan or can it be local?
@AndreasSpiess
@AndreasSpiess Рік тому
Maybe you watch my LoRa introduction video? The answer is not simple.
@NicksStuff
@NicksStuff 3 місяці тому
12:23 Interesting, I thought it was 1% for everything before. So I checked the ETSI documentation and found it's 10% on 433 MHz and you can ignore the duty cycle limits on some frequencies if your Tx power is set at a lower limit.
@NicksStuff
@NicksStuff 3 місяці тому
For those interested: www.etsi.org/deliver/etsi_en/300200_300299/30022002/03.02.01_60/en_30022002v030201p.pdf (Annex B page 21)
@AndreasSpiess
@AndreasSpiess 3 місяці тому
These limits are defined locally. But LoRaWAN in Europe is on 868MHz
@NicksStuff
@NicksStuff 3 місяці тому
​@@AndreasSpiessMy understanding is that while TTN doesn't use it, it is allowed. "The LoRaWAN® can be used in the 433.05 to 434.79 MHz ISM band in ITU Region 1 as long as the radio device EIRP is less than 12 dBm. The end-device transmit duty-cycle SHALL be lower than 10%.The LoRaWAN® channels center frequency can be in the following range: • Minimum frequency: 433.175 MHz • Maximum frequency: 434.665 MHz EU433 end-devices SHALL be capable of operating in the 433.05 to 434.79 MHz frequency band and SHALL feature a channel data structure to store the parameters of at least 16 channels."
@jimgbf
@jimgbf 2 роки тому
Did you have to update your Arduino libraries for OTAA to work before you migrated?
@AndreasSpiess
@AndreasSpiess 2 роки тому
No. I just removed the LMIC library and innstalled the MCCI library. But not because of OTAA. Just to have the newest one.
@catalinalb1722
@catalinalb1722 2 роки тому
Hello, I would like to use on of my ttgo t-beam boards to connect to ttn in order to register signal levels in my area. Is there such a sketch?
@AndreasSpiess
@AndreasSpiess 2 роки тому
Search for "TTGO T-Beam Tracker for The Things Network"
@wahidyak
@wahidyak 2 роки тому
Hello Sir, can I still connect to TTN V3 using Dragino Lora shield?? As per your older videos
@AndreasSpiess
@AndreasSpiess 2 роки тому
I think so. If you use OTAA
@erwinkooi6669
@erwinkooi6669 2 роки тому
Great video and right on time for my water sensor project. *must resist urge to buy iotdevices node *must resist urge to buy iotdevices node *must ... (Adds two to basket)
@AndreasSpiess
@AndreasSpiess 2 роки тому
No need to buy one if you do not already have one. On the other hand, if you have a valuable water project it might be a good investment ;-)
@qayyumrashid6949
@qayyumrashid6949 2 місяці тому
please help me sir, how do i determine the lorawan version that i need to use when i register my end device. I'm using Dragino lora shield v1.4 and i'm using AS923 frequency plan in my gateway
@AndreasSpiess
@AndreasSpiess 2 місяці тому
I would go to the TTN forum to ask this question.
@DivisPetr
@DivisPetr 2 роки тому
well, I already migrated, but Home Assistant does not have the V3 version integration yet :( I'm too hesitant to go the MQTT way.
@AndreasSpiess
@AndreasSpiess 2 роки тому
MQTT should also work fine with HA (as a backup for December)...
@erich7431
@erich7431 11 місяців тому
Thanks for this video. Something I don't understand about TTN : say I want to communicate between 2 devices that are 10km far from each other. Device A is in a zone without surrounding gateways so I need to setp my own. Problem is how do I know that my gateway will be able to relay messages to surrounding gateways in order to reach Device B? I understand TTN is a community mesh LORAWAN network therefore there's no guarantee 1 gateway will be close enough the another one in order to relay messages, is that right? Is there a way to 'simulate' a message travelling from point A to point B with all known TTN available gateways so that we can anticipate whether the message from A will reach B?
@AndreasSpiess
@AndreasSpiess 11 місяців тому
Maybe you watch my introduction video about LoRaWAN. There is no connection between sensors. Only between sensors and gateways.
@erich7431
@erich7431 11 місяців тому
@@AndreasSpiess ok I got it now, thanks!
@samip537
@samip537 2 роки тому
You were referring to those devices as cheap, I wouldn't call it particularly cheap when the TTIG costs ~92€. Already made sensor for outdoor use, 70€. Zigbee is so much cheaper.
@AndreasSpiess
@AndreasSpiess 2 роки тому
I also use Zigbee for short range. A very good technology similar to BLE.
@samip537
@samip537 2 роки тому
@@ruakij6452 I was talking more about the already made sensors, and not the modules themselfs.
@manelben9
@manelben9 Рік тому
Hello, on the file linked to my board, the AppEUI and DevEUI are written in big endian. Do I have to write it exactly the same on TTN to add my end device, or do I have to write it on little endian on TTN? Thank you in advance !
@AndreasSpiess
@AndreasSpiess Рік тому
It is written when you create the node on TTN. Not all numbers are the same
@manelben9
@manelben9 Рік тому
@@AndreasSpiess Thank you for your response. Nothing is written when i'm creating my end device. But I found afterwards if it lsb or msb by looking at the setting of my end device.
@giovanninieddu2179
@giovanninieddu2179 Рік тому
Good Morning, I’m using some HTCC-AB01 like sender, I’m sending some value read from 5 sensors connected to their GPIO. I’m using also an HTCC-AB01 like receiver. I need to know how many HTCC-AB01 used like sender can be handle by one HTCC-AB01 used like receiver. Can you help me?
@AndreasSpiess
@AndreasSpiess Рік тому
No need to ask twice the same question
@halsaresnowpaw522
@halsaresnowpaw522 2 роки тому
I have been enjoying these LoRa videos and have learned quite a lot from them. But I have not seen anything about using LoRa only on an isolated network. I am using Home Assistant and have several devices with it. I built a mailbox sensor a lot like what you have, but used WiFi for the communication and ESP Home on the sensor. It has some problems with power usage and I think that is because of the board I am using. LoRa looks to be a possible solution for this and other sensors I have been thinking about. There are no local gateways to me so I would have to install my own. My network connection can be problematic at time. I don't like relying on the cloud because of this. If my network connection goes down, or there are network problems, my devices stop working. Is it possible to setup a gateway that runs on an isolated network so I don't have to rely on TTN? I would probably also setup a second gateway for TTN, but it would be lower priority. Is there anything out there that shows how to do a private gateway?
@AndreasSpiess
@AndreasSpiess 2 роки тому
I made a video on one-to-one LoRa connections. Maybe a solution for you?
@richvantrease
@richvantrease Рік тому
I live in a very remote area, my nearest non-tech neighbors are about 1 KM away. To me it only makes minimal sense to use something like TTN. I would really like to implement something like a star topology where the center brokers my messages either for Home Assistant or Node Red. I am new enough to LORA to not really know what key words to look for. I like Meshtastic, but it seems to be pretty limited on choices at the present. Any suggestions.
@sigi3360
@sigi3360 2 роки тому
Hello Andreas I am attending a further education course at the ZHAW and am working with Arduino and LoRa for the first time. I have an Arduino UNO board and a Dragino LoRa Shield v1.4. I want to connect an analogue sound level meter to my UNO board and transmit the data via TTN. Afterwards I want to visualise the whole thing on Thingspeak. Can you give me a good tutorial so that I can achieve my goal? Best regards Patrick
@AndreasSpiess
@AndreasSpiess 2 роки тому
As I said in the video: The Arduino is no more a good choice because it does not have enough memory. I made some videos on how to build LoRa sensors in the past.
@83SzT3
@83SzT3 Рік тому
Hi! Ich möchte um Hilfe bitten! Ich suche eine "LoRa"-Karte ... Ich habe sie vor ungefähr einem Jahr im Zusammenhang mit Ihrem Video gesehen. Das Gateway und der aktive Sender sind alle darauf. Das Gateway Möhlini Sonnenberg ist auch da oben...! Kannst du helfen?
@AndreasSpiess
@AndreasSpiess Рік тому
Ich verstehe deine Frage leider nicht :-(
@janlab2433
@janlab2433 9 місяців тому
I am trying to use nicerf sx1268 module with esp32 to sending and receiving data. Unfortunately i couldn't find the better Library support this module and pin connection aswell, always i have a initialization error message from the serial monitor pls help me i am a big fan of yours
@AndreasSpiess
@AndreasSpiess 9 місяців тому
Unfortunately, I cannot do remote debugging. I would check the connections to the LoRa chip and the pin definitions in your sketch.
@TMS5100
@TMS5100 2 роки тому
Are these sensors good enough if we sit in the first row?
@AndreasSpiess
@AndreasSpiess 2 роки тому
Definitively!
@Heisenberg2097
@Heisenberg2097 2 роки тому
My newest project is simple. Just a simple ESP32 or whatever with GSM and a single button... it is for my mother,. When the button is pressed it will send an email and an SMS to report an emergency. It can call me and the emergency. Makes a lot of sense. It can easily be altered to make a children tracker. GPS modules are cheap these days.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Its coverage is extremely good compared to all other technologies. But you are lucky that the GSM network still runs in your area. In many areas they are already shut down...
@7BlackJack8
@7BlackJack8 9 місяців тому
Problem is that for free edition they don't guarantee 100% uptime, and they want credit card info for registration (same story for any cloud vendor actually, which is actually very annoying to me). Also pricing for one month is 190$ more or less, which is quite expensive for home projects. Please correct me if I'm wrong.
@AndreasSpiess
@AndreasSpiess 9 місяців тому
Are you really talking about TTN? I do not think they have a credit card number from me. But yes, they do not guarantee uptime. Mission critical operations always are more expensive...
@SuperJ03y
@SuperJ03y 2 роки тому
Hi Andreas, can you show us how to use Helium which is a decentralized LoRa network funded by Crypto? I think the subject matter is perfect for your channel.
@SuperJ03y
@SuperJ03y 2 роки тому
@@nomoreprivacyanymore cool. Thanks for the link!
@Ardutomas
@Ardutomas Рік тому
Hi Andreass. im working in a final project for a degree, about LoRa aplication in Ambulance georeference and status alert sending. For the prototype im using a TTGO T-Beam V.1 board, but i cant conect the end device to TTN V3, the gateway shows that it receives packets, but in the internal application it shows no activity on the node, i put the EUIS in LSB and MSB, but is not working, can you help me a litle? Thanks!!
@AndreasSpiess
@AndreasSpiess Рік тому
Unfortunately, I cannot do remote debugging. But you seem to be close if the gateway receives packages. If you do not see a join request in the application, something with your numbers is wrong. Then, TTN does not know that the number sent by your tracker is yours.
@Ardutomas
@Ardutomas Рік тому
​@@AndreasSpiess Thank you very much for your answer, what number do you mean? to the EUI? I have put them all as the code asks me, it would help me a lot if you take a look, the code is on GitHub, as TTN MapperTTGO T-Beam Tracker for The Things Network. Should I modify something special in this code? Best regards
@AndreasSpiess
@AndreasSpiess Рік тому
@@Ardutomas TTN offers LSB and MSB notation. Some sensors need LSB and others need LSB. And sometimes it is even mixed. I am sure you will be able to solve the problem.
@timballam3675
@timballam3675 2 роки тому
SD card in my ic880a/Ch2i based gateway has died and none of the installations seam to work with current versions of rasbian, tried going back to jessie but that fails as all the repositories are dead... Anyone know of a working install?
@AndreasSpiess
@AndreasSpiess 2 роки тому
I still have my IC880a running with an installation based on the Zurich method (link in the description. But I do not know which version of Raspbian I am using.
@edwardcdg
@edwardcdg 2 роки тому
I must have blinked at the wrong time. What happens on Dec 31, 2021?
@AndreasSpiess
@AndreasSpiess 2 роки тому
The TTN V2 network will be shut down.
@edwardcdg
@edwardcdg 2 роки тому
@@AndreasSpiess Thank you
@ulis.1544
@ulis.1544 2 роки тому
I don't get you point why esp32 are not suitable for MCCI OTAA. OTAA should be used to join the network. Once done a ABP is totally fine after a sleep.
@AndreasSpiess
@AndreasSpiess 2 роки тому
I am not sure if you can mix the two in one node. At least I had to chose one for each end device (ABP or OTAA).
@ulis.1544
@ulis.1544 2 роки тому
@@AndreasSpiess you can mix abp and otaa... This is even the desired method by ttn.
@rccmhalfar
@rccmhalfar 2 роки тому
This is an insight I wish to learn more about. Any good pointers?
@dreamcat4
@dreamcat4 2 роки тому
yes greater clarification would be helpful here. because of the desirability of esp32 in sensor nodes. and also because for other mcus, then the addition of a 'nano power timer' would also mean the mcu execution gets resetted there too, right?
@dousiastailfeather9454
@dousiastailfeather9454 2 роки тому
Opps, supposed to say ARE acceptible! But people here are brighter than the average surfer so there ya go...
@AndreasSpiess
@AndreasSpiess 2 роки тому
I do not understand :-(
@thedarkglovemusic
@thedarkglovemusic 2 роки тому
This video (as always) is awesome. Will you be my new Dad?
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thank you. I already have enough kids ;-)
@chansheunglong
@chansheunglong 2 роки тому
The 5 seconds between is just a TTN thing, the time between TX and RX can be different on different networks. It is not the protocol.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thank you for clarification!
@janlab2433
@janlab2433 Рік тому
How to make sms tranciever system using a mobile app with wifi on esp32
@AndreasSpiess
@AndreasSpiess Рік тому
First define your exact needs and then search for a good project. Maybe you will come across the "Meshtastic" project...
@laurenth7187
@laurenth7187 2 роки тому
Sorry to disturb, but i find it really hard as a novice, to understand GET and POST requests... I mean, in url encoded form you send a string, not data, so you need to create the string first, meaning to convert data into characters ? And then decode the string, on the other side, and how to get sure the data is put in the right place. .? Thanks, l
@AndreasSpiess
@AndreasSpiess 2 роки тому
This is too complex to be answered here. But I am sure Google will help you. For TTN, you just can use my Node-Red flow and it should work.
@peterkuemmerli7695
@peterkuemmerli7695 Рік тому
Hallo Herr Spiess, super Tutorials haben Sie da auf UKposts geladen. Ich bin gerade daran, mit ein paar Kollegen ein Zeitmess System für die Trendsportart des Bogenschiessens zu Pferde als Prototypen zu realisieren. Dabei sind ein paar (Zeit) Messpunkte auf weiter Strecke verteilt. Denken Sie ein lokales LoRa Netzwerk wäre für so eine Aufgabe geeignet? Die Präzision der Zeitmessung ist nicht entscheidend, aber die Zuverlässigkeit der Signalübertragung. Vielen Dank und viele Grüsse vom Peter aus Bern.
@AndreasSpiess
@AndreasSpiess Рік тому
Da müsst ihr ein spezielles Protokoll schreiben mit Rückmeldung wenn korrekt empfangen und wiederholen wenn nicht. Ich nehme an die Knoten sind in Sichtverbindung.
@peterkuemmerli7695
@peterkuemmerli7695 Рік тому
Ja das ist so, Sichtverbindung innerhalb weniger hundert Meter. Wäre vielleicht auch eine Option die Message mehrfach abzusetzen zusammen mit der Verzögerungszeit wenn der Triggerpunkt ausgelöst wurde. Ich frage mich noch ob ich für erste Versuche Einen LoRa ESP32 oder Raspberry Pi mit LoRa Shield nehmen sollte ? Vielen Dank und viele Grüße, Peter
@AndreasSpiess
@AndreasSpiess Рік тому
@@peterkuemmerli7695 wenn du sicher sein willst brauchst du eine Rückmeldung. Ausserdem vermutlich synchronisierte Uhren (kann mit GPS einfach gemacht werden). LoRa braucht viel übertragunszeit. Ich würde T-Beams nehmen. Die haben alles.
@peterkuemmerli7695
@peterkuemmerli7695 Рік тому
@@AndreasSpiess Vielen Dank für die Tipps! Falls LoRa die geeignete Technologie für eine solche Anwendung ist und die TTGO Module, respektive ESP32 mehr als nur eine proprietäre Eintagsfliege der Elektronik-Entwicklung zu sein scheint. So könnte ich mit 3 solchen Modulen eine Punkt zu Punkt Verbindung zwischen Zeit-Mess-Gates und dem zentralen Steuergerät realisieren ? Eine Einbindung ins Internet, respektive ein Gateway wäre für den stand-alone Betrieb ja dann nicht nötig, vielleicht zu einem späteren Zeitpunkt mit neuen Funktions-Erweiterungen. In welchem Bereich liegt das mit "viel Übertragungszeit" sprechen wir da von ms oder s? Viele Grüsse und vielen Dank, Peter.
@AndreasSpiess
@AndreasSpiess Рік тому
@@peterkuemmerli7695 wir sprechen von Sekunden im schlimmsten Fall. Aber du weisst nicht wann der schlimmste Fall eingetreten ist. Deshalb GPS. Ich werde in Kürze ein Video über ein Sensornetzwerk machen. Vielleicht ist das was für dich. Hoffentlich noch vor meiner Sommerpause.
@jstrykow9694
@jstrykow9694 2 роки тому
13:49 where is the text from the sketch????
@AndreasSpiess
@AndreasSpiess 2 роки тому
I thought it is inside the Arduino sketch (as comment)
@zyghom
@zyghom 2 роки тому
Great video as usual Andreas. However, considering we would like to be disconnected from the "3rd party clouds" (for any reason) LoRa makes sense only if: 1- your sensor is out of reach of your WiFi/BT and 2- you cannot use any other RF4xx/8xx MHz transceiver (for extension of the range) Otherwise WiFi/BLE/RF modules are more "private". If you i.e. see where Home Assistant users go (read: devices that are INDEPENDENT from clouds) I am not getting why "sensors users/makers" should go opposite direction ;-) Also: LoRaWAN reduces the amount of sent messages per day - sometimes it is not enough if you stay within the required/limited messages per day (ok, you might not have the postman coming more than 1 time per day but other sensors?). Alternatively: own LoRa gateway but then again: why LoRa not any other radio interface/protocol? "One more thing": if I remember correctly LoRa is patented and NOT open standard, right? One day someone will say: "kindly starting tomorrow please pay me..." ;-) Or in case of disaster, when cloud goes down you don't even know if there is... a rain or sun in your garden ;-) One last thing: no OTA when you use LoRa, right? So the idea about having sensor that is far from you (read: further than your WiFi range) is killed when you need to update the program. Apart from OTA: when you have WiFi you can use MQTT to even reconfigure the sensor remotely i.e. update_interval or so - probably impossible with LoRa with limited transmitting allowed. For the battery issues: I just upgraded all my sensors by installing solar panels (10x7cm) and even in UK the battery is full every day before the midday. This way battery is not an issue anymore. No, I am not against LoRa - just thinking loudly ..."why LoRa(WAN)?".
@AndreasSpiess
@AndreasSpiess 2 роки тому
Here are my 2 cents: It all depends on the use case. I do not care too much about privacy or cloud for the data I transfer with LoRa and, as you write, I only use it if WLAN does not work. You can do OTA for remote nodes with LoRa but I never tried it. Most sensors are so simple you probably do not need to update OTA if you did a proper testing job. You are right: LoRa is a proprietary protocol. This is not important to me because it is built in a (proprietary) chip. I will be able to use this chip till it dies, even it I am not allowed to copy it. Why not another interface/protocol? Because I would have to write it myself. And LoRa exists and in many areas you even do not need your private gateway. Very handy. BTW I use 433 for my weather sensor, for example. Concerning clouds: I do not see that people go away from clouds. I see a big trend in the direction of clouds, particularly in the business environment. Private users already are on the hook for years (Facebook, Whatsapp, Apple, Spotify, etc). I do not push it in my systems, but I accept clouds if they provide some added value.
@zyghom
@zyghom 2 роки тому
@@AndreasSpiess and you might be very right Andreas ;-)
@dousiastailfeather9454
@dousiastailfeather9454 2 роки тому
I'm impressed! So much effort to make this thing operable. Wow! Takes hundreds of dollars to get to simple implementation. Lots more for gateway... Ongoing costs to get into internet... Wow! And yet my remote field cam setup can't use it because it's a SENSOR net! Nor my remote security system with watchdog maintaining constant com. For hobbyists, lorawan is fun to play with. But of what real use? Sure, I got a hot tub in the mountains and it says the temp...but I already know the temp, as I set it before I left.... But WHERE'S THE BEEF? Wimpy data on a lazy net. Blinky lights....ohhhh! Ahhhhh! Keep up the good work sharing the unfolding saga. Peace, Doug
@GreensladeNZ
@GreensladeNZ 2 роки тому
RIP my stock of 328P boards
@AndreasSpiess
@AndreasSpiess 2 роки тому
Maybe you can still use the "old" LMIC lib...
@ReneKnuvers74rk
@ReneKnuvers74rk 2 роки тому
What a pitty the swiss low power board is not available anymore…
@AndreasSpiess
@AndreasSpiess 2 роки тому
That often happens with my videos... But he has a waiting list...
@ReneKnuvers74rk
@ReneKnuvers74rk 2 роки тому
@@AndreasSpiess I know. Entered myself in it. Would be thrilled to get to work on some industrial sensor for autonomous sensoric on trains.
@MetalheadAndNerd
@MetalheadAndNerd 2 роки тому
Yes OF COURSE I will build my sensor projects on a platform that regularly forces me to migrate to new technology. My free time is endless and I really have nothing better to do.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Regularly in this case means every 5 years...
@kefsound
@kefsound 2 роки тому
lora is all proprietary and corporate controlled
@AndreasSpiess
@AndreasSpiess 2 роки тому
Only the protocol definitions. You can do what you want with the boards...
@zerog2000
@zerog2000 2 роки тому
hmm, anybody else having problems with comments not showing up? I'm posting some comments critical of helium, and they show as posted, but then later they are gone!
@AndreasSpiess
@AndreasSpiess 2 роки тому
Did you include a link? Then also mine on my own channel disappear :-(
@zerog2000
@zerog2000 2 роки тому
@@AndreasSpiess yes, I included reference links to my sources, but apparently, YT is silently removing them. At least they should say no links or something.
@zerog2000
@zerog2000 2 роки тому
@@AndreasSpiess ok even after removing the links, they are taking down my comments, so not sure whats going on... it's not malicious or bad language - they are just silently disappearing :( I wanted to ask you to cover some things in your upcoming helium video, but I guess YT doesn't want "creator/audience engagement metrics" ;)
@AndreasSpiess
@AndreasSpiess 2 роки тому
This comment at least made it ;-) I will only cover technical details on nodes and gateways. No mining stuff. This was covered in my previous video.
@zerog2000
@zerog2000 2 роки тому
@@AndreasSpiess The gist of my comments were the other discussions on reddit of whether or not it was an elaborate ponzi scheme or not, as there seem to be requirement of a "buy in" even for non-earning gateways, they still charge something like $15 to get on the network. So will be interesting to see you cover anything related to registration and/or usage fees in these regards.
@SeanChYT
@SeanChYT 2 роки тому
The text is a little hard to read
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thank you for the feedback.
@dd0356
@dd0356 2 роки тому
I would rather wait for this technology to mature..For successful implemention one requires knowledge of hardware as well as networking...too much for people with limited brain functions like me...in the meanwhile i would experiment with cloud vm like amazon and my tv stb android box with debian for replacement of pi
@dd0356
@dd0356 2 роки тому
by the way, here is the pi4 running windows 11 ukposts.info/have/v-deo/jYmEraqQq6-ipJ8.html
@AndreasSpiess
@AndreasSpiess 2 роки тому
I thought this LoRa stuff is quite simple if you know how to do it... Concerning Windows on a Raspberry: Interesting and a good marketing trick for Microsoft. But here I am not sure if this is something I would want to do because I assume nearly no application will be compiled for ARM for some time. All the applications are the main reason to use Windows for me
@dd0356
@dd0356 2 роки тому
Most comments going to spam...
@AndreasSpiess
@AndreasSpiess 2 роки тому
?
@dd0356
@dd0356 2 роки тому
I wrote 2 comments both disappeared. Only this appeared.
@Heisenberg2097
@Heisenberg2097 2 роки тому
Only my feet smell better than Swiss Cheese. PERIOD.
@AndreasSpiess
@AndreasSpiess 2 роки тому
:-)
@dousiastailfeather9454
@dousiastailfeather9454 2 роки тому
...furthermore...be mindful of building MORE FREEWAYS! More freeways IS NOT a good solution to congestion on wifi. Sensor solutions that integrate coms and avoid ad-hoc, hit or miss tech are not acceptable in todays world. It's another way to cut costs by trying to vampire another system. Cheap, imported devices use this sloppy tech. Mostly it works after a fashion. But is a real user, like a farm owner, going to install the cheapest system or a mid scale system? Would he settle for temp while his neighbor has video of his tractor working a field? Lorawan is cool in many ways, no buts about it. But utility is huge these days! Lorawan is slow scan tv WITHOUT a blurry image!
#402 LoRaWAN V3 Mailbox Notifier (TTN)
17:35
Andreas Spiess
Переглядів 74 тис.
Escape From Spike With Herobrine and Entity
00:27
Garri Creative
Переглядів 14 млн
Эффект Карбонаро у глазного врача 
01:00
История одного вокалиста
Переглядів 3,6 млн
Rutgers University Confirmed: Meshtastic and LoRa are dangerous
13:27
Andreas Spiess
Переглядів 696 тис.
Building an End-to-End LoRaWAN Application with The Things Stack
28:26
The Things Network
Переглядів 6 тис.
How LoRa Modulation really works - long range communication using chirps
27:38
LoRaWAN Fundamentals in 5 Minutes
4:48
The Things Network
Переглядів 35 тис.
Heltec Version 3 Meshtastic Firmware & Radio: The Complete Setup Tutorial!!
30:56
Disaster Communications
Переглядів 12 тис.
How does NB-IOT and CAT-M1 / LTE-M compare to LoRaWAN (Tutorial)?
21:58
Andreas Spiess
Переглядів 52 тис.
iPhone 19?
0:16
ARGEN
Переглядів 3,1 млн