How do IoT devices connect to the internet

Hello friends! Today, I will go with you to learn about an interesting topic. Not the super high-tech used in IoT. Not the transport protocols, network communication. And it doesn’t matter how long it takes for us to be biochiped and turn into omniscient superheroes. Today’s problem will be simple, like the title of the article “How do IOT devices connect to the internet?”.

How do IOT devices connect to the internet

 

Surely when it comes to IOT (Internet Of Thinks – internet of things), we will immediately think of devices and objects that will be connected to the internet. So how do those devices connect to the internet, connect to the outside world? How do the devices connect to each other? Let’s go find out together.

Introduce

As we all know, ordinary IOT devices will use wireless waves with different types such as wifi, bluetooth, Zigbee, RF, … And not all IOT devices need it. must be connected to the internet. In this article, I only mention devices that must be connected to the internet. The first goal when installing these devices is to connect it to the internet environment.

Analyze a bit.

For devices that use wifi waves as a transmission method, those devices can connect to the internet through a wifi access point.

It’s too simple, just enter the SSID and PASSWORD and you’re done. But keep in mind that ordinary IOT devices will not have a keyboard and screen to enter the two information above. We can not hard install the SSID and PASSWORD into the program like the previous articles. What if we change the wifi password or take it somewhere else to use? So what should we do??…

That’s right, we have to connect it to another device with a keyboard and screen to be able to enter the above 2 information such as our computer or phone. How to connect I would like to show in the section below.

What about devices using waves that cannot connect to the internet. Then of course they cannot connect directly to the internet. But must connect indirectly. They must have a gateway, link them to the wired or wireless network and then connect to the outside.

Connection models

With different components in the system, different devices and ways of connecting, I will divide the IoT network into the following types of simple connection models:

Model 1

How do IOT devices connect to the internet

 

In this model, devices will connect directly to the gateway. Gateway will be responsible for routing, data preprocessing and data forwarding between the two components devices and the server. Gateway will normally connect to the outside internet by wire to ensure the most stable transmission.

With this connection, the devices transmit and receive data with the server very quickly. But the distance to transmit will depend on the signal transmission technology that the device uses. In fact, there will be many gateways to speed up data transmission as well as expand the operating range of the system

Model 2

How do IOT devices connect to the internet

 

In this model, devices both function as terminals and can route data sent from other devices to the original Gateway. Gateway, it still does its job. As a cute touch boy. Gateway will route, preprocess data and transmit data between parties to keep the connection smooth.

You can see. For this model, the devices can connect to extremely long distances. Besides, latency is also an issue to discuss. Long distance, transmission delay can’t be small, right?

Model 3

How do IOT devices connect to the internet

 

This model will be almost identical to model 1. The difference here is that there will be no need for a gateway. The devices will directly connect to the server in the cloud. The requirement for devices to be able to do that is that devices must use technology that can directly connect to the internet such as using wifi, 2G, 3G, 4G, 5G,… And like me mentioned above in order to initially install these devices to connect to the network, we must connect them to another smart device such as a smartphone. Then configure the necessary settings so that they can communicate on their own with the exciting world outside.

Applied to the Smart Aquarium system

Our smart aquarium system uses Wemos with wifi connection. And they are directly connected to the home wifi network from which they can go out to the internet to connect to the server. From part 1 to now, I left the wifi settings in the code unchangeable when loaded into wemos. What we need to do is to write a program to perform the initial connection function, set up wifi configuration for Wemos.

So how can Wemos connect to a phone or computer?

Remember that our wemos has a wifi transmitter function for other devices to connect to as an access point (Access point) and it can also be a web server.

The idea to connect between wemos and computer is as follows:

  • Wemos broadcast wifi for computers to access. Do not set a password that is easy to remember.
  • Wemos will become a web server for computers to access.
  • The computer will send the SSID of the wifi and the PASSWORD of that wifi network to the wemos server.
  • Wemos receives the name and password of the wifi, it will disconnect the wifi transmitter mode, disconnect the web server and switch to the connection mode to the wifi network and work normally.

Conclusion

So we have learned through how devices (devices) connect to the internet already. I hope you remember the models so that when the installation has a connection error or something wrong, we can localize the error in the connection part to fix it quickly and easily.

You can also read more about “Internet of Things – IoT” in from my page.

Get more knowledge everyday!


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *