How to Implement Embedded Ethernet

Embedded EthernetUsually We need embedded systems inside devices, particularly the so-called intelligent devices, to communicate with a command/control/administrative center. Typical such situations could be a remote security camera that can send you video clips when queried, an embedded system that can send status when checked through a web browser or a vending machine that is capable of sending an email when service is required. Benefits of connecting such embedded systems to the net are easy monitoring and control that can be done through a simple and existing web browser. Most often networking infrastructure is already available in the form of 10/100/1000 Mbps Ethernet networking through Cat 5 cabling.

1. Introduction

The interface that is required is an Ethernet interface to hook onto such an infrastructure. The interface needs to be low cost and easy to implement so that only a minimal additional cost is involved. Any intelligent embedded system will have at least one 8/16/32 bit microprocessor along with necessary hardware for implementing its features. There can be more than one processor in the system. We are going to treat that part as a black box. What is of interest to us is the interface with one of these controlling processors with an Ethernet controller. The following discussions on hardware and software requirements are thus going to focus on the requirements for implementing the embedded Ethernet only.

2. Hardware

Hardware required is a suitable Ethernet controller and an Ethernet connector. As a basic minimum requirement, the controller needs to supply an Ethernet packet reception and transmission interface. Size, power and cost should be minimal. However, the choice would be guided by how sophisticated an interface you need. Quite often part of the protocol processing can be handled by a sophisticated controller. Costs will go higher of course. Thus, this is a design tradeoff that would depend of other constraints of the system design. As long as you have IC with 2x Tx pins and 2x Rx pins it is enough for implementing the Ethernet connection. The Ethernet connector is a RJ 45 of course. However, what would be preferred is one with magnetics and LEDs integrated. On the transmission side, you need a transformer turns ratio of 1: 2.5 and on the reception side you need 1:1 turns ratio. Two kinds of activities are usually required. One is the net is connected and the other is to indicate periodic activity.

3. Software

Some of the essential blocks you'll need to implement. • TCP/IP – the stack to support all the communication back and forth over the net. If you are implementing an OS like Linux, do select these modules. There are several protocol stacks available to integrate into firmware if it is not available otherwise. • HTTP server/web server– You need to integrate a lightweight server so that your embedded system can respond to browser based queries. To be uniquely identified the device/appliance must be able to get a unique IP address for itself. One approach is to have static assignments. One can have the IP address programmed into the system. However, in the most general case the system should be able to query a DHCP server and get an IP address for itself. Netfinder protocol is useful in discovering the IP address of a connected system.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

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

Scroll to Top