Hello,everyone
Today we will see the solution for use mobile phone to control relay box
There are two solutions
one is for WAN,another is for LAN
We will see what's distinguish between two solutions
how these solutions to works
how it works.
we will see the first solution for WAN
this is a router
This is our relay box
uses network cable connect with it
and this is cloud server
this cloud server connect with internet
we have a mobile phone in this position
This mobile phone also connect with Internet
such as by WiFi,3G,4G or 5G
our relay box is connect with router, router is connect with internet
with cloud server
your phone is also connect with internet
so you can visit cloud server
so you can use your mobile phone in any way
such as in any country or in any place to remote control relay box
it's no problem for the whole world
just your mobile phone have network
such as by wifi,3g,4g,5g all can control relay controller
this is solution "WAN"
Let's look at the second solution
also we have a router
and this is relay box
And this is a mobile phone
this is network
this is use WiFi
WiFi connect with router
this struct is very easy and simple
just mobile phone connect with the router and relay box connect with router
he is a thing network,
this is the function of "LAN" solution
all these device work in same network
it's only use in your home
this is your home
if your mobile phone outside the home,you can't control the relay box
But if somebody want to know
how can I use this solution for remote control for home automation
just like this "WAN" solution
but they don't need cloud server, how to works
Now we find a way to use remote control in this solution
But what's the difference between "WAN" and new way
Because it's not need cloud server
so we use "DDNS" for this function
this function usually provided by router's manufacture
the "DDNS" can convert IP from Domain
the domain can convert IP and tell the router
so your mobile phone can outside your home for remote control relay
If outside the home,you can use 3g,4g,5g...
for GRPS communication
So this is the whole structure
The best way is not need cloud server
this solution need cloud server
if the cloud server is broken or internet is broken
The cell phone can't use this relay box
but in this solution there is no cloud server
just mobile phone direct control the relay box
it's more safety and the stable
Now let's say this desktop we have two same controller
This solution use "WAN" for remote control
and this is "LAN" for local control
This is a router
This router have connected with the Internet.
this router just connect network cable to the controller
we use this mobile phone for demo control relay
this is KinCony smart home application
We can use WiFi mode
we can turn ON/OFF relay
when we press turn on relay,the mobile phone is connect with our cloud server
cloud server send message to this relay controller
we can close WiFi,Turn ON the 4G mode
this is use GPRS
we can also turn ON/OFF the light
we can not only use in WiFi , but also cell phone data for communication
now we use another phone app for LAN control
Now we can turn ON/OFF
use WiFi mode
disable wifi and open cell phone data
can't turn ON/OFF relay now
controller is not connect with our cloud server
so our mobile phone can't find the controller
enable WiFi
now we can turn ON/OFF light again
this is two kinds of mobile phone application for different situation
now let's look at how to use "DDNS" of the router
we login the router
We have choose the ASUS router
it support the "DDNS" service
Click "WAN" page
there is an option for "DDNS"
We can see this line
You can register a new host name we have already registered the KinCony is our domain
So you can register any new name
when we saved
Domain name will be active
we need change to port forwarding page
we have to add a line
so that when we visit the domain, "WAN" ip --> "LAN" ip
So we input port of our relay box
you can see ip and port by Vircom software
this is our LAN ip
Press OK
last, we enable the port forwarding function
now we open KBOX LAN app input domain name instead of ip number format
and also input the port and chose the channel
We press OK
you can see the controller have successfully add to phone application
use WiFi , we can control relay ON/OFF
Also we can change to cell phone data, not use WiFi
there is 4G
we can turn ON/OFF in 4G
OK,
We have see these two solution
Actually we have three ways
1: for WAN
2: LAN
3: remote control in LAN environmental
so you can see these different advantage
so you can chose which solution is suitable for you
Thanks for Watching!