Welcome back guys to video number 6.3. And in this video, why going
to do experiment how we can send the data?
From one Laura vendor to another Laura van node, you
can say that P2P. So let's get started with that. Okay, here
is the wire terminal and firstly we're
going to set up a receiver node, because there's a no
sense of attached to that.
And in the Box we will
get that white terminal.
Okay.
and
here is the chases.
just
Dash the antenna.
with that chases
and here you will get the respiratory pie.
Like gpio pins compatible GPS you can
say that.
Okay, just stack on it.
And here we're receiver node is good to
go. Okay, and here is the kit NCAP k1100
by the way.
If you didn't need the complete kit, you can just purchase a
simple wire terminal and the E5 module. Okay.
So here is the wire terminal.
And you will see the other modules like
I already mentioned this is the camera module.
and
there are different modules and here is our
Laura van E5 module, okay
and
bunch of cables connect
with that
So just attach this lower
when E5 module cable connector.
and on that right side of the wire terminal
Now put on that side, okay and here is
our
standard side area
by the way
Water terminal you consumes USB type-c
for the coding and the power and here's
a setup. Actually. I already have a
plan to
Set up a agriculture node, but the issue is
that it will be more complex. But don't
worry. I already have a project uploaded on the heckster.io in
the end of video. I will provide you
the link so you guys can get started with that. So now
it's time to do the
Coding so we can send and receive
the data.
Welcome back guys to coding section and here are our.
Wire Center code and this is our wire receiver node.
So firstly we will discuss about the wire sander here. I didn't
connect it any sensor because it will make a
complex.
To learn all the stuff. So just I put some dummy
random values to understand. Okay. So let's
get started with that here. We have a software serial E5
the E5 module is initiated on
zero comma one pin number, okay.
and
so firstly let's get started with the setup. Okay?
Firstly we will initiate the screen where we have TVs this
year to and some other stuff.
Temperature and the humidity and here
we are very fine.
the
E5 modules so firstly we will begin the
serial begin which is our wire terminal serial. And
here is the E5 in the previous we mentioned here.
This is the E5 software serial zero comma one
okay, and after initiating all the
stuff here, we find that this is
connected or not connected by sending the 80 command by
using that method at 1800 square centers. Go
check in our school response.
And here we have mentioned the configuration that we
want to use the 868 frequency SF 12
and the other specification and here's a
200 millisecond delay. If the
module found then we are good to go. If not, then it will display the
error. No E5 module and is exit is equal
to pause.
Mean we cannot continue. If it's true. Then the
node sand will start extending the data after every the
three second delay. Okay. So now
let's get to the node anderscore sent method. So
here is our method note send and we have a one two
three and the four variables where I'm using the random.
Methods Arduino built-in method and airware specifying
their ranges and it is sending the random values
that you guys are also seeing on the screens. Okay, and
after that we are displaying that data
on the screen and here we are
sending all of the stuff.
To the Laura when using the 80 commands and after
that we will see that Command Center successfully. Okay,
and this is the our Center node
and if we come to the receiver node, we are using the Laura van.
Chases for the chess is we have a e540 comma
41 okay.
It's a different because air we have
a different pin number on the center side,
but on the receiver side, we have a chases rack mounted.
So it have a 40 and 41 pin and
if we come here and the setup same
we are initiating the screen and everywhere
opening the E5 dot begin
and verifying the module is attached or not
if attached then okay, if not yet, then it will say is
exit false and we will not.
Be able to listen, but if yes, then the node
receive function will be started. Okay, and
We need to put the 2000 or
the 6000, okay.
But it works fine. So no worries. Okay, here is the
node receive method
it's receiving the data and then calling the
receive underscore parts
method to manipulate the data from White
into the real data. So this is the receiver parts
method which is listening the E5 and
for States checking that if E5 is available then
start reading and after reading it will
convert the data into different. Sorry. I
didn't modify the code. It is the TV
OC this is the CO2. This is the temperature and
this is the humidity and after that we are displaying all
the data on the screen.
So these are the course. So both boards
are connected before moving on you need to select the board. And
here's the seat and the seat wire terminal and
on the port. We have a two boards connected
here.
A receiver is attached on the com4 and the sender is
on the home 10 and all the code as
been uploaded successfully. If you see the readings the E5
Center is sending the data TV OC 117
co2352 and on the receiver
node, you can see the same data but with some delays so
now this is all the stuff that I
demonstrated how we can communicate
P2P but air is my complete project.
Which is lower when based smart agriculture, it's easy.
You can just navigate to extra.io/m of
cell and you will get my profile and from that
profile you can get all the projects and this
is the project Laura when based smart agriculture monitoring. What
I am doing here is actually the
sender node contains the three sensors one is
outdoor temperature and humidity, which is DHD 22 and
one is a soil temperature sensor and another
soil moisture sensor and all the sensors are sending the
data to the white terminal and white terminal is sending the data.
To the receiver node using the Laura van
E5 module and then the receiver node is receiving the
data and sending that data to the things Peak
Cloud all the documentation and all
the stuff including the video course. Everything is
there and you guys can do the practice.
Actually it took a lot of time to
make a video. So I just plan to
make a P2P communication video to just show you
how you can communicate from one module to another
module and later. You can follow that
project and it will be good to go. Okay guys in
the next video. We're going to set up the indoor.
Gateway with the ttn and see you
next video. Have a good day. Bye.