#8 Ethernet

In this chapter, we will see how is the communication protocol Ethernet and how it works in general and with our equipment, taking into account the Arduino IDE perspective. We have to remember that any shield with Ethernet port can be programmed using this protocol, in our devices we have a lot with Ethernet connection like the M-Duino family and many others. 

Theoretical Introduction

First of all, it is very important to explain the OSI model to understand all the elements which conforms a telecommunication system. The OSI is the Open Systems Interconnection model, and this is a conceptual model that characterizes and standardizes the communication functions of a telecommunication or computing system without regard to its underlying internal structure. Its main goal is the interoperability of diverse communication systems with standard communication protocols. This model is divided into seven different abstraction layers. 

Every layer serves the layer above it, and it is served by the layer below it. For instance, a layer that provides error-free communications across a network provides the path required by applications above it, while it calls the next lower layer to send and receive packets that constitute the contents of that path.  

The different layers are: 

  1. Application Layer: is the closest to the user, which means both this and the user interact directly with the software application. 

  2. Presentation Layer: establishes context between application-layer entities. 

  3. Session Layer: controls the connections between computers. 

  4. Transport Layer: provides the functional and procedural means of transferring variable-length data sequences from a source to a destination host, while maintaining the quality of service functions. 

  5. Network Layer: provides the functional and procedural means of transferring packets from one node to another connected in different networks. 

  6. Data Link Layer: provides node-to-node data transfer, a link between two directly connected nodes.

  7. Physical Layer: is responsible for the transmission and reception of unstructured raw data between a device and a physical transmission medium.  

Here, we can see a schematic of the layers : 

7 Layers of the OSI Model - Lesson 8 - Programming Arduino on Industrial Environments

It is important to keep in mind that there are two types of Modbus; the Modbus TCP that uses Ethernet and is located in layer 7, and the Modbus 232/485, which uses these protocols and is located in all the layers. We have to consider that, many times, the Network, Data and Physical layers are encompassed as media layers and the others as the host layers.

Now that we are located, we can proceed to the main explication of the video and, if you want to discover more information related to Ethernet, you can check the links than below.

Useful Links

Material to do practices

Arduino Leonardo or Arduino Mega (You also can use an Arduino UNO if you get it).

(The devices used with the Arduino Mega and Arduino Leonardo assembled inside have been: From the Ethernet PLCs; the M-Duino 21. From the 20I/Os PLC; The Ardbox Relay).

Please, answer this survey. It will help us to improve the course.

Start Survey >>


264 Total Views
13 Members Views
251 Public Views
Share on Social Networks
Share Link
Use permanent link to share in social media
Share by mail

Please login to share this webpage by email.