Research and Development of Remote Input and Output Data

advertisement
International Journal of Engineering Trends and Technology (IJETT) – Volume 6 Number 5 - Dec 2013
Research and Development of Remote Input and Output Data
Acquisition System Based on Embedded Arm Platform
G.Sandeep #, V.V.N.S.Sudha *
#
M.Tech(Embedded Systems), Department of Electronics and Communication Engineering, A.T.R.I,
Parvthapur, Hyderabad, A.P, India.
*
Assistant Professor, Department of Electronics and Communication Engineering, A.T.R.I,
Parvthapur, Hyderabad, A.P, India.
ABSTRACT: Design of on-line embedded web
server is a challenging part of many embedded
and real time data acquisition and control
system applications. The World Wide Web is a
global system of interconnected computer
networks that use standard Internet Protocol
suite(TCP/IP) to serve billion of users worldwide
and allows the user to interface many real time
embedded applications like data acquisition,
Industrial automations and safety measures etc,.
Our design is approached towards the design
and development of online Interactive Data
Acquisition and control System (IDACS) using
ARM based embedded web server. It can be a
network, intelligent and digital distributed
control system. Single chip method improves the
processing capability of a system and overcomes
the problem of poor real time and reliability.
This system uses ARM9 Processor portability
with Linux operating system (Linux) it makes
the system more real time and handling various
processes based on multi tasking and reliable
scheduling mechanisms.
Keywords: Embedded web server; embedded
database; remote monitoring system; S3C2440
ARM microprocessor.
I. INTRODUCTION
The web technology has begun to have a
rapid development in the field of embedded
systems in the post-PC era. The application of
embedded web technology in the remote
monitoring system has given rise to the
technological change in the field of industrial
control. Nowadays the management of the
domestic laboratories in the research institute and
universities has issues of poor real time, high cost
ISSN: 2231-5381
and low precision. It is difficult to determine the
quality of the environment of the laboratory. So
the Laboratory Intelligent Monitoring System
should be developed to implement early warning,
remote control, real-time monitoring and other
functions. This paper comes up with a design
solution of an embedded web-based remote
monitoring system for the environment in the
laboratories, which realizes the local management
and remote publishing applications for large-scale
dynamic data of sensor networks and video images.
Lab remote monitoring and controlling system
makes use of latest, less power consumptive, small
size and fast working micro controller like
S3C2440.This system is based on ARM9 and
Linux operating system for managing the data
collected by sensor networks, realizing the local
management of environmental data, and to
automatically detect and identify images.
1. S3c2440 PROCESOR:
In my project we are using the SAMSUNG
S3C2440A processor. The S3C2440A provides the
following features:
Frequency 400 MHz, the highest is 533 MHz.
supports various types of ROM for booting
(NOR/NAND
FLASH,
EEPROM,
AND
OTHERS).Supports booting from NAND flash
memory(4KB internal buffer for booting).its core
operating voltage is 1.30v for 400MHz,
Memory:1.8V/2.5V/3.0V/3.3V, I/O:3.3v.Operating
System Support-Linux 2.6.29. 2.6.29.
http://www.ijettjournal.org
Page 281
International Journal of Engineering Trends and Technology (IJETT) – Volume 6 Number 5 - Dec 2013
Development Board sets up and connects:
Startup Mode Selection
To choose the development board startup mode, S2
DIP-switch is determined,
Depending on the target board tips.
 Switch S2 to _NOR" side logo, the system will
start with the NOR flash.
 Switch S2 to _NAND" side logo, the system will
start with the NAND Flash.
 The NOR Flash and NAND Flash of the
development board has been burned into the
Same BIOS from factory (because the BIOS at
the same time support for both flash, just
after the boot of different manifestations,
please refer to "development board BIOS
feature and use that"), S2 has been receiving
side of NAND flash, the system boot from a
startup operation of NAND flash system.
External Interface Connector:
1.
2.
3.
4.
5.
Please use our direct serial line to connect the
Mini2440/s serial port 0 and PC/s.
Use our crossover cable to the network
interface Mini2440 connected with the PC.
Use our 5 V power adapter to connect to the
5 V input socket on the board.
Speakers or headphones to plug access onboard audio output port (green).
If you have LCD screen, follow the direction of
head data and the LCD interface Connected to
Mini 2440 Connect Mini2440 with USB cable
connection and the PC.
II. SOFTWARE DETAILS
2.1 OPERATING SYSTEMS
An operating system (OS) is software,
consisting of programs and data that runs on
computers and manages the computer hardware and
provides common services for efficient execution
of various application software. For hardware
functions such as input and output and memory
allocation, the operating system acts as an
intermediary between application programs and the
computer hardware, although the application code
is usually executed directly by the hardware, but
will frequently call the OS or be interrupted by it.
Operating systems are found on almost any device
that contains a computer from cellular phones and
ISSN: 2231-5381
video game consoles to supercomputers and web
servers.
2.1.1 Kernel:
The kernel is a program that constitutes
the central core of a computer operating system. It
has complete control over everything that occurs in
the system.
A kernel can be contrasted with a shell (such as
bash, csh or ksh in Unix-like operating systems),
which is the outermost part of an operating system
and a program that interacts with user commands.
The kernel itself does not interact directly with the
user, but rather interacts with the shell and other
programs as well as with the hardware devices on
the system, including the processor (also called the
central processing unit or CPU), memory and disk
drives.
The kernel is the first part of the operating system
to load into memory during booting (i.e., system
startup), and it remains there for the entire duration
of the computer session because its services are
required continuously. Thus it is important for it to
be as small as possible while still providing all the
essential services needed by the other parts of the
operating system and by the various application
programs.
2.1.2 Linux
Linux refers to the family of Unix-like
computer operating systems using the Linux kernel.
Linux can be installed on a wide variety of
computer hardware, ranging from mobile phones,
tablet computers and video game consoles, to
mainframes and supercomputers. Linux is the
leading server OS, accounting for more than 50%
of installations. Desktop use of Linux has increased
in recent years, partly owing to the popular Ubuntu,
Fedora, and open USE distributions and the
emergence of net books and smart phones running
an embedded Linux.
The name "Linux" comes from the Linux
kernel, originally written in 1991 by Linus
Torvalds. The main supporting user space system
tools and libraries from the GNU Project
(announced in 1983 by Richard Stallman) are the
basis for the Free Software Foundation's preferred
name GNU/Linux.
The development of Linux is one of the
most prominent examples of free and open source
software collaboration; typically all the underlying
source code can be used, freely modified, and
redistributed, both commercially and noncommercially, by anyone under licenses such as the
GNU General Public License. Typically Linux is
packaged in a format known as a Linux distribution
for desktop and server use. Linux distributions
include the Linux kernel and all of the supporting
software required to run a complete system, such as
utilities and libraries, the X Window System, the
http://www.ijettjournal.org
Page 282
International Journal of Engineering Trends and Technology (IJETT) – Volume 6 Number 5 - Dec 2013
GNOME and KDE desktop environments, and the
Apache
HTTP
Server.
Commonly used
applications with desktop Linux systems include
the
Mozilla
Firefox
web-browser,
the
OpenOffice.org office application suite and the
GIMP image editor.
2.1.2 Features of Linux:
in-line assembly .Programming concepts
embedded programming in C++ are as follows:



Linux has evolved to have the following features as
an outstanding operating system which is strong in
security and networking.
 Multitasking: Several programs can run at the
same time.
 Multi-user: Several users can logon to the
same machine at the same time There is no
need to have separate user licenses.
 Multiplatform: Linux runs on many different
CPUs, that means it supports multiprocessor
machine.
 Multithreading: Linux has native kernel
support for multiple independent threads of
control within a single process memory space.
 Crash proof: Linux has memory protection
between processes, so that one program can't
bring the whole system down.
 Demand loads executables: Linux only reads
from those parts of a program that are actually
used on the disk.
 Linux also runs as LAN Manager/Windows
Native (SMB) client and server.
 It integrates many networking protocols: The
base protocols available in the latest
development kernels include TCP, IPv4, IPv6,
AX.25, X.25, IPX, DDP (AppleTalk), Netcom,
and others. Stable network protocols included
in the stable kernels currently include TCP,
IPv4, IPX, DDP, and AX.25.

of
A class binds all the member function
together for creating objects.
A class can derive (inherit) from another
class also.
METHODS (C functions) can have same
name in the inherited class. This is called
method overloading.
Operators in C++ can be overloaded like
method overloading.
3.1 BLOCK DIAGRAM
REGULATED
POWER SUPLLY
S3c2440
(ARM9)
USB HOST
LCD &
TOUCH
SCREEN
WI-FI
SENSORS
CONTROLLING
BOARD
RS232
TEMPERATU
RE SENSOR
PC
WITH
WI-FI
FIRE
SENSO
R
LDR
2.2 Qt for Embedded Linux
Qt for Embedded Linux is a C++ framework for
GUI and application development for embedded
devices. It runs on a variety of processors, usually
with Embedded Linux. Qt for Embedded Linux
provides the standard Qt API for embedded devices
with a lightweight window system.
III. Development of software
System Setup and Configurations
1. Boot Options:
2.2 EMBEDDED C++
C++ is an OOP language, which in addition,
supports the procedure –oriented codes of C.
Program coding in C++ codes provides the
advantage of OOP as well as advantage of C and
ISSN: 2231-5381
Fig 1: Block Diagram of Project

We can select the booting mode by
toggling the switch S2.

When toggling the S2 switch to the “Nor
Flash” side the system will boot from on
http://www.ijettjournal.org
Page 283
International Journal of Engineering Trends and Technology (IJETT) – Volume 6 Number 5 - Dec 2013
board Nor Flash. When toggling the S2
switch to the “NAND Flash” side the
system will boot from on board NAND
Flash.
2.
Connecting Peripherals:
 Connect the MINI2440 board’s serial port
to a PC’s serial port.
Installing Boot loader:
 Start the DNW application; connect the
MINI2440 board to a host PC via a USB
cable. If the DNW’ s title bar shows
“USB:OK”, it indicates that the USB
connection is a success. Select item [v] to
start downloading a supervivi.
 Connect the 5V power supply adapter to
the 5V power supply interface on the
board.
 Connect an LCD touch panel (if the user
has one) to the LCD interface on the board
following the data bus’ arrow.
 Connect the MINI2440 board to a PC with
a USB cable.
3.
Entering BIOS
Note: For Loading the Boot loader, Linux kernel
Image, Root File System DNW tool has to be
installed on windows system
Step 1: Push the button to the Nor flash side, select
booting from the Nor flash.
 Go to “USB Port” -> “Transmit/Restore”,
select a supervivi
Step 2: Power up the board, you can enter into
the BIOS menu as follows:
 Once the download is finished, BIOS will
automatically write this supervivi to NAND
Flash’s corresponding section and return to
the main menu
ISSN: 2231-5381
http://www.ijettjournal.org
Page 284
International Journal of Engineering Trends and Technology (IJETT) – Volume 6 Number 5 - Dec 2013
Installing Linux Kernel:
Project output
 In the BIOS main menu, select item [k] to
download a Linux kernel zimage
V. CONCLUSION
 Go to “USB Port” -> “Transmit/Restore”,
select a z`Image file according to OS that we
want to load into the MINI 2440
IV.
RESULTS
The project “RESEARCH AND DEVELOPMENT
OF REMOTE INPUT AND OUTPUT DATA
ACQUTISTION SYSTEM USING EMBEDDED
ARM PLATFORM” has been successfully
designed and tested. It has been developed by
integrating features of all the hardware components
and software used. Presence of every module has
been reasoned out and placed carefully thus
contributing to the best working of the unit.
Secondly, using highly advanced ARM9 board and
with the help of growing technology the project has
been successfully implemented.
VI. FUTURE SCOPE
In the current project we are not maintaining the
database of the different parameters like release of
any poisonous gas, fire caught and intensity of
light. By using SQL LITE in the future we can
maintain the database in the MINI 2440 board
itself.
VII. REFERENCE
Fig 2: CONNECTION OF THE PROJECT
[1] Liu Yang, Linying Jiang, Kun Yue ,Heming
Pang, Design and Implementation of the Lab
Remote Monitoring System Based on
Embedded
Web
Technology
2010
International
Forum on
Information
Technology and Applications.
[2] Jing Li, Yong Xu. Remote Monitoring
Systems Based on Embedded Database [C].
Third International Conference on Genetic
and Evolutionary Computing.2009:381-384.
[3] Ali Ziya Alkar, Member, IEEE, and Mehmet
Atif Karaca, Member, IEEE‖An Internet-
ISSN: 2231-5381
http://www.ijettjournal.org
Page 285
International Journal of Engineering Trends and Technology (IJETT) – Volume 6 Number 5 - Dec 2013
Based
Interactive
Embedded
DataAcquisition
System
for
Real-Time
Applications
IEEE
Transactions
on
Instrumentation and Measurement, VOL. 58,
NO. 3, Mar. 2009.
[4] Mo Guan, Minghai Gu‖Design and
Implementation of an Embedded WebServer
Based on ARM
[5] HongTao Yang , Eagleson, R. Design and
implementation of an Internet-based
embedded
control
system‖
Control
Applications, 2003. CCA 2003. Proceedings
of 2003 IEEE Conference on.
[6] Xiaojun Zhao Haixia Su ; Mingwei Ren ;
Yong Cao ; Lei Chen ; Fei Wang Internetbased automation equipment intelligent
monitor system Electronic Measurement &
Instruments, 2009. ICEMI '09. 9th
International Conference on 16-19 Aug.
2009.
[7] Yu Li-min, Li Anqi, Sun Zheng, and Li Hui
Design of Monitoring System for Coal Mine
Safety Based on Wireless Sensor Network.
AUTHORS
First Author – G.Sandeep,Pursuing M.Tech
in A.T.R..I College of Engineering,
Parvathapur,
sand
email:
sand434@gmail.com.
Second Author – V.V.N.S SUDHA,
Assistant Professor, E.C.E Department in
A.T.R.I College of Engineering.
ISSN: 2231-5381
http://www.ijettjournal.org
Page 286
Download