Ethernet Enabled Digital I/O Control in Embedded Systems

Similar documents
Design of Online Embedded Web Server for Data Acquisition System # Author

Figure 1.Block diagram of inventory management system using Proximity sensors.

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

Atmel Norway XMEGA Introduction

ZigBee Technology Overview

Lab Experiment 1: The LPC 2148 Education Board

Virtual KNX/EIB devices in IP networks

Wireless Medical History Tracker and Token Generator Using Finger Biometric Technology and Arm

Bus Data Acquisition and Remote Monitoring System Using Gsm & Can

Chapter 13. PIC Family Microcontroller

A 5 Degree Feedback Control Robotic Arm (Haptic Arm)

DESIGN AND IMPLEMENTATION OF ONLINE PATIENT MONITORING SYSTEM

Network connectivity controllers

STM32 F-2 series High-performance Cortex-M3 MCUs

PICNet 1. PICNet 1 PIC18 Network & SD/MMC Development Board. Features. Applications. Description

A DIY Hardware Packet Sniffer

Question: 3 When using Application Intelligence, Server Time may be defined as.

HOME AUTOMATION AND SECURITY SYSTEM

Keywords ATM Terminal, Finger Print Recognition, Biometric Verification, PIN

Software engineering for real-time systems

Design and Development of a Wireless Remote POC Patient Monitoring System Using Zigbee

Assistant Professor, Dept of E.C.E, Aurora s Technological & Research Institute,

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

FLYPORT Wi-Fi G

An Embedded Based Web Server Using ARM 9 with SMS Alert System

Serial port interface for microcontroller embedded into integrated power meter

AN LPC1700 timer triggered memory to GPIO data transfer. Document information. LPC1700, GPIO, DMA, Timer0, Sleep Mode

2.0 Command and Data Handling Subsystem

What You Will Learn About. Computers Are Your Future. Chapter 8. Networks: Communicating and Sharing Resources. Network Fundamentals

10/100/1000Mbps Ethernet MAC with Protocol Acceleration MAC-NET Core with Avalon Interface

SPI I2C LIN Ethernet. u Today: Wired embedded networks. u Next lecture: CAN bus u Then: wireless embedded network

System-on-a-Chip with Security Modules for Network Home Electric Appliances

Ingar Fredriksen AVR Applications Manager. Tromsø August 12, 2005

Wireless Microcontrollers for Environment Management, Asset Tracking and Consumer. October 2009

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

Palaparthi.Jagadeesh Chand. Associate Professor in ECE Department, Nimra Institute of Science & Technology, Vijayawada, A.P.

Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems Chapter-1L03: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

CGI-based applications for distributed embedded systems for monitoring temperature and humidity

DKWF121 WF121-A B/G/N MODULE EVALUATION BOARD

DESIGN OF 6 DOF ROBOTIC ARM CONTROLLED OVER THE INTERNET

Design of a Wireless Medical Monitoring System * Chavabathina Lavanya 1 G.Manikumar 2

The OSI model has seven layers. The principles that were applied to arrive at the seven layers can be briefly summarized as follows:

International Journal of Science Engineering and Advance Technology, IJSEAT, Vol 2, Issue 11

How To Monitor And Test An Ethernet Network On A Computer Or Network Card

Wireless Medical History Tracker and Token Generator Using Finger Biometric Technology and Arm

Mathatma Gandhi University

SIP Protocol as a Communication Bus to Control Embedded Devices

Motor Control using NXP s LPC2900

Process Control and Automation using Modbus Protocol

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Configuring PROFINET

Vehicle Tracking and Monitoring By ARM7

Microtronics technologies Mobile:

SBC6245 Single Board Computer

Design and Implementation of Remote/Short-range Smart Home Monitoring System Based on ZigBee and STM32

High-Performance IP Service Node with Layer 4 to 7 Packet Processing Features

Freescale Semiconductor, Inc. Product Brief Integrated Portable System Processor DragonBall ΤΜ

RFID Based Real Time Password Authentication System for ATM

Design of Remote Security System Using Embedded Linux Based Video Streaming

ontroller LSI with Built-in High- Performance Graphic Functions for Automotive Applications

Objectives of Lecture. Network Architecture. Protocols. Contents

SIMATIC S It s the Interplay that makes the difference. Siemens AG All Rights Reserved.

Lecture 1. Lecture Overview. Intro to Networking. Intro to Networking. Motivation behind Networking. Computer / Data Networks

The Elements of GigE Vision

A Simple Architecture for Embedded Web Servers

ES_LPC4357/53/37/33. Errata sheet LPC4357/53/37/33. Document information

Implementation of Wireless Gateway for Smart Home

Lean and Easy Ways to Adopt MOST Technology

Implementing a Digital Answering Machine with a High-Speed 8-Bit Microcontroller

Design of Self-service Car Washing Machine Control System Based on ARM Zhengmin Cui a, Peng Sun b

Am186ER/Am188ER AMD Continues 16-bit Innovation

FOUNDATION Fieldbus High Speed Ethernet Control System

CONTROL MICROSYSTEMS DNP3. User and Reference Manual

Development of an Internet based Embedded System for Smart House Controlling and Monitoring


Network Enabled Battery Health Monitoring System

Intelligent Home Automation and Security System

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

Protocols. Packets. What's in an IP packet

The new frontier of the DATA acquisition using 1 and 10 Gb/s Ethernet links. Filippo Costa on behalf of the ALICE DAQ group

10/100/1000 Ethernet MAC with Protocol Acceleration MAC-NET Core

Display Message on Notice Board using GSM

Integrating Web Servers in Embedded Applications

AN10866 LPC1700 secondary USB bootloader

INTELLIGENT HOME MONITORING AND WIRELESS CONTROL SYSTEM

Network Layer: Network Layer and IP Protocol

The OSI Model: Understanding the Seven Layers of Computer Networks

8051 MICROCONTROLLER COURSE

Computer and Set of Robots

Ways to Use USB in Embedded Systems

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

SECURITY SYSTEM IN INDUSTRIES USING ZIGBEE TECHNOLOGY

Network Models and Protocols

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

Ethernet. Ethernet Frame Structure. Ethernet Frame Structure (more) Ethernet: uses CSMA/CD

RN-131-PICTAIL & RN-171-PICTAIL Web-Server Demo Application

Hello, and welcome to this presentation of the STM32L4 reset and clock controller.

Concept Engineering Adds JavaScript-based Web Capabilities to Nlview at DAC 2016

Advanced Transportation Management Systems

LPC2300/LPC2400 TCP/IP Overview. TCP/IP and LPC2300/LPC2400 Family October 2007

Transcription:

International Journal of Emerging Engineering Research and Technology Volume 3, Issue 6, June 2015, PP 9-13 ISSN 2349-4395 (Print) & ISSN 2349-4409 (Online) Ethernet Enabled Digital I/O Control in Embedded Systems ABSTRACT Y. SasiKanth, K. Jamal Department of ECE This paper presents very simple and economical way to provide Ethernet connectivity to microcontroller based embedded systems. This system uses ATmega328p microcontroller to store the main application source code, web pages and TCP/IP stack which is a vital element of the system software. An Ethernet controller chip, ENC 28J60 is used to handle the Ethernet communications and is interfaced with the host microcontroller using SPI pins. There are several I/O pins available at the microcontroller which are used to interface with sensors and relays for monitoring and controlling operations. Nowadays, Internet has spread worldwide and most of the internet connections use Ethernet as media for data transfer. In industries or in home appliances, most of the time we need to monitor and control different parameters using microcontrollers. Once we enable Ethernet interface to such systems, we can communicate with them remotely over the internet. INTRODUCTION Now a days we are using many Networked embedded systems for monitoring and control the home or industrial devices. With the scalable networking solution the server enables Web access to distributed measurement/control systems and provides optimization for educational laboratories, instrumentation, Industrial and home automation. In this paper, we present the principles and to design a system for Internet-based data-acquisition system and control by using Advanced RISC Machine i.e ARM processor and in-build web server application with. The main core of the system is an embedded hardware running on a NUT OS, a industrial grade RTOS for hard time applications. The proposed system eliminates the need for server software and maintenance. The proposed system minimizes the operational costs while operating with a large amount of data. Web access functionality is embedded in a device to enable low cost widely accessible and enhanced user interface functions for the device. A web server in the device provides access to the user interface functions for the device through a device web page. A web server can be embedded into any appliance and connected to the Internet so the appliance can be monitored and controlled from remote places through the browser in a desktop. SYSTEM ARCHITECTURE DESCRIPTION This section gives information regarding various components related to the system various options options available for using them.some of the important components and protocols are listed below Potential Transformers PTs or VTs are the most common devices used. These devices are conventional transformers with two or three windings (one primary with one or two secondary). They have an iron core and magnetically couple the primary and secondary. The high side winding is constructed with more copper turns than the secondary (i.es), and any voltage impressed on the primary winding is reflected on the secondary windings in direct proportion to the turns ratio or PT ratio. Current Transformer A current transformer (CT) is a type of instrument transformer designed to provide a current in its secondary winding proportional to the alternating current flowing in its primary. They are commonly used in metering and protective relaying in the electrical power industry where they facilitate the safe measurement of large currents, often in the presence of high voltages. The current transformer safely isolates measurement and control circuitry from the high voltages typically present on the circuit being measured. *Address for correspondence yshashi1122@gmail.com International Journal of Emerging Engineering Research and Technology V3 I6 June 2015 9

Power Supply Y. SasiKanth & K. Jamal Ethernet Enabled Digital I/O Control in Embedded Systems A device or system that supplies electrical or other types of energy to an output load or group of loads is called a power supply unit or PSU. The term is most commonly applied to electrical energy supplies, less often to mechanical ones and rarely to others. Microcontroller Microcontroller is a heart of this project. ARM 7 is suitable microcontroller for this proposed embedded system. LPC2148 is ARM 7 controller used in this project. The main feature of LPC2148are as follows, LPC2148 microcontroller board based on a 16-bit/32-bit ARM7TDMI-S CPU [5] with real-time emulation and embedded trace support, that combine microcontrollers with embedded high-speed flash memory ranging from 32 kb to 512 kb. A 128-bit wide memory interface and unique accelerator architecture enable 32-bit code execution at the maximum clock rate. For critical code size applications, the alternative 16-bit Thumb mode reduces code by more than 30% with minimal performance penalty. The meaning of LPC is Low Power Low Cost microcontroller. This is 32 bit microcontroller manufactured by Philips semiconductors (NXP).Due to their tiny size and low power consumption, LPC2148 is ideal for applications where miniaturization is a key requirement, such as access control and point-of-sale. The LPC2148 contains one SSP. The SSP controller is capable of operation on a SPI, 4-wire SSI, or Micro wire bus. It can interact with multiple masters and slaves on the bus. However, only a single master and a single slave can communicate on the bus during a given data transfer. The SSP supports full duplex transfers, with data frames of 4 bits to 16 bits of data flowing from the master to the slave and from the slave to the master. Often only one of these data flows carries meaningful data. Features of LPC2148 Microcontroller are 16bit/32bit ARM7TDMI-S microcontroller in a tiny LQFP64 package. 40kB of on-chip static RAM and 512kB of on chip flash memory. In System programming/in application programming via on chip boot loader software. USB 2.0 full speed compliant device controller with 2kB of endpoint RAMS. In addition, the LPC2148 provides 8kB of on chip RAM accessible to USB by DMA. Two 10-bit ADCs provide a total of 14 analog inputs, with conversion times as low as 2.44 ms per channel. Single 10-bit DAC provides variable analog output. Two 32-bit timers/external event counters (with four capture and four compare channels each), PWM unit (six outputs) and watchdog. Low power Real-Time Clock (RTC) with independent power and 32 khz clock input. Multiple serial interfaces including two UARTs (16C550), two Fast I2C-bus (400 kbit/s), SPI and SSP with buffering and variable data length capabilities. Up to 45 of 5 V tolerant fast general purpose I/O pins in a tiny LQFP64 package. Up to 21 external interrupt pins available. 60 MHz maximum CPU clock available from programmable on-chip PLL with settling time of 100 ms. On-chip integrated oscillator operates with an external crystal from 1 MHz to 25 MHz and Power saving modes includes idle and Power-down. Individual enable/disable of peripheral functions as well as peripheral clock scaling for additional power optimization. Processor wake-up from Power-down mode via external interrupt or BOD. ETHERNET Ethernet is a large and diverse family of frame-based computer networking technologies for local area networks (LANs). The name comes from the physical concept of the ether. It defines a number of wiring and signaling standards for the physical layer, through means of network access at the Media Access Control (MAC)/Data Link Layer, and a common addressing format. On top of the physical layer Ethernet stations communicate to each other by sending each other data packets, small blocks of 10 International Journal of Emerging Engineering Research and Technology V3 I6 June 2015

data that are individually sent and delivered. Ethernet is standardized as IEEE 802.3. The combination of the twisted pair versions of Ethernet for connecting end systems to the network, along with the fiber optic versions for site backbones, is the most widespread wired LAN technology. It has been in use from around 1980 to the present, largely replacing competing LAN standards such as token ring. Transmission Control Protocol Basic Ethernet Frame Format TCP (Transmission Control Protocol) was specifically designed to provide a reliable end-to-end byte stream over an unreliable internetwork. An internetwork differs from a single network because different parts may have wildly different topologies, bandwidths, delays, packet sizes, and other parameters. Each machine supporting TCP has a TCP transport entity, either a library procedure, a user process, or part of the kernel. In all cases, it manages TCP streams and interfaces to the IP layer. A TCP entity accepts user data streams from local processes, breaks them up into pieces not exceeding 64 KB (in practice, often 1460 data bytes in order to fit in a single Ethernet frame with the IP and TCP headers), and sends each piece as a separate IP datagram. When datagram s containing TCP data arrive at a machine, they are given to the TCP entity, which reconstructs the original byte streams. Internet Protocol (IP) TCP Frame Format Communication in the Internet works as follows. The transport layer takes data streams and breaks them up into datagram s. In theory, datagram s can be up to 64 Kbytes each, but in practice they are usually not more than 1500 bytes (so they fit in one Ethernet frame). Each datagram is transmitted through the Internet, possibly being fragmented into smaller units as it goes. When all the pieces finally get to the destination machine, they are reassembled by the network layer into the original datagram. This datagram is then handed to the transport layer, which inserts it into the receiving process' input stream. In practice, it is often much more than six. The IP Protocol An appropriate place to start our study of the network layer in the Internet is the format of the IP datagram s themselves. An IP datagram consists of a header part and a text part. The header has a 20- International Journal of Emerging Engineering Research and Technology V3 I6 June 2015 11

byte fixed part and a variable length optional part. It is transmitted in big-endian order: from left to right, with the high-order bit of the Version field going firston little endian machines, software conversion is required on both transmission and reception. Hypertext Transfer Protocol Fig2.4. the IPv4 (Internet Protocol) header The transfer protocol used throughout the World Wide Web is HTTP (Hypertext Transfer Protocol). The HTTP is an application level protocol. It is a generic, stateless, object oriented protocol that can be used for many tasks, such as name servers and distributed object management systems, through extension of its request methods (commands). It uses a client-server relationship and is based on a stream-oriented transport layer, such as TCP. Today, the most important use is transferring HTML documents with multimedia contents between Internet servers and clients (WWW). It works with the principle of request and response. The simplest case is that a client establishes a connection to a server and requests a content referred by a Uniform Resource Identifier (URL) that specifies the path and name of the resource. ENC28J60 Ethernet Controller The ENC28J60 is a stand-alone Ethernet controller with an industry standard Serial Peripheral Interface (SPI). It is designed to serve as an Ethernet network interface for any controller equipped with SPI. The ENC28J60 meets all of the IEEE 802.3 specifications. It incorporates a number of packet filtering schemes to limit incoming packets. It also provides an internal DMA module for fast data throughput and hardware assisted checksum calculation, which is used in various network protocols. SOFTWARE DEVELOPMENT Fig3.7.3. Interfacing of ENC28J60 In an Ethernet network, the interface to the network is an Ethernet controller chip and its driver. The Ethernet driver contains program code that manages communications between the controller chip and a higher level in the network protocol stack [I]. For internet communication over Ethernet, a Transmission Control Protocol/Internet Protocol (TCP/IP) software stack is necessary. This stack resides on the Host MCU. Microchip's TCP-IP stack, need to be configured according to the host microcontroller used in the system. Microchip provides a driver for the ENC28J60 and a TCP/IP 12 International Journal of Emerging Engineering Research and Technology V3 I6 June 2015

stack including an HTTP web server. Web pages need to be stored in external or internal EEPROM. These pages can be accessed using internet browser by accessing the IP address assigned to the system. Figure 5 shows user interface in an internet browser. The system IP address and server IP address can be configured by making changes in the program. IDE for Microcontroller s Program Development Keil uvision4 is the Integrated Development Environment (IDE) for developing and debugging embedded Keil uvision4 applications [3], [8]. Keil uvision4 IDE gives a seamless and easy-to-use environment to write, build, and debug C/C++ and assembly code. Flash Magic is a PC tool for programming flash based microcontrollers from NXP using a serial or Ethernet protocol while in the target hardware. The following are the steps to dump program into Microcontroller. CONCLUSION Embedded web servers are an integral part of an embedded network. Embedded Servers in our project can be used to change the status of the various Gadgets connected to the kit by means of Internet. The Embedded web server design includes a complete web server with TCP/IP support and Ethernet interface. It provides the software for automatic configuration of the web server in the network. The Embedded web server reference design includes complete source code written in C-language. A comprehensive model of the Embedded Web Server has been designed using ARM. We can reduce the power consumption by making use of a different kind of Microcontroller called the AVR, which makes use of only 3.3V Power Supply. Our design is a quick start to embedded web servers. Future Scope By the addition of wireless circuitry to the sensor module, this embedded web server's capabilities like range can be enhanced. In the case of home security system, e-mail alerts can be sent even to a mobile phone or to the local police station on occurrence of break-in into the house. Set point violations in the case of a process control environment to the concerned plant engineer and abnormalities in the body parameters of a patient in ICU will alert the doctor wherever he is. Intelligent homes will be connected to the Internet and require a higher end microcontroller to communicate with the other network devices. The Embedded web server can simplify the design process for embedded web server applications. It also can be made to include support for sending mail or an SMS regarding the status of the device connected to the kit and change the status of the device by decoding the message sent to it. REFERENCES [1] K. R. Pattipati, A. Kodali, K. Choi, S. Singh, C. Sankavaram, S. Mandal W. Donat, S.M. Namburu, S. Chigusa, L. Qiao and J. Luo, "An integrate diagnostic process for automotive systems," in D. Prokhorov, (ed.) Studies in Computational Intelligence (SCI), Vol. 132, 2008. [2] C. Sankavaram, B. Pattipati, A. Kodali, K. Pattipati, M. Azam, and S. Kumar, "Model-based and data-driven prognosis of automotive and electronic systems", 5th Annual IEEE Conference on Automation Science and Engineering, Bangalore, India, August 22-25, 2009. [3] LPC2148 (www.nxp.com/documents/data_sheet/lpc2141_42_44_46_48.pdf) datasheet. [4] National Semiconductor, LM35 Precision Centigrade Temperature. [5] Sensors Data sheet, National Semiconductor Corporation, November 2000. [6] Ethernet Technologies. Cisco Systems [7] Internet Protocol (IP) by Postel J [8] Transmission Control Protocol by Postel [9] HTTP by Tim Beners Lee, R. Fielding and H. Frystyk [10] Ethernet Controller Technical Reference Manual. Cirrus Logic Inc [11] LAN Isolation Transformer Catalog. Pulse. International Journal of Emerging Engineering Research and Technology V3 I6 June 2015 13