GreenComputing_SRS by ashrafp

VIEWS: 5 PAGES: 12

									                                                                                               SRS Concept-proving prototype for Green Energy Computing
                                                                                                                                           Version: 0.01
SRS Concept-proving prototype for Green Energy Computing
             Version: 0.01


Contents
1            Introduction............................................................................................................................................................... 3
1.1          Purpose ...................................................................................................................................................................... 3
1.2          Intended Audience and Reading Suggestions ............................................................................................................ 3
1.3          Project Scope ............................................................................................................................................................. 3
2            Definitions ................................................................................................................................................................. 3
2.1          contract: ...................................................................................................................................................................... 3
2.2          L.E.D: ......................................................................................................................................................................... 3
2.3          WSN: .......................................................................................................................................................................... 3
2.4          Zigbee: ....................................................................................................................................................................... 3
2.4.1        GPIO .......................................................................................................................................................................... 3
2.5          monitor: ...................................................................................................................................................................... 4
2.5.1        Project Deliverables.................................................................................................................................................... 4
2.6          References ................................................................................................................................................................. 4
3            Overall Description................................................................................................................................................... 5
3.1          Product Perspective ................................................................................................................................................... 5
3.2          Product Features ........................................................................................................................................................ 6
4         System Features ....................................................................................................................................................... 6
4.1       REQ-1: Temperature and light intensity monitoring .................................................................................................... 6
4.1.1     Description and Priority .............................................................................................................................................. 6
4.1.2     Stimulus/Response Sequences .................................................................................................................................. 8
4.1.3     Functional Requirements ............................................................................................................................................ 8
4.2       REQ-2: Locally controlled L.E.D controlled by light intensity ...................................................................................... 8
4.2.1     Description and Priority .............................................................................................................................................. 8
4.2.2     Stimulus/Response Sequences .................................................................................................................................. 9
4.2.3     Functional Requirements ............................................................................................................................................ 9
4.3       REQ-3: Locally controlled motor controlled by temperature ....................................................................................... 9
4.3.1     Description and Priority .............................................................................................................................................. 9
4.3.2     Stimulus/Response Sequences .................................................................................................................................. 9
4.3.3     Functional Requirements ............................................................................................................................................ 9
4.4       REQ-4: History analysis ........................................................................................................................................... 10
4.4.1     Description and Priority ............................................................................................................................................ 10
4.4.2     Database creating and storing .................................................................................................................................. 10
4.5       Data receiving........................................................................................................................................................... 10
4.6       REQ-5: Graph or curves to show the data based on time. ....................................................................................... 11
4.6.1     Description and Priority ............................................................................................................................................ 11
4.6.2     Graph and curves ..................................................................................................................................................... 11
4.6.3     Special values .......................................................................................................................................................... 11
4.7       Web application components.................................................................................................................................... 11
4.7.1     Functional Requirements .......................................................................................................................................... 12
4.7.2     The application will be built on a web server with the ability to be accessed by any computer with an Internet
connection. ............................................................................................................................................................................. 12
4.7.3     The application will be built to be compatible with Firefox, Microsoft Internet Explorer and Google Chrome web
browsers. ................................................................................................................................................................................ 12
4.7.4     The application will be built to retrieve temperature and light intensity information from the sink node, which
interacts with the end devices, collects the data and is connected to the server, and shows them on the web page. ............ 12
4.7.5     The web application will be built to be refreshed every 5 seconds in order to reflect the most recent changes in
temperature and light intensity from the end devices. ............................................................................................................. 12
4.7.6     The web application will have two tables for the two end devices. Each table has two rows, one for                                                                 the
temperature and the other for light intensity............................................................................................................................ 12
4.7.7     The web application will have pictures and text to display the development team of the application. ...................... 12


Last printed 7/21/2011 9:58 PM                                                                                                                                              Page 1 of 12
                                                      Filename: 5712622b-580c-4026-a787-9fe5554c3a7c.doc
                                                                           SRS Concept-proving prototype for Green Energy Computing
                                                                                                                                                       Version: 0.01
5      Nonfunctional Requirements................................................................................................................................. 12
5.1    The system must use an open source database (MySQL), PHP scripting language, C# programming language,
Windows Operating system with .Net framework, and C for embedded system programming ............................................... 12
5.2    The system must user friendly .................................................................................................................................. 12
5.3    The system must be reliable ..................................................................................................................................... 12
5.4    The system must be designed in a fashion that is easily modified and expanded .................................................... 12
5.5    The system must be well documented (user manual, system design manual) ......................................................... 12




Last printed 7/21/2011 9:58 PM                                                                                                                            Page 2 of 12
                                                Filename: 5712622b-580c-4026-a787-9fe5554c3a7c.doc
                                                                   SRS Concept-proving prototype for Green Energy Computing
                                                                                                               Version: 0.01




1       Introduction

1.1      Purpose
          This document outlines the requirements for Concept-proving prototype for Green Energy Computing, a project
          utilizing a WSN.


1.2      Intended Audience and Reading Suggestions
          This Software Requirements Specification (SRS) is intended for Southern Polytechnic Capstone developers (Marco
          Benavides, Song Tan, Yushan Lu). It is also intended for Southern Polytechnic State University sponsor Dr. Xian
          and Capstone Professor Brianna Morrison. In addition, this document can be used as a reference for project related
          material.


1.3      Project Scope
          The Concept-proving prototype for Green Energy Computing will provide a means to monitor energy cost of a given
          environment. In addition, provide analytical data for improving the efficiency of a building or environments energy
          usage. The project will produce sensor nodes that are capable of operating locally powered components such as a
          L.E.D and a small vibration motor.
          The Concept-proving prototype for Green Energy Computing will not be a control system for a large environmental
          system. The WSN will be small with a maximum prototype size of a receiver and two end nodes.



2       Definitions

2.1      contract:
          A legally binding document agreed upon by the customer and supplier. This includes the technical
          and organizational requirements, cost, and schedule for a product. A contract may also contain informal
          but useful information such as the commitments or expectations of the parties involved.


2.2      L.E.D:
          A standard low powered Light Emitting Diode.


2.3      WSN:
          Wireless Sensor Network


2.4      Zigbee:
          ZigBee is a specification for a suite of high level communication protocols using small, low-power digital
          radios based on the IEEE 802.15.4-2003 standard for wireless personal area networks (WPANs), such as wireless
          headphones connecting with cell phones via short-range radio


2.4.1     GPIO
          General Purpose Input/Output (a.k.a. GPIO) is an interface available on some devices. A microprocessor,
          microcontroller or interface device may have one or more GPIO connections to interface with external devices and
          peripherals. These can act as input, to read digital signals from other parts of a circuit, or output, to control or signal
          to other devices.



Last printed 7/21/2011 9:58 PM                                                                                           Page 3 of 12
                                      Filename: 5712622b-580c-4026-a787-9fe5554c3a7c.doc
                                                               SRS Concept-proving prototype for Green Energy Computing
                                                                                                           Version: 0.01
2.5     monitor:
         The person, or persons, who operate or interact directly with the system.


2.5.1    Project Deliverables
              Requirements
                        o   Software Requirements Specification
                                    Project Management
                                          Project Charter – Mission/Purpose Statement
                                          Project Scope
                        o   Entity Relationship Diagram of the Business Rules
               Design
                        o   Data Flow Diagram of Concept-proving prototype for Green Energy Computing
                        o   A series of Use Cases from the Data flow diagrams mentioned
               System Prototyping
                        o   Physical Implementation of project design
               Testing
                        o   Test Cases (reports) derived from Use Cases
               Product
                        o   Demonstration of product (WSN monitoring system)


2.6     References
               Wikipedia – ZigBee: http://en.wikipedia.org/wiki/ZigBee
               ZigBee Alliance: http://www.zigbee.org/
               Wikipedia – General Purpose Input/Output: http://en.wikipedia.org/wiki/General_Purpose_Input/Output
               IEEE Std 830-1998, Recommended Practices for Software Requirements Specification




Last printed 7/21/2011 9:58 PM                                                                               Page 4 of 12
                                     Filename: 5712622b-580c-4026-a787-9fe5554c3a7c.doc
                                                             SRS Concept-proving prototype for Green Energy Computing
                                                                                                         Version: 0.01


3     Overall Description

3.1    Product Perspective
         Wireless sensor networks (WSNs) are one of the first real-world examples of pervasive computing, the notion that
         small, smart, and cheap sensing and computing devices will eventually permeate the environment. Sensor
         networks combine distributed sensing, computation, and wireless communication. The project is a product-oriented
         process-guided senior project for green smart energy application with a portable and inexpensive Wireless Sensor
         Network (WSN) kit in a Box (WinBox). The product prototype is used to monitor temperature and light intensity
         online by wireless sensor network.




                                        Figure 1. - Level 1 Design Overview




Last printed 7/21/2011 9:58 PM                                                                                Page 5 of 12
                                   Filename: 5712622b-580c-4026-a787-9fe5554c3a7c.doc
                                                                SRS Concept-proving prototype for Green Energy Computing
                                                                                                            Version: 0.01




                                     Figure 2 - Wireless sensor network overview

3.2      Product Features
               Low cost components
               Low maintenance overhead
               Accessible via web application
               Provides real time environment monitoring data
               History analysis graphing and statistics




4       System Features

4.1      REQ-1: Temperature and light intensity monitoring

4.1.1     Description and Priority

          The temperature and light intensity monitoring requires, the system to transmit data in a given radius around small
          autonomous nodes. The system’s nodes have to be low power and low maintenance to function for extended
          periods of time. The data are sent in packets to a receiver which converts the data to information that can be read
          by a listening program which outputs the data in a readable format. The formatted file is then read by a program
          which inputs the data into a database for analysis.



Last printed 7/21/2011 9:58 PM                                                                                    Page 6 of 12
                                     Filename: 5712622b-580c-4026-a787-9fe5554c3a7c.doc
                                                                    SRS Concept-proving prototype for Green Energy Computing
                                                                                                                Version: 0.01


         The System must be available on World Wide Web, with viewing capabilities in recent version of the Microsoft's
         Internet Explorer and another widely used browser.

         Feature Priority Ratings Table
          benefit    9
           penalty     7
           cost        5
           risk        3




                                                     Sink / End device nodes




                                                           Press the
                     Press one time in two seconds         button to            Press two time in two seconds
                                                           configure




                                                                                          End devices mode (Green LED blink
              Sink mode (RED LED still on)                                                   at 1Hz, RED LED blink when
                                                                                                package acknowledged)


                                                Figure 3 - Node Subsystem




Last printed 7/21/2011 9:58 PM                                                                                      Page 7 of 12
                                     Filename: 5712622b-580c-4026-a787-9fe5554c3a7c.doc
                                                                                             SRS Concept-proving prototype for Green Energy Computing
                                                                                                                                         Version: 0.01



4.1.2    Stimulus/Response Sequences
         The process of monitoring light intensity and temperature data requires power to be supplied to the node. A trivial
         stimulus (which is always occurring) is for there to be temperature and light. The response is the nodes collect the
         changes or lack of changes in temperature and light intensity. Snapshots of the data are send in packets to the
         receiver which converts the packets to a readable format by a program which listens on a hard coded port for the
         packets of information. The information is then outputted to a formatted file which is read by a web-based
         application and inserted into a database for analysis.




                                                           2.0 Port Reader subsystem




                                                                     ComReader.exe
                                                                        PortConnection
                                                                                             Format Message package based on Zigbee and PC
                                                                           validation
                                                                          component                       connection protocol


                                                                        Buffer allocating
                                                                         and initializing
                                                                          component


                                                                       Message collecting
                                                                         and parsing
                                                                          component



                                                                        Generate the log
                    Information in the log file for each node
                                                                       files for each node




                                                                Figure 4 - Port Reader Subsystem

4.1.3    Functional Requirements
         This feature requires that the following are true:
               Properly programmed embedded application to control CC2480 target boards
               MSP430 microcontroller with attached CC2480 target board is operating in the port reader subsystem.
               CC2480 target boards are operating and transmitting data in Zigbee wireless network subsystem
               Port reader program is running in port reader subsystem
               Web application is functioning properly




4.2     REQ-2: Locally controlled L.E.D controlled by light intensity

4.2.1    Description and Priority
         A locally controlled L.E.D requires that a low powered L.E.D. be attached to one of the target boards. It also
         requires that the embedded program (program burned on the firmware) be modified in such a design as to operate
         the L.E.D. based on the light intensity of the given environment around the target board.


Last printed 7/21/2011 9:58 PM                                                                                                               Page 8 of 12
                                                   Filename: 5712622b-580c-4026-a787-9fe5554c3a7c.doc
                                                                SRS Concept-proving prototype for Green Energy Computing
                                                                                                            Version: 0.01
           Feature Priority Ratings Table
           benefit   4
           penalty     8
           cost        7
           risk        3



4.2.2    Stimulus/Response Sequences
         After light intensity of the environment decreases to a specified threshold, the L.E.D will activate (light up). In
         contrast when after the light intensity of the environment increases to a specified threshold, the L.E.D will deactivate
         (turn off).


4.2.3    Functional Requirements
         This feature requires the following are true:
         Modified embedded program to activate GPIO’s on target board
         MSP430 microcontroller board attached to CC2480 target board is operating in port reader subsystem
         CC2480 target boards are operating in Zigbee wireless network subsystem
         L.E.D is properly attached to specified GPIO’s on CC2480 target board



4.3     REQ-3: Locally controlled motor controlled by temperature

4.3.1    Description and Priority
         A locally controlled motor requires that a low powered motor (vibration motor) be attached to one of the target
         boards. It also requires that the embedded program (program burned on the firmware) be modified in such a design
         as to operate the motor based on the current temperature of the given environment around the target board.
           Feature Priority Ratings Table
           benefit   4
           penalty     8
           cost        7
           risk        3



4.3.2    Stimulus/Response Sequences
         After temperature of the environment decreases to a specified threshold, the motor will activate (begin vibrating). In
         contrast to the previous stimulus and response, when after the temperature of the environment increases to a
         specified threshold, the motor will deactivate (stop vibrating).


4.3.3    Functional Requirements
         This feature requires the following are true:
         Modified embedded program to activate GPIO’s on target board
         MSP430 microcontroller board attached to CC2480 target board is operating in port reader subsystem
         CC2480 target boards are operating in Zigbee wireless network subsystem
         Motor is properly attached to specified GPIO’s on CC2480 target board


Last printed 7/21/2011 9:58 PM                                                                                      Page 9 of 12
                                    Filename: 5712622b-580c-4026-a787-9fe5554c3a7c.doc
                                                                SRS Concept-proving prototype for Green Energy Computing
                                                                                                            Version: 0.01
4.4     REQ-4: History analysis

4.4.1    Description and Priority
         Such as the maximum, minimum and average of light intensity, temperature in a minute, an hour or a day, and the
         time when the LED is turned on. (Database to store the data in order to analysis).


4.4.2    Database creating and storing
         Real-time Database
                 Values: Address, Time, Temperature, Light.
         Once the system starts, these values can be stored in the Real-time Database every five seconds. When the
         system closed, the whole Real-time database will be calculated out average temperatures and average lights for
         each address within a single day. If the time period crosses more than one day, system will store the average
         temperature and average light for every different day. The results will be stored in the Past-time Database.
         The data in Real-time Database which are stored before yesterday needs to be cleaned.
         Past-time Database
                 Values: Attribute, Address, Time, Date, Light, Temperature
         Attribute values: “HT”(high temperature); ”HL”(high light); ”LT”(low temperature); ”LL”(low light); “AT”(average
         temperature); “AL”(average light)
         When the system closed or one day pasted, the system will calculate the values corresponding to every attribute in
         one day. The results will be stored in the Past-time Database. If the value has been stored in this day, system will
         combine the value and update it.
         LED turned on time Database
                 Values: Address, Time
         The system designed when the light intensity reduce under a specific value, the LED will be turned on. So when the
         light value in real-time database under the specific value, the corresponding time and address will be stored in the
         LED turned on time Database.


4.5     Data receiving
         Address, time, temperature and light data receiving
         Use the help of “example C# program and source code” to get the data of these values. When the system got these
         values, the values will be stored in Real-time Database immediately.
         LED turned on time receiving
         The system designed when the light intensity reduce under a specific value, the LED will be turned on. So when the
         light value in real-time database under the specific value, the corresponding time and address will be stored in the
         LED turned on time Database.




Last printed 7/21/2011 9:58 PM                                                                                    Page 10 of 12
                                    Filename: 5712622b-580c-4026-a787-9fe5554c3a7c.doc
                                                                                                   SRS Concept-proving prototype for Green Energy Computing
                                                                                                                                               Version: 0.01




                                                               1.0 Web application subsystem
                     W
                      eb
                       Ap
                          plic
                            aio
                                 nM
                                  ain
                                      pa
                                      ge




                                             GreenComputing.php
                                              Indexing and retrieve
                                                the corresponding




                                                                                                                        Process.php
                                                   information




                                                                                                                   in
                                                                                                          h   em
                                                                                                      re t
                                                                                                  sto
                                                                                               nd      e
                                                                                        fi le a tabas
                                                                                     log L da
                                                                                 the




                                                                                                                                      In
                                                                                        Q
                                                                            i n g My S




                                                                                                                                         fo
                                                                       a rs




                                                                                                                                          m r
                                                                      P




                                                                                                                                            at
                                                                                                                                              io
                                                                                                                                                n
                                                                                                                                                fro
                                                                                                                                                    m
                                                                                                                                                      Lo
                                                                                                                                                        g
                                                                                                                                                        file
                                                                                                                                                            s
                                                 Figure 5 - Web Application subsystem

4.6     REQ-5: Graph or curves to show the data based on time.

4.6.1    Description and Priority
           Using the database of Real-time Database, Past-time Database, and LED turned on time Database, system can
         show the results as graph or curves to show the data based on time.


4.6.2    Graph and curves
         User can login by a username to access his own database through website. This web site can show all the data of
         average values in Past-time Database as some different colors curves based on date to the user. This web site can
         also show all the data in Real-time Database as some different colors curves based on time to the user. User can
         see the temperature and light value clearly by the time line.


4.6.3    Special values
         Every special value will be in group by date. When the user clicked on the specific date, the values will be listed on
         the website.


4.7     Web application components
         The web application components require basic compatibility centered around the major internet browser
         developers. The web components will frequently be the source of interaction between the monitor and the system.




Last printed 7/21/2011 9:58 PM                                                                                                                                  Page 11 of 12
                                           Filename: 5712622b-580c-4026-a787-9fe5554c3a7c.doc
                                                               SRS Concept-proving prototype for Green Energy Computing
                                                                                                           Version: 0.01
4.7.1     Functional Requirements
          This requirement covers a large spectrum and requires the following are met:


4.7.2     The application will be built on a web server with the ability to be accessed by any computer with an
          Internet connection.

4.7.3     The application will be built to be compatible with Firefox, Microsoft Internet Explorer and Google Chrome
          web browsers.

4.7.4     The application will be built to retrieve temperature and light intensity information from the sink node,
          which interacts with the end devices, collects the data and is connected to the server, and shows them on
          the web page.

4.7.5     The web application will be built to be refreshed every 5 seconds in order to reflect the most recent
          changes in temperature and light intensity from the end devices.

4.7.6     The web application will have two tables for the two end devices. Each table has two rows, one for         the
          temperature and the other for light intensity.

4.7.7     The web application will have pictures and text to display the development team of the application.




5       Nonfunctional Requirements

5.1      The system must use an open source database (MySQL), PHP scripting language, C# programming
         language, Windows Operating system with .Net framework, and C for embedded system programming

5.2      The system must user friendly

5.3      The system must be reliable

5.4      The system must be designed in a fashion that is easily modified and expanded

5.5      The system must be well documented (user manual, system design manual)




Last printed 7/21/2011 9:58 PM                                                                              Page 12 of 12
                                    Filename: 5712622b-580c-4026-a787-9fe5554c3a7c.doc

								
To top