Design and Implementation of the Lab Remote Monitoring System Based on EmbeddedWeb TechnologyLiu Yang, Linying Jiang , Kun...
Figure 2. The system hardware architectureB. Sensor NetworksWe use MEGA 8 as the master chip of the sensorextension board,...
collected by sensor networks and compare them with thethreshold value. If there is an exception for the sensor data incomp...
machine interaction and the dynamic display of video imagedata.Java Applets are provided by the web server and they aredow...
Upcoming SlideShare
Loading in...5
×

Design and implementation of the lab remote monitoring based on embedded web technology

999

Published on

for more projects visit @ www.nanocdac.com

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
999
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
14
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Design and implementation of the lab remote monitoring based on embedded web technology

  1. 1. Design and Implementation of the Lab Remote Monitoring System Based on EmbeddedWeb TechnologyLiu Yang, Linying Jiang , Kun Yue ,Heming PangSoftware College ,Northeastern University,Shenyang 110819, Chinayangliuneu@qq.comAbstract—Describe a software and hardware design solution ofan embedded web-based remote monitoring system for theenvironment in the laboratories. Build an embedded webserver to publish the data of sensor networks and video imagesto achieve remote monitoring which is based on B / Sarchitecture. Managers can control the equipments in the labthrough a web browser which is cross-platform. The embeddeddatabase manages the data collected by sensor networks,realizing the local management of environmental data. Theexperimental results show that the system designed implementssafe and convenient remote monitoring and local managementof the environment in laboratories and has high availability,reliability and popularization.Keywords-embedded web server; S3C2440 ARMmicroprocessor; embedded database; remote monitoring systemI. INTRODUCTIONThe web technology has begun to have a rapiddevelopment in the field of embedded systems in the post-PCera. The application of embedded web technology in theremote monitoring system has given rise to the technologicalchange in the field of industrial control. Nowadays themanagement of the domestic laboratories in the researchinstitute and universities has issues of poor real time, highcost and low precision .It is difficult to determine the qualityof the environment of the laboratory [1]. So the LaboratoryIntelligent Monitoring System should be developed toimplement early warning, remote control, real-timemonitoring and other functions. This paper comes up with adesign solution of an embedded web-based remotemonitoring system for the environment in the laboratories,which realizes the local management and remote publishingapplications for large-scale dynamic data of sensor networksand video images.II. SYSTEM TOPOLOGYThe general framework of the Laboratory IntelligentMonitoring System is divided into two parts which are thelocal ARM Intelligent Monitoring Center and its peripheralequipments and all kinds of remote monitoring terminals.ARM Intelligent Monitoring Center uses SamsungsS3C2440 processor as its main controller, the performanceand frequency of which are suitable for real-time videoimage capture and processing applications [2]. EmbeddedLinux operating system and boa embedded web server runon the main controller to manage various types ofequipments including sensor networks, GSM / GPRS dual-band module, USB cameras and so on.Remote monitoring terminals, including mobile phones,fixed phones, mobile PC, PDA and so on , are connectedwith the ARM Intelligent Monitoring Center through GSM,PSTN, and TCP / IP networks. Users can log on the ARMIntelligent Monitoring Center through any remote terminal tooperate monitoring software, view the data of monitoringcenter and know about the environmental conditions andvideo image in the laboratory. The system Topology isshown in Figure 1.Figure 1. The system topologyFor the condition that there are large numbers oflaboratories to be monitored, we can consider increasingmonitoring PC in the middle-level. Then the monitorinformation of ARM Intelligent Monitoring Centers can behandled in a centralized way in the monitoring PC to avoidthe constraint software and hardware resource in theembedded host to limit achieving demand for large-scalemonitoring functions. But the costs of the system will beincreased at the same time.III. DESIGN OF SYSTEM HARDWAREA. System ControllerThe system uses 32-bit RISC processor SamsungS3C2440 with various features and peripherals. It’s based onARM 920T core and supports embedded Linux, WinCE,VxWorks and other embedded operating system. All theproperties meet the requirements of the remote monitoringsystem. The System hardware architecture is shown inFigure 2.2010 International Forum on Information Technology and Applications978-0-7695-4115-0/10 $26.00 © 2010 IEEEDOI 10.1109/IFITA.2010.1751722010 International Forum on Information Technology and Applications978-0-7695-4115-0/10 $26.00 © 2010 IEEEDOI 10.1109/IFITA.2010.175172
  2. 2. Figure 2. The system hardware architectureB. Sensor NetworksWe use MEGA 8 as the master chip of the sensorextension board, which is connected to various types ofsensors to constitute a sensor network. This network collectsenvironmental data and transmits them to the ARMIntelligent Monitoring Center through serial ports. Thesensor network includes DS18B20 temperature sensor,HSll01 humidity sensor, TGS822 alcohol sensors, E200Binfrared sensors and TGS4161 carbon dioxide sensor. Thesesensors automatically monitor the temperature, humidity,carbon dioxide and other gas concentrations as well as theavailability of external material intrusion in the laboratory.C. Design of GPRS ModuleThis system uses SIM100-E GSM / GPRS dual-bandmodule for voice transmission, messages and data services. Itprovides wireless interface and communicates with the ARMIntelligent Monitoring Center through the RS232 interface.We write AT commands into the serial device file andcontrol the GPRS module to achieve functions such as theSMS / MMS mode automatic alarm to the managers when anexception occurs with the laboratory monitoring data.D. WebcamsMost of the current securities monitoring system arebased on PC with cameras, which is costly and troublesometo implement. This system uses an embedded host to connectcameras, which handles the real-time image acquisition andimage capture of laboratory environment. Through imageprocessing and special algorithm [3], the images can be usedto determine whether an exception illegal invasion eventoccurs. In conjunction with infrared detectors for functionalcomplementation, the system has better implementation ofsecurity features.In addition, the ARM Intelligent Monitoring Center canalso control a variety of electrical equipments in thelaboratory and is equipped with a TFT LCD touch screen, onwhich a friendly GUI developed by QT runs underembedded Linux system.IV. DESIGN OF SYSTEM SOFTWAREA. Acquisition of Environmental Monitoring DataAs for the design of the Intelligent Lab MonitoringSystem, we need to implement the local storage and dynamicupdate of the data collected by sensor networks for theachievement of local management and remote publishing ofenvironmental data, which can be implemented through anembedded web server. The remote monitoring client browserposts a HTTP request and then CGI programs operateSQLite database. The System software architecture is shownin Figure 3.Figure 3. The system software architectureThe well-known open-source database SQLite whichabandons many complex features of traditional enterprisedatabase and only implements the necessary functions interms of a basic database is one of the most widely usedembedded database [4-5].The system overhead is small and ithas retrieval efficiency, supporting ACID properties andSQL92 standard. This system uses SQLite database on theembedded Linux operating system to manage data.The ARM Intelligent Monitoring Center acquires sensordata via the sensor expansion board. The sensor expansionboard with Mega8 as its master chip is used for dataacquisition and communicating with intelligence monitoringcenter. SCM software is in charge of the local polling toobtain the status of each sensor and monitoring data. It cansend out an interrupt request signal. The ARM IntelligentMonitoring Center sends control commands to SCMaccording to the definition of serial communication protocol,the latter returns the state or data of specified sensorsaccording to the commands. The sensor data is acquired andupdated in a fixed time interval managed by SQLitedatabase.B. Environmental Monitoring Data Analysis AlgorithmThe environmental monitoring data analysis algorithmanalyzes the current data stored in the SQLite database173173
  3. 3. collected by sensor networks and compare them with thethreshold value. If there is an exception for the sensor data incomparison with the threshold, then the system will call theGPRS module and electrical device driver functions to makecorresponding processing such that when the temperature istoo high, we may think a big fire must be caused .So thesystem sends an alarm message to the user, dial the phones,cut off the power of large electrical equipments at the sametime. The photos which record the accident scene will besaved in the root directory of the boa web server in order toprovide the proof of the cause of the accident. The flow chartof the environmental monitoring data analysis algorithm isshown in Figure 4.BeginTemperature attribute?Higher than thethreshold value?YHigh temperature alarmTake photos/save image files to rootdirectory of boa embedded web serverYNEliminating the process forother sensorsThread suspendinterval TIME2Select meta-set corresponds tocurrent system timeClose monitoringsystem?NYNEndSend a warning message /open theair-conditioning for refrigerationFigure 4. The environmental monitoring data analysis algorithmC. Publishing Environmental Monitoring Data Based onthe Embedded WebTo achieve the remote publishing of the sensor data andvideo images, we can build an embedded web server. As forresource-limited embedded devices the light weight webservers we can choose are Boa, httpd, thttpd, etc. Boa is asingle-task web server which runs on UNIX /Linux system.If there are two users’ simultaneous accesses to it, in which auser must wait for a moment, the server creates a separateprocess to handle CGI programs, taking up lesssystem resources. The advantages of Boa lie in its rapidityand reliability. This system uses the open-source Boa webserver which supports CGI program. However, the principlesof remote publishing are totally different due to thedifferences between the two types of environmental data.1) Remote Publishing of Sensor DataThe remote publishing of sensor data is achieved throughthe CGI technology. CGI is a standard interface for externalapplications to interact with a web server [6].We transplantembedded Linux system to the ARM Intelligent MonitoringCenter and build Boa web server, which is responsible forlistening to customer requests from the Internet as a runningprocess in the background. When users send requeststhrough IE browsers to the local embedded web server tostart the corresponding CGI program to accomplish theparsing and processing of the parameters, the web servertranslates the request parameters into environment variablesor standard input. CGI programs perform the correspondingquery and update operations of SQLite database and theresults are converted to the format which is recognized bythe web browsers. Then they are returned to the clients asHTTP response messages, thereby achieving the remotequery of monitoring data collected by sensor networks.2) Remote Publishing of Video Image DataTo achieve the remote publishing of video image data weneeded to complete three steps which are image acquisition,image compression and dynamically displays through webpages.Image acquisition module completes the capture of thevideo images through the video device driver V4L(video4linux) in the embedded Linux kernel.V4L is the basisof imaging systems of Linux system and provides a range ofapplication programming interface function for the control ofthe video devices [7].These video devices include TV cards,video capture cards, USB cameras and so on. The flow chartof image captures based on V4L is shown in Figure 5.Figure 5. The flow chart of image captures based on V4LThe video data collected in the memory can be saved asfiles and it could also be compressed for transmissionthrough the Internet. This design will choose to compress thevideo data with the MJPEG algorithm to generate datastream .Finally, we need to dynamically displayed the videodata on web pages, but this is difficult to be implementedthrough the traditional CGI technology. Because CGIprograms run on the server, which has high demand for thehardware resources, they increase the burden ofservers. They aren’t suitable for the embedded environmentof which the memory and storage space is very limited .Thispaper develops Java Applets to achieve flexible man-174174
  4. 4. machine interaction and the dynamic display of video imagedata.Java Applets are provided by the web server and they aredownloaded to the clients when the browser accesses theserver with requests. The client browser can run the programonly if it supports Java VM. The system uses Java Applets toprovide access interfaces for users, so it is convenient todevelop client applications, reducing the burden of webserver at the same time. In the ARM Intelligent MonitoringCenter we build a small embedded website, the main contentof which is monitored environmental data and information ofvideo images.The process of the service provided by the embeddedwebsite of the Laboratory Intelligent Monitoring System isshown in Figure 6.Figure 6. The process of the service of the embedded websiteV. EXPERIMENTAL RESULTSThe main page of the embedded website to remotepublishing the monitoring data of sensors and video imageinformation which is implemented by the combination ofembedded database SQLite and an embedded boa web serveris shown in Figure 7 .It can realize the remote access ofsensor monitoring data and video image information in thelaboratory, supporting the query of the historical records anddownload of the environmental monitoring data to the clientaccording to requests. The remote video monitoring centerscan implement both real-time image monitoring and thequery of the photo image files automatically captured whenthe monitoring system in abnormal states.Figure 7. The main page of the embedded websiteVI. CONCLUSIONThis paper focuses on solving the issues of poor realtime, high cost, low precision and incapability ofdetermining whether the lab environment is in line with thebody’s health in the laboratory management of domesticinstitutions of higher learning and designs an embeddedweb-based remote monitoring system to realize the localmanagement and remote publishing applications for large-scale dynamic data of sensor networks and videoimages. Build an embedded web server to publish the dataof sensor networks and video images to achieve remotemonitoring which is based on B / S architecture. Managerscan achieve remote monitoring for devices in the laboratorythrough a web browser which is cross-platform. Theexperimental results show that the system designed realizessafe and convenient remote monitoring and localmanagement of the environment in laboratories and has highavailability, reliability and popularization.ACKNOWLEDGMENTThis paper is funded by National Ministry of EducationCollege Students Innovative Experiment projects (090164)REFERENCES[1] Wang Ping, Wang Zheng. Design and Implementation of OpenComputer Lab Monitoring and Management System [J]. Computerand Modernization ,2007,11:125-128.[2] Samsung Electronics Co Ltd. Users Manual S3C2440A V0.12 [M].2004.[3] Tan Jiyuan, Wu Chengdong. Research of Abnormal Target DetectionAlgorithm in Intelligent Surveillance System [J]. Electrical andMechanical Engineering, 2009,26 (3) :12-15.[4] Jing Li, Yong Xu. Remote Monitoring Systems Based on EmbeddedDatabase [C]. Third International Conference on Genetic andEvolutionary Computing.2009 :381-384.[5] Lv Junyan, Xu Shiguo, Li Yijie. Application Research of EmbeddedDatabase SQLite [C]. International Forum on InformationTechnology and Applications. 2009: 539 - 543.[6] Ying Feng, Feng Yu-fen. The Design and Implementation of HomeGateway Based on SQLite Database [J]. Micro-computerInformation, 2008, 24 (5-2): 24-26.[7] Wang Guowei, Song Tiecheng, Chen Zhengshi . Video SurveillanceServers Based on Embedded Web Technology[J]. ComputerEngineering, 2005,31 (22) :202-204.175175

×