International Journal of Engineering Trends and Technology (IJETT) – Volume 4 Issue 9- Sep 2013 Design and Development of the Lab Remote Monitoring and Controlling System Based on Embedded Web Technology N.SREEKANTH REDDY1, V.PANDURANGA2, T. SWAPNA RANI3 M.Tech, Dept of ECE, CMR College of Engineering&Technology, Hyderabad, AP-India, 2 Asst Prof, Dept of ECE, CMR College of Engineering&Technology, Hyderabad, AP-India, 3 Asst Prof, Dept of ECE, CMR College of Engineering&Technology, Hyderabad, AP-India, 1 Abstract: Design of on-line embedded web server is a one of the difficult task of many real time data acquisition and control system applications. The global system of interconnected computer networks is called as World Wide Web which uses the standard Internet Protocol Suite (TCP/IP) to aid billion of users worldwide and enables the user to interface many real time embedded applications like data acquisition and control system, Industrial automations and safety measures etc,. In the monitoring system, the existing resource of Ethernet is used to remotely monitor the industrial parameters remotely using web servers. This paper tells the design and development of on-line Interactive Data Acquisition and controlling using ARM11 based embedded web server. It is permitted to form a network. Single chip Interactive Data Acquisition and control method increases the processing speed of a system and also avoids the problem of poor real time and reliability. This system uses ARM11 Processor and Linux. Web server application is ported into an ARM processor using embedded ‘C’ language. Web pages are designed in hyper text markup language (HTML). We are using Zigbee based wireless technology to remotely collect sensor data and send them to our web server board. Keywords— ARM, Linux, Embedded web server, Ethernet, TCP/IP protocol, Zigbee. 1. EMBEDDED WEB SERVER 1.1 The system diagram of Embedded Web Server:The system structure of embedded Web server is shown in Fig. The entire system uses B/S mode. The client PC is connected to the Internet through a browser and then gets access to the embedded Web server. Through this way, remote login and operation are realized. Compared with the traditional C/S mode, this mode is simple to use, convenient to maintain, and easy to extend. ISSN: 2231-5381 Fig 1: system diagram of Embedded Web server. The above Figure shows the system diagram of Embedded Web server. 1.2 The choice of Embedded Web Server Generally speaking, the embedded devices have limited resources and don't need to handle the requests of many users simultaneously. Therefore they do not need to use the most commonly used Linux server Apache. Web server which is specifically designed for embedded devices are applied in such case . This kind of Web server requires relatively small storage space and less memory to run, which makes it quite suitable for embedded applications. The typical embedded Web server is https. https is a simplest web server. If Web server only provides some static web pages such as simple online help and system introduction, then a static server can be adopted; if you need to improve system security or interact with users such as real-time status query and landing, then you have to use dynamic Web technologies. 2. INTRODUCTION Availability of personal computer and internet everywhere is very useful for monitoring and controlling remote devices and their parameters. A web base control and monitoring system can make us control a system without distance limit and cost effective, programmable and high efficiency controller webpage is necessary for the world competition. The purpose of this paper is to build a http://www.ijettjournal.org Page 4024 International Journal of Engineering Trends and Technology (IJETT) – Volume 4 Issue 9- Sep 2013 remote control system through a webpage. And this system is controlled through local area network by using an embedded TCP/IP protocol suit which is inbuilt in Linux kernel. This paper realizes an embedded web server, which enables data acquisition, control system, status monitoring with the help of any standard web browser. A web server in the device provides access to the user interface functions for the device through a device webpage. 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. The aim of the paper is to control the devices or equipments from the remote place through a web page. The web-server circuit is connected to LAN or Internet. The client or a person on the PC is also connected to same LAN or Internet. By typing the IPaddress of LAN on the web browser, the user gets a web page on screen; this page contains all the information about the status of the devices. The user can also control the devices interfaced to the web server by pressing a button provided in the web page. Biggest advantage of this web server is embedding a PC based web server into the ARM platform without losing any of its features. It consists of application program written in C for accessing data through the serial port and updating the web page, porting of Linux 2.6.3x Kernel with application program on ARM11 board and booting it from the RAM. The basic block diagram is shown in below figure. Fig 3: Basic block diagram receiver section. 3. HARDWARE DESIGN This system uses development board called as Mini6410 from Friendly ARM Company. The board is based on Samsung S3C-6410X microcontroller. S3C-6410X is based on ARM11 processor architecture from ARM Ltd. ARM processors are generally used for designing mobile handheld devices like smart phones, tablets etc with TCP/IP protocol chosen for communication board. It is primarily used in wireless public, TISCS, monitor and anti-theft system. Main parts of hardware in tablet system are as follows. Fig 2: Basic block diagram transmitter section. Fig 4:ARN11 interfacing The monitoring and controlling boards based on 8051 micro-controller communicate with our ARM11 based web server board using Zigbee wireless technology. 3.1 Processor Module:Samsung Company brings out a 16/32bit RISC microprocessor called S3C6410X, which is designed to hand-held devices and general applications, it is cost-effective, low-power, and high-performance microcontroller. To reduce total system cost, the ISSN: 2231-5381 http://www.ijettjournal.org Page 4025 International Journal of Engineering Trends and Technology (IJETT) – Volume 4 Issue 9- Sep 2013 S3C6410X includes the following components to separate 16KB Instruction and 16KB Data Cache, MMU to handle virtual memory management, LCD Controller (STN & TFT), NAND Flash Boot Loader, System Manager (chip select logic and SDRAM Controller), 3-ch UART, 4-ch DMA, 4-ch Timers with PWM, I/O Ports, RTC, 8-ch 10-bit ADC and Touch Screen Interface etc. S3C6410X reduces the whole cost of the system and enhances integration and dependability of the system. The Atmel AT89c51 processor which is a very low cost processor based system for controlling and monitoring we are using at the field. 3.2 Memory Module This system adopts Flash memory and SDRAM memory. As the internal memory of smart phone system, SDRAM is designed for transfer, storage and read-write internal data in the system. SDRAM adopts two 32MB memory chips HY57V561620CTH which are spliced to the data bus of 32 bit width, thus increasing the speed of data access. 64M NAND Flash, of which the type is K9F1208U0M, serves as the flash memory of the system. As the hard disc of the system, NAND Flash is mainly used for storage of system boot, OS Kernel, file system, graphical interfaces and application program. 4. SOFTWARE DESIGN Software design is the key to embedded system. Without powerful software as support, any hardware would not take effect. Software designs of ARM11 development board mainly include the following: 4.1 Transplant U-Boot At first, cross-compiling environment is built, which is a code generated from one platform and used in another platform. For this system, it is generated in PC and can run on the development board. Armlinux-4.3.2 is used as the cross compilation toolchain. Transplanted Vi-Vi-boot will be done after installing the cross compilation tool-chain and configuring the development environment. Vi-ViBoot is at the boot loader stage. Boot loader is the first software code after system powers up. It initializes the hardware equipment and builds up the map of memory space. Then the hardware and software environment of the system may be suitable for the OS Kernel boot. This system adopts Vi-Viboot-128M. Download and decompress source code. Modify source code in order to support SBC-2410X development board, and add the boot function of ISSN: 2231-5381 NAND Flash. Compiling Vi-Vi-boot-128M generates a binary file vi-vi-boot.bin. Download it toSBC2410X development board through USB interface. 4.2 Transplant Linux Kernel OS kernel is the centre of the operating system. A complete operating system includes more tools, libraries, application programs and kernel source. Linux kernel source can be downloaded from Internet free of charge. This system uses Linux-2.6.29.1 kernel source, a new edition published in 2009. Plenty of new functions have been added into this edition, thus expanding the system. Firstly, customize Linux kernel source and modify the source code. Add processor support, NAND flash chip support and Yaffs2 file system support. Dispose the program module in order to support the hardware module of S3C-6410X development board. Then cross-compile the kernel source to generate Image. At last, download the mapping file to NAND Flash memory. 4.3 Load File System By building, canceling, reading and writing, modifying and copying files, file system can access files by name and make access control. After Linux system startup, root file system must be mounted firstly. If not mounted from designated equipment, the system will be treated as making mistakes and quit startup. This system adopts Qtopia file system. As a kind of file system designed for NAND flash memory in embedded system, Qtopia has the characteristics of high efficiency, short mount time and small memory requirement. 4.4 Developing web-server and other applications The software design of AT89c51 Monitoring and controlling board we are doing in Keil Application Software. This system adopts Otopia as the platform for application program. We are using QT software for developing Embedded Web server Application and proving user buttons for controlling and monitoring the parameters of the lab. GUI graphical interface is designed by QT Creator. QT Creator, a kind of design tool with visualized user interface, can improve the development speed of QT application program. 5. RESULTS The setup of the embedded web server is shown in fig. The ARM11 based development board acts as a web server which is connected to the Ethernet controller of the network. This board is accepting data from 8051 based remote monitoring system and present of web server. If user provides any control action on web server then ARM board send http://www.ijettjournal.org Page 4026 International Journal of Engineering Trends and Technology (IJETT) – Volume 4 Issue 9- Sep 2013 appropriate controlled signals to 8051 board which implement it and take action. So this project is complete monitoring and controlling system with full fledged Internet support. 5.1 Integrating OS and Embedded Web Server The main part of the embedded web server is the OS handling the web server application. Whenever, a connection is established, a new task is created using Linux OS. And the web server application is executed for that user’s application, running in a task. When a new connection is established, a new task is created and the user’s application is executed in a separate task as a separate application. This process is continued for all the users connecting to the server. 5.2 Porting the Web server The Embedded web server application and the OS are ready and are to be ported on the target. The porting is done using DNW tool. Now, the code is loaded on the target and the target is configured over the network, to work as an embedded web server. 5.3 Testing the embedded Web server Testing: Initially, the target is tested for the working of operating system. This is done by booting the target using the hyper terminal. After the target is successfully booted with Linux kernel, it is tested over the network using ping command.The embedded web server responding to the ping command made by the client. Now the embedded Web server is responding to the clients, request is made to the server, embedded web server, by typing the IP address of the server in the client’s browser. The user has to enter “192.168.1.230 IP to access the server. This request is taken by the operating system of the client and given to the LAN controller of the client system. 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 session is established and a TCP/IP connection is establishes and the server starts sending the web pages to the client. Fig shows the client entering the IP address of the server and the server send the html page to the requested clients. ISSN: 2231-5381 Fig 5: Users Entering the IP Address Shows various clients connecting to the server and getting the html page. Finally client can monitor the Channel Data on Internet Explorer. The embedded web server that has been designed can be used in educational institutions, offices and many other places. For web-based network element management provide an administrator with a simple but enhanced and more powerful user interface without additional hardware. Fig 6: Monitoring and controlling the Channel Data on Internet Explorer 6. CONCLUSION Web server application require very strict software configuration. Because software contention and architectures can significantly affect web server performance and speed. Poorly designed and configured software architectures might even generate high response times while the physical resources display low utilization. A remote user only requires a common Internet browser to carry out experiments on real hardware. The embedded web server replaces the PC, which is required for remote labs with special hard- and software. We can used smart-mobile phones based web application to monitor and control our embedded web server. So such flexibility should be provided by web server http://www.ijettjournal.org Page 4027 International Journal of Engineering Trends and Technology (IJETT) – Volume 4 Issue 9- Sep 2013 designer which is essential part of modern web server implementation REFERENCES and Won-Ki Hong, "An Efficient Embedded Web Server for Webbased Network Element Management," International lourmal of Network Management, Vol. 10, May 2000. [1] Yu-Lung Ke, and Ying-Chun Chuang. A Novel Single-Stage Power-Factor-Correction Circuit with High-Frequency Resonant Energy Tank for DC-Link Inverters. IEEE Transactions on Circuits And Systems—II: Express Briefs, Vol. 53, no. 2, FEBRUARY 2006. Pp.115-119 [2] Qun Zhao, Fengfeng Tao, Peng Xu. Improved Performance of Continuous Current Mode Boost Converter for Power Factor Correction. Proc. of APEC97_pp.266-271 [3] Wang Xinyu_Zhang Jing_and Ye Jiazhuo__Study on Energy Acquisition and Billing Automation System,” Computer engineering and application_pp.240-243 June 200.pp.240-243. [4] Wu Zaijun_Wang Zheng_and Hu Minqing__Implementation of Concentralized Automatic Meter Reading Apparatus and Research on its Communication,”Power System Technology _ February 2002.pp.44-47. [5] Sung-JinChoi, Kyu-ChanLee and BoHyungCho.Design of Fluorescent Lamp Ballast With PFC Using a Power Piezoelectric Transformer. IEEE Transactions on Industrlal Electronics, Vol. 52 ,no .6, DECEMBER 2005.pp.1573-1581. [6] FAN Yizhi. “Visual Basic and RS-232 serial communication control,” .Beijing:chinese Young People Press.July 2002. pp.126-128. [7] Wang Xianchun, Guo Jierong, Hu Weiwen, and Fan Xiping, "Design and Implementation of Embedded Web Server Based on ARM and Linux," Micro Computer Information, vol. 23(52),2007, pp. 164-165. [8] Jacek W, "Embedded Internet technology in process control devices," IEEE Internet Computing, Vol. 34, 2000. [9] Liu Yingshui, Xiao Zhengyu, and Sun Wei, "Embedded Web Server Based on ARM and Linux," Microcontrollers & Embedded Systems, june 2007, pp. 14-21. [10] Mi-Joung Choi, Hong-Taek lu, Hyun-Jun Cha, Sook-Hyang Kim, ISSN: 2231-5381 http://www.ijettjournal.org Page 4028