+ All Categories
Home > Documents > Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Date post: 21-Jan-2016
Category:
Upload: chiko
View: 29 times
Download: 0 times
Share this document with a friend
Description:
Climate Monitoring WEB Interface Using 1_Wire™ Sensors. Imad Hoteit Hassan Wehbe. Outline. Project Summary Functional Description Modes of Operation Database updates Flowcharts Testing Schedule of tasks. Project Summary. - PowerPoint PPT Presentation
Popular Tags:
22
Climate Monitoring WEB Interface Using 1_Wire™ Sensors Imad Hoteit Hassan Wehbe
Transcript
Page 1: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Imad HoteitHassan Wehbe

Page 2: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Outline

Project SummaryFunctional DescriptionModes of OperationDatabase updatesFlowchartsTestingSchedule of tasks

Page 3: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Project Summary

The purpose of this project is to set up these sensors, create a user-friendly web based interface (applet) and a database that will hold previous data and provide query abilities to the applet.

Page 4: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Functional Description

Hardware Interface– The sensors will be distributed along two wires

that go through different rooms of Jobst hall; these are connected to the HA5 adapter.

Page 5: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Functional Description

Page 6: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Functional Description

Applet– The applet will run on a web server and will

query the sensors for readings.– Data will be recorded in a database for later

use.– Many applications could be added to the applet

making use of the records in the database.

Page 7: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Functional Description

GUI/Applet

Mouse/keyboard

Screen

User

TCP/IPDSTP

TCP/IPHTTP

Page 8: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Modes of Operation

Applet– Display historical data– Get immediate sensor update

Sensor Query Daemon– Discover sensors on network– Request sensor readings– Update database

Page 9: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Database updates

The MySQL database has four tables (so far):– Temprerature

• timestamp, sensorid, temp_R, temp_V– Light

• timestamp, sensorid, on– Humidity

• timestamp, sensorid, temp_R, temp_V, hmd_R, hmd_V– Data

• sensorid, type, timestamp

Page 10: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Applet Flowchart

Start

Initialize and Display

Graph Displayed

Room where sensor is

shown

LightsHumidityTemperature

Room Sensor Is Located in, Value

Read, Time of Reading

Page 11: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

CGI Script Flowchart

StartRead From The

DatabasePrint The Data To

HTML

Connect to theDatabase Using

DBI and MySql++

Page 12: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

The GUI

What’s behind the applet?– JDBC: status unsuccessful– Perl/CGI Script: Status successful

The applet:– Main– Temperature– Humidity

Page 13: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

The GUI

The applet (continued):– Lights– Chart for the values read by each sensor– Navigation controls– Hopefully a software to let the administrator draw the

room

Page 14: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Tentative

We were thinking of making use of a program similar to these 1 2It would need some tweaking, yet would allow the administrator to create a custom made rooms and specify the position of the sensors within those rooms.

Page 15: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Sensor Query Daemon Flowchart

Create aconnection to

database

Create aconnection toHA5 adapter

through serialport

Discover allsensors

Send 'aS,FF'command

Updatedatabase with

new values

Query sensorsperiodically

Start

Page 16: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Sensor Query Daemon

The server application uses two classes– HA5– Sensor_DB

The reasons for object oriented programming are– Anticipated growth– Ease of debugging– Clarity of code

Page 17: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

HA5

Open connectionClose connection DestructorSearch: all, by family, by conditionSelect one sensorRead:– Light switch– Temperature value– Humidity ratio

Page 18: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Sensors_DB

Open connectionClose connection DestructorSearch:– All tables– By sensorid, by type

Insert/Update a row//Delete a row…used for troubleshooting

Page 19: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Division of work

Hassan:• Java Applet • Perl/ CGI script

Imad:• C++• Hardware Interface

Page 20: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Schedule of Future Tasks

Page 21: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Schedule of Future Tasks

Page 22: Climate Monitoring WEB Interface Using 1_Wire™ Sensors

Climate Monitoring WEB Interface

Questions


Recommended