[Music]
[Music] Hello, I'm Fernando Koyanagi and today
I'll do it. I'll show you one. video that was is very request, many
followers said to me: "Fernando Lora is sending the
other, But how do I do it later?
to a server, how do you I do this?
So a lot of people started to ask and this question was recurrent
I told you, I know the deal, I'll record it. a video where I'll put together two things
that I have already done, so in fact this video that is going to be the junction of two
videos, I already did LoRa send to another LoRa the sensor
temperature, humidity, pressure the BME280, there I I told you, this guy who receives will be the
gateway and it will send over wifi, so this one
here is the endpoint he sends to this another ESP that in this case is the gateway,
and the router that sends it there for IBM watson, it sends IBM
watson, where there he has a broker ... He has a broker, I think as soon as
writes, it must be so, I do not know, I think broker, it should be like this.
Anyway, he sends the broker, the server and I had already recorded a video
IBM watson how did you get it? endpoint would send it
so this video is nothing more than that So it's cool because he
uses the LoRa radio and if that gateway here uses two radios he uses from here to here
LoRa, from here to here it's wifi or from here Here it is 915mhz and from here 2.4 Giga
with the 802.11 wifi network, the endpoint has a BME280 sensor and it uses
from here to the gateway here
it uses the MQTT protocol, which also I already explained, so the truth is
that. The intention of the lesson, I ended up explaining Use BME and
respond to the request with the data and sent to IBM Watson for
MQTT and then I'll record How do we do a program there?
within IBM Watson when creating a of data, to make the "parangolé" all there
huh. I said parangolé. Boy
Let me talk here and it's not that there are any "gringos" who are watching my video,
They call the translator Then I say "parangolé" and I do not know how
translate "parangolé" in English understood and There they stay: Pow you speak slang there
I do not understand. So complain to them politely sometimes expensive! But I
I can not do it my way, I do not I know, I'll keep recording, you know?
You who are gringo there, I'm sorry, but I'll go I'll try, I'll do the following, I'll go
try to put the translated caption, I'll try
I'll try to translate myself and translate I'll see if I'll handle it.
Is it? Continuing, it is as follows
People this video nothing more is that the joining of these two
on here. Where do I get this seeing? The BME280, This guy goes over here and he asks.
the other comes and returns; and then I'll get it all this here, the second ESP
I call 802.11 on it and send it to IBM Watson, that is, I get this endpoint,
this "guy" here is the endpoint ... endpoint there are people calling it a node
an electronic "face" with sensor Sending it there. So you have to
watch these two videos, if you do not watched watch
if not you will not understand this one, that I I'll talk now, because I will not say it again.
all because it has a lot of source code. I will not speak all the source codes
if not this video will get giant, then Watch this and watch this I just go
Show me a piece that I put together all there? People
this is the endpoint and this "face" is a slaye. You have an EndPoint here
but you can have two, three, four, five...
Okay, but you have to change a little bit source code. This source code
is for one, if you put two, three, four, endpoint You have to change the source code and do
multi client. So what happens? You come from here, he sends GETDATA
There he sends SETDATA, there in SETDATA comes the three parameters,
temperature, pressure and humidity Then he picks up his radio.
connected in 802.11, it is logical that it your internal router and then he sends you
TCP / IP it is sending in TCP / IP, because here ... from here to here, it's not TCP / IP, it's the
what? Which is? It's LoRa! It's radio protocol LoRa, it's not even LoRaOne
it's not even LoRaOne, it's LoRa! So this gateway here, this "guy" is a
gateway. This "guy" is a gateway, he is a
LoRa gateway, right? Gateway LoRa, LoRaOne gateway is a gateway that uses protocol
LoRaOne, was that clear? Because no At first I did not speak, I left a lot.
separate if I was talking about LoRa, if I was
speaking LoRaOne there some followers caught my attention:
"Fernando you're talking about LoRa, it's LoRa, If you are talking about LoRaOne is a
protocol LoRaOne "That's another thing, I already told you, I have a video, which
I already spoke the difference. Here is the
hence the graphical display there of the IBM Watson, so look, he's getting, he's getting,
here is the scale, scale is well "tight", then stay
varying, varying, varying, but it is because it is changing a
decimal place. Then it is the following You click here if you get the temperature, you
cyclic here is moisture, if click here is pressure. Very practical, very fast
work understood? And you do not need make graph or anything, program graph, because
it's all done here. A marvel to use these features!
This is pinault, I always I leave the pinault, because in the end the PDF is a
book. Here's the pinault. of BME280, I like BME280, I liked it
Because I liked him? Because it is i2c, it is i2c, it worked
very well, it works very well, it's very stable.
I always liked this pinault, I already I wanted to talk to him and he has a trick.
that I speak there in the video, he has a trick for it to work on ESP32 you have to
do ... change a "h" point there and me on the video I say that, that's the only reason you have to watch.
Look how easy assembly is just like the other video.
I watched the demo Let's see now, that I film up there, in the
front of my monitor, I'll watch it now. Good folks this assembly has the gateway
and we have an endpoint, can I have
many endpoints, of course, but works like this. The gateway asks for the
endpoint to send the information temperature, pressure, humidity.
The endpoint sends to the gateway and the gateway sends it to IBM Watson. So
this is the IBM Watson screen I can choose, for example, I
I want to see the temperature here graphic danced all the time because
I left here, I did not scale, in fact it is very clear
information has been coming in real time.
As this endpoint sends this gateway already sent by IBM Watson, this here
It's really cool, if here's an example. very complete IOT and here in this
menu and are the three parameters that I read from this
endpoint which is the BME280, so I explained the BME280
in that video, right? Then the assembly here it is very simple and what it has
different in this assembly, many people asked me, this is how I received the
LoRa here and then how do you send it? by wi fi?
There's no mystery, you'll see. this later in the source code,
so that's it, guys, our montage of today.
Now, people, that message, enters the blog Fernandok.com, if
register, then you will receive an email, You'll confirm, I'll go.
I can email you and you guys they will be able to send me an email, sign up
on the channel, click on the bell for me, it appears that the two risks are
and a like if you liked. Good next, people library,
library you will need the BME280 of Adafruit,
you will also need Adafruit sensor based libraries, mandatory too, you go
need ... are not we using MQTT? You will need the pubsubclient,
need the MQTT protocol and here Trick people, that trick, that trick, that
have to do no pins_arduino.h, which I already
I explained in that video there, but it's never Too many to speak again, right? Because you have
change, the standard pin i2c it is a business that you have
to do otherwise the sensor will not work. People here are the .h but here it is.
Where I'm going to jump because I've already I explained this here in another video,
on the part of IBM Watson I already explained in the another video and has a piece here, which is a
piece, which is the junction and logical that two codes, where are you?
source code of the master and has a slayer source right? And in source code
of the master, which in this case is the router is here on the page,
25 ... 26, is 26. I'm just going to explain this guy here! What
happens? Because in the other video I already I explained I have slave and I have the Master,
Then the master orders "and says" I I want the data and the slave speaks.
data "when this guy gets ... let it separate here
this piece of source code here is LoRa.
This piece of code here, which, that he is?
802.11 wifi, understood? Understood? That's what It makes a guy ... What makes a guy be a
gateway in people? What is one gateway It is the subject that receives here
radio parrot, parrot protocol, pick up and go by IBM Watson, so what is he doing?
on here? Remember that business that we get the
packetSize, then we check it out the SETDATA size, if it is larger
of size that the SETDATA there it zera the string, there he is concatenating everything that is
arriving from the LoRa radio, then he checks here. Beauty! This is it here, if the header is
what do we expect, what will he do? He
Go get this guy here at the end. 267 00: 12: 09,130 -> 00: 12: 15,190 here and look what he is going to do,
client.publish, we already did on that IBM la, client., look
msg.c_str or is it taken from LoRa and sent it to IBM, this is what the
gateway he takes from one place passes another, from one place to another, it seems
a little dance
[music] I'm not good at it, I'm not. So that's it, this is it, the essence
the gateway is here, you work with the wifi and works with simultaneous LoRa.
Let me see if there's anything else to talk about ... Also the IBM Watson business, you
have to put your code here you do not even have to log in and
password nothing. It was really just that, it's
a project, thus, is a gateway simple is the thing
more ... is the gateway most in the bone, simple that I could do. Because you know that I
I like to do the simple thing so that people understand.
Then you take the simple and make a medium, then you do the advanced step by step.
You play there 800 line for the program to read from once there
I confuse my head, I do not think it's a good strategy. People again I thank
comments, I always want you to leave a comment, leave a comment there below
huh asking, speaking, congratulating,
scolding me, scolding me not and leave me legal comments and until the next video
[Music]
[Music]
No comments:
Post a Comment