PERFORMANCE OF ETHERNET PROTOCOL CONVERSION ON AN ARM-7 EMBEDDED PROCESSOR.

advertisement
International Journal of Engineering Trends and Technology- Volume3Issue2- 2012
PERFORMANCE OF ETHERNET PROTOCOL CONVERSION ON AN
ARM-7 EMBEDDED PROCESSOR.
Vikram M. Chavan1, Prof. V.V.Deotare2, Prof. R.V.Babar3, Prof. V.B.Baru4.
1
2
M.E. (VLSI & embedded System) - Pursuing – Sinhgad Institute of Tech. Lonavala, Pune.
Asst.Professor in E&TC Dept.,Sinhgad Institute of Tech. Lonavala, Pune, Maharashtra, INDIA.
3
Asst.Professor, in E&TC Dept Sinhgad Institute of Tech. Lonavala, Pune, Maharashtra, INDIA.
4
Asst.Professor in E&TC Dept, Sinhgad College of Engg, Pune, Maharashtra, INDIA.
ABSTRACT:
terminal unit. Embedded Web server
is the
This paper designed a research on real web access
realization of embedded systems with the internet
functionality is embedded in a device to enable low cost
through Web-a key component of Internet, network
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 web page. A web server can be embedded
application system is running a direct impact on the
quality and efficiency of its research on the Internet
technology is important. In this paper, based on ARM
into any appliance and connected to the Internet so the
based embedded Web server operating system, the
appliance can be monitored and controlled from remote
design method, and the corresponding software and
places through the browser in a desktop. This project is
hardware design, and using Socket programming and
focused on developing real-time services for switched
CGI program to complete the Web server design. The
Ethernet networks, keeping the Ethernet and TCP/IP
embedded Web server with low cost, open to good
Internet communication standards.Many applications
advantages such as portability, ease of maintenance
are in home automation, medical diagnosis, process
control, security and surveillance systems, card readers,
building controls and robotics, using internet browser
from anywhere around the world. This paper describes
and upgrade later. Because of this design embedded
Web server is a separate module, providing a
standard interface, as long as the software to make
in detail the implementation of a ARM based embedded
some modifications can easily be applied to other
Ethernet LAN controller. control.Finally, the web
embedded devices.
server uses standard TCP/IP protocols, such as HTTP
to manage the web pages through which we can monitor
and control the interfaced devices.
EMBEDDED WEB SERVER:
Embedded system is a kind of special computer
Keywords:
system which has limited resources and functions. To
ARM processor, TCP/IP Protocol, Embedded C,
implement Web server in embedded system is
Embedded Ethernet controller, LAN.
characteristic of itself. The supported TCP/IP
protocol is used. Considering the need of data
exchange
I) INTRODUCTION:
during
equipment
controlling
is
implemented through HTML.
Embedded
Ethernet
Communication
Sever
usually is a connection between upper computer and
ISSN: 2231-5381
http://www.internationaljournalssrg.org
Page 172
International Journal of Engineering Trends and Technology- Volume3Issue2- 2012
functions of operating system and the commands
Web Server Pages:
The proposed system has embedded server pages
that are stored into the flash of the embedded web
from the host computer are received commands to
control the data acquisition system.
server. The employed web pages are both static and
dynamic. Static HTML pages are used in order to
view contents that do not change, providing only an
Acquisition
equipment
Internet
informational view, while dynamic pages are used to
manage data that can vary. Specially, the developed
prototype includes the following pages:
1) Home Page.
2) Status and Control.
Flash
Other settings can be made by a web form that can
be accessed only by the designer/manufacture. It
Interface of Acquisition
equipment
ARM Processor
contains several settings: the automatic refresh time.
The
screenshots
coming
from
the
developed
Interface of ARM
LPC2138
Router
RJ-45
Interface
application we will show how it is possible to use the
proposed data acquisition System for a controlled.
SDRAM
For that we have to reach the embedded web server
by typing its address into the web browser. After a
successful login it is possible to reach the home page
Fig: System structure
III) SOFTWARE DESIGN:
of the status/control page.
Software Principle and Structure
(1) Web Sever principle
II) SYSTEM DESIGN:
Web server monitor the service request from
The communication module is the interface between
central processing unit and transceiver module. Its
work is to receive data form transceiver and then
transmit them to the ARM processor. Processor
module is the core part of the design, in which the
ARM chip LPC2138 is used to complete the complex
operations
and receive
a
lot
of
data
from
transreceiver as a slave. In the module, data link
between SPI port and Ethernet is established, SPI
data stream format is specified, the transmission rate
between serial data stream and IP data packets is
controlled and IP packet is received or sent through
reading or writing Ethernet interface module In the
Ethernet interface module, the collected data are
Client, provide respective service according to the
type of the requests. Clients use Web browser and
Web server to transmit data, after receive the request
from Clients, Severs will process users’ request and
return respective data.
(2) HTTP Protocol:
HTTP is the protocol Web use to communicate
with browser. HTTP rules the standard mode of
sending and process requests, rules the message
format between browser and sever and the format of
all kinds of control information.
(3) Structure of System Software:
The whole system will use B/S structure. There
is Client, which communicate with embedded Web
uploaded to a PC via Ethernet interface by using the
ISSN: 2231-5381
http://www.internationaljournalssrg.org
Page 173
International Journal of Engineering Trends and Technology- Volume3Issue2- 2012
server, setting all kinds parameters, displaying all
Designed to allow peer entities on the source
kinds of parameters from Server. Server has two
and destination hosts carry on a conversation TCP
programs to process the communication between it
and UDP (end-to-end Protocols) defined here. TCP
and Client. They receive parameter set by users, and
(Transmission Control) manages the assembling of a
then send them to respective controller module.
message or file into smaller packets that are
transmitted over the Internet UDP (User Datagram) Connectionless protocol for applications that do not
TCP/IP Protocol:
TCP/IP
=Transmission
Control
want TCP’s sequencing flow control .(Speech or
Protocol/Internet Protocol. It can also be used as a
Video)
communications protocol in the private networks.
• Internet Layer
TCP/IP is a two-layered program.
Defines an official packet format and protocol
called IP(Internet Protocol).Internet Layer delivers IP
Transmission Control Protocol:
packets to where they are supposed to go(packet
Manages the assembling of a message or file into
routing). Host-to-Network Layer– Host connects to
smaller packets.
the network using relevant protocols so it can send IP
packets over it.
Internet Protocol:
Handles the address part of each packet so that it gets
IV) HARDWARE DESIGN:
to the right destination.
Block Diagram:
The main aim of the project is to develop an
TCP/IP Model:
• Application Layer
embedded web server using ARM7 processor.
It contains all the higher level protocols such as
Embedded C language has been used for the software
Telnet, File Transfer (FTP), Simple Mail Transfer
implementation of the embedded web server. The
(SMTP),
web pages which are required for the web server
Domain
Name
Service
(DNS)
and
Hypertext Transfer (HTTP).
Application
Telnet
FTP
were developed using HTML. This embedded web
SMTP
DNS
HTTP
server is tested for its working, using a data
acquisition web application hosted over a network of
Transport
TCP
Internet
IP
ARPANET
Host to
network
Fig:
PC's.
UDP
SATNET
Transmission
Ethernet
Control
Packet
radio
Point to
Point
Protocol/Internet
Protocol
• Transport Layer
ISSN: 2231-5381
http://www.internationaljournalssrg.org
Page 174
International Journal of Engineering Trends and Technology- Volume3Issue2- 2012
The MAC provides addressing and channel access
Power supply
control mechanisms that make it possible for several
terminals or network nodes to communicate within a
multipoint network.
Physical Layer (PHY) -
Temperature
Controller
Sensor
PC
(SERVER)
LAN
The most basic network layer, providing only the
ARM-7
means of transmitting raw bits rather than packets
over a physical data link connecting network nodes.
Magnetics (Isolation Transformer) Part of the Physical layer used to decouple PHY from
the physical Ethernet cable.
RJ45 -
LCD
That “Ethernet” Connector. (Refer fig)
10BaseT Ethernet:
• Transmission Rate: 10 Mb/s (20 Mb/s in optional
full duplex mode)
• Cable Type: Two pairs of Category 3 or
Fig: Block diagram
better
unshielded twisted pair (UTP) cabling
ETHERNET INTERFACE:
• Max. Segment Length: 100 meters.
Ethernet controller is divided into two layers
according to its functions and it is shown in Fig. One
is media access controller (MAC) layer and the other
is network physical (PHY) layer. They correspond to
• Connector Technology: RJ-45.
Hardware Requirement:
ARM7 microcontroller, LM35, LCD, Power supply,
LAN cable.
Layer 2 and Layer 1 in ISO model. MAC layer
provides the treatment on data sending and receiving.
It also provides an interface to PHY through an
Software Requirement: KEIL, Embedded C, LPC
flash utility.
internal medium in dependent interface.
V) SYSTEM TESTING:
Ethernet controller
ARM
PROCESSOR
The testing of the Web Server can be completed on
any personal computer. At first, input the server’s
MAC
PHY
(Layer 2) (Layer1)
Magnetics
address in the browser address bar, here we enter IP
address, then press enter key and we enter the login
page. We input the user name and password, but only
the right name and password can enter the manage
FIG: Ethernet controller module
system. Then we can control the system and device
according to different right.
Media Access Controller (MAC)-
ISSN: 2231-5381
http://www.internationaljournalssrg.org
Page 175
International Journal of Engineering Trends and Technology- Volume3Issue2- 2012
VI) RESULTS:
The LAN controller sends the request to the
router that processes and checks for the system
connected to the network with the particular IP
address. If the IP address entered is correct and
matches to that of the server, a request is sent to the
LAN controller of the server and a sessions
established and a TCP/IP connection is establishes
and the server starts sending the web pages to the
client. When TCP & UDP test software and UDP
Fig: The system developed.
communication program are run in the host, the test
results also show that the communications from both
sides are successful.
Fig: The experimental hardware unit.
VII) Future Work:
The task of creating a web server was more
complex than we anticipated, and there is room for a
number of improvements of our project. First, we
would like to make it so that the assertions can be
turned back on, because then the server would be
extremely stable and reliable. Then we would not
have to worry about someone using the character
array for the header to overflow the buffer and gain
access to the rest of the files in the computer.
Secondly, we would like to provide the rest of the
Fig: Simple graphical user display.
response codes and content types. This is something
that would require a lot more time, but with the way
we designed our code, could be easily implemented.
We would like to allow form inputs and processing.
We also could implement virtual directories, although
ISSN: 2231-5381
http://www.internationaljournalssrg.org
Page 176
International Journal of Engineering Trends and Technology- Volume3Issue2- 2012
our web server would not be quite as secure. Lastly,
we would like to provide even more security by
limiting access based on user rights and enabling
REFERENCES:
1)
“Research on remote
password protected directories. Our server is a basic
equipment,”
web server, but it provides a strong base to
implement a much more advanced server. We did not
Monitor
Information
technology of
and Control, Magn.
China, June 2002.
2)
Chen Guo-ju, “Design of a monitoring system based
on ARM and Ethernet applied to AC motors,”
worry so much about speed as we did about security
Journal of Nanjing Institute of Technology, Jun.
and reliability for this project. Increasing the speed of
our server also could be a goal for future work.
Yu Cheng-bo, Liu Jie, and TAO Hong-yan,
2009.
3)
Liu Hong-li, “The Research and Experiment of the
Embedded System µC /OS-II on PC,” Journal of
VIII) CONCLUSIONS:
Shanghai University of Electric Power, Magn.
China, June 2009.
ARM-7 based embedded Ethernet system is a great
way to provide status, operation, production, and
4)
Zhang Shi, dong Jeanne, SHE Liwung, “Design and
development of
maintenance information about an embedded control
system to an operator that is standing at the
5)
controlling
system
control
based
on
Wang Mei,”Design of ARM based Embedded
Ethernet Interface”, China, IEEE 2010.
equipment or a thousand miles away. In this paper a
remote
ECG monitor Software system,”
Computer Engineering, Magn. China, May 2007.
6)
Jie
Zhang,
Xuedong
Zhang”Design
&
Implementation of Embedded monitoring system for
embedded Web server is designed for Industry
application. The system adopts Browser/Server mode
grain storage”, china, IEEE2010.
7)
Rui Yang, Hong Cai”Research&
Implement of
Ethernet interface based on embedded system”2009
and control the remote devices. Therefore, remote
IEEE.
users can control and manage the operation using a
8)
Fu Chong, Zhou Chuan-sheng,
Implementation
Web browser over the internet. It has advantages of
for general Ethernet for Embedded system”, china
small size, longer work time and stable performance.
2009 IEEE.
It is applicable to a variety of fields such as industrial
9)
Zhang Yun Zhou, Wu Chengdong, “Design of a
training
control, medical, instrument etc. so the scheme
&
experimental
platform
based
on
Multiprotocol communication”, China 2011 IEEE.
proposed in this paper not only can be used in
connecting the embedded device to LAN, but also as
10)
Andrew S. Tanenbaum (2008): Computer Networks
4thedition.
a data link and physical layer support for embedded
web system.
ISSN: 2231-5381
http://www.internationaljournalssrg.org
Page 177
Download