Condroid WSN/DTN Gateway - Work Procedure

610 views

Published on

Condroid WSN/DTN Gateway - Work Procedure. Download the document in http://csd.xen.ssvl.kth.se/csdlive/content/wsndtn-gateway-system-analysis-design

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

  • Be the first to like this

No Downloads
Views
Total views
610
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Condroid WSN/DTN Gateway - Work Procedure

  1. 1. !!"#$%&#()&*!)+"*&,--./0*%,.* 1*."2/#343 2011 !"#$%&()%*+(,%+-%"( !"#$%&(&#*&.( ( Lan Sun (lansun@kth.se), 15 ECTS (((((/#*&.(*01(2"#$%&(#30%"( Hervé Ntareme Qing An (qinga@kth.se), 15 ECTS /#4&#*&.( Michel Hognerud Jun Gao (jungao@kth.se), 15 ECTS /.*+25#0( Laili Aidi (aidi@kth.se), 18 ECTS Björn Pehrson! Yasir Ali (yasireal@kth.se), 15 ECTS SUMMER CSD
  2. 2. WSN/DTN Gateway Set up Procedure V1.1 ! Revision HistoryVersion Date Responsible Change V1.0 2011-08-14 Laili Aidi Initial version of the document V1.1 2011-09-29 Laili Aidi Cover, Abbreviation and Part 2 2
  3. 3. WSN/DTN Gateway Set up Procedure V1.1 ! ContentsContents .............................................................................................................................................3!Summary.............................................................................................................................................5!Abbreviation.......................................................................................................................................6!1. Introduction ..................................................................................................................................7!2. Set up Procedure ..........................................................................................................................8! •! Step 1 - System Requirement & Architecture..................................................... 8! 1.! System architecture design.....................................................................................................8! 2.! System requirement design ....................................................................................................8! •! Step 2 - System Development & Implementation: Bottom-ware software.................. 8! 1.! ALIX Board set up................................................................................................................8! 2.! Voyage OS Installation ..........................................................................................................8! 3.! DTN2 Installation and configuration on ALIX board ...........................................................8! 4.! DTN basic functionality test..................................................................................................8! •! Step 3 - System Deployment & Testing, part 1................................................... 9! 1.! DTN City & Village Verification ...........................................................................................9! 2.! Bytewalla Verification............................................................................................................9! •! Step 4 - System Development & Implementation: Middle-ware Software .................. 9! 1.! WSN/DTN Gateway Network configuration .......................................................................9! 2.! Apache Server installation and configuration .........................................................................9! 3.! PHP5 installation...................................................................................................................9! 4.! MySQL server installation and configuration.........................................................................9! 5.! Java and Ant Installation and configuration ...........................................................................9! 6.! Hald Installation..................................................................................................................10! 7.! SunSPOT Installation and configuration .............................................................................10! •! Step 5 - System Development & Implementation: Upper-ware Software ................. 10! 1.! WSN/DTN Gateway Core-Engine Sender development ....................................................10! 3
  4. 4. WSN/DTN Gateway Set up Procedure V1.1 ! 2.! WSN/DTN Gateway Core-Engine Receiver development..................................................10! 3.! WSN/DTN Gateway Webpage admin development ...........................................................10!•! Step 6 - System Deployment & Testing, part 2................................................. 11! 1.! Java Doc Documentation ....................................................................................................11! 2.! Installation Guide & User Manual .......................................................................................11! 3.! Verification Test..................................................................................................................11! 4.! WSN/DTN Gateway performance measurement................................................................11! 4
  5. 5. WSN/DTN Gateway Set up Procedure V1.1 ! SummaryThis document describes the complete procedure to set up an integrated WSN environment and DTNenvironment using specific configured WSN/DTN Gateway and existing Bytewalla. 5
  6. 6. WSN/DTN Gateway Set up Procedure V1.1 ! AbbreviationAbbreviations used in this document: Abbreviation Description DHCP Dynamic Address Allocation Protocol AP Access-Point Wi-Fi Trademark of a product based on IEEE 802.11 Apache HTTP Server PHP Hypertext Preprocessor, Server-side HTML embedded scripting language MySQL An Open source Relational database management system (RDBMS) DTN Delay Tolerant Network / Delay Disruptive Network ALIX Board Single board computer capable of running operating systems WSN Wireless Sensor Network DTN Delay Tolerant Network / Delay Disruptive Network Voyage Linux GNU/Linux derived distribution that is best run on a x86 embedded platforms Barkeley DB Software library that provides embedded database for key/value data Bytewalla Implementation of DTN in the Android platform. WPA Wi-Fi Protected Access Dnsmasq Lightweight version to configure DNS forwarder and DHCP server. JDK Java Development Environment Apache Ant XML-based build scripting language Hald HAL Daemon SunSPOT Embedded microprocessor that runs Java 6
  7. 7. WSN/DTN Gateway Set up Procedure V1.1 !1. IntroductionThis document contains step-by-step guideline to set up the WSN environment and WSN/DTN Gateway ofthe Condroid CSD project, so it can be integrated into existing Bytewalla DTN and any DTN nodes. 7
  8. 8. WSN/DTN Gateway Set up Procedure V1.1 !2. Set up Procedure• Step 1 - System Requirement & ArchitectureThe first step is to identify the stage for the future development. After the detailed study into this field, we havegot our basic idea of the whole system and how to achieve it. However, we need to clarify the whole systemand define each part of the system, hardware and software identification. We divided this Step into 2 parts:1. System architecture design In this part we will clarify the whole system and its components. This will become reference for coming developing teams and user to get the basic idea of the project.2. System requirement design As the project has specific requirement of the hardware, we need to provide this requirement for procurement as well as it will be needed by user to set up the system.Deliverable:System architecture and Requirement document• Step 2 - System Development & Implementation: Bottom-ware softwareIn this step, we start to set up the base of WSN/DTN Gateway work environment, which contain several partsof work:1. ALIX Board set up2. Voyage OS Installation3. DTN2 Installation and configuration on ALIX board In this task, we will install the decencies packages, which are required to set up the DTN2, then install the DTN2 software (Oasys, BarkeleyDB, DTN2) then configure it with dynamic configuration4. DTN basic functionality test In this task, we test that the basic functionality of DTN (simple DTN Bundle Send/Receive) works properly in the ALIX board environmentDeliverable:1. Voyage and DTN2 on ALIX Board Installation Guide2. DTN Bash shell script 8
  9. 9. WSN/DTN Gateway Set up Procedure V1.1 !• Step 3 - System Deployment & Testing, part 11. DTN City & Village Verification2. Bytewalla Verification In this task we will do verification test of Bytewalla in its its existing DTN environment (DTN City & Village server), which contains verification of Network architecture, Network components, Installation/configuration, Functionalities testing (ProPHET Protocol, Neighbor Discovery, Test application – SSA and Email, Network management tool)Deliverable:Bytewalla verification test Report• Step 4 - System Development & Implementation: Middle-ware Software1. WSN/DTN Gateway Network configuration In this task, we will configure WSN/DTN Gateway network Interfaces, including to set up the interface as DHCP client, WiFi-Access Point master mode with WPA and DHCP Server and IP address arrangement for DHCP server service.2. Apache Server installation and configuration As this WSN/DTN Gateway will consist of the webpage admin, this we have to set up web server. We use open-source Apache HTTP Server of this WSN/DTN Gateway.3. PHP5 installation We use PHP version 5 as the platform of WSN/DTN Gateway webpage admin that will be developed later.4. MySQL server installation and configuration To store the WSN sensor data, we will need a database, which will be accessed by the user both to view the data, to analyze and to distribute it. We use open-source MySQL as the database of this WSN/DTN Gateway.5. Java and Ant Installation and configuration The WSN/DTN Gateway Engine will be developed based on java, thus we will need to use set up the JDK, and Apache Ant to run, compile and control the java application both in the mote and base station. 9
  10. 10. WSN/DTN Gateway Set up Procedure V1.1 !6. Hald Installation HALD is a daemon that maintains a database of the devices connected to the system in real-time. The daemon connects to the D-Bus system message bus to provide an API that applications can use to discover, monitor and invoke operations on devices.7. SunSPOT Installation and configuration SunSPOT Manager is the most important part of the WSN/DTN Gateway Middleware. It is used for managing the Sun SPOT (SDK), including the mote and BS. However, we cannot use ordinary installation that is described in SunSPOT Manager Installation procedure for linux, since Voyage OS does not have GUI application. Thus we have to do some research and modification procedure on thatDeliverable:1. WSN Middleware Installation and Configuration Guide on ALIX Board2. WSN/DTN Gateway Nodes configuration• Step 5 - System Development & Implementation: Upper-ware Software1. WSN/DTN Gateway Core-Engine Sender development • Sensor data collection module from WSN mote(s), • Data Record module to MySQL database • Data compressing module. • DTN Bundle send module to other DTN node (Bytewalla)2. WSN/DTN Gateway Core-Engine Receiver development • DTN Bundle receive module from other DTN node (exp. Bytewalla) • Data uncompressing module • Data Record module to MySQL database with data redundancy checking3. WSN/DTN Gateway Webpage admin development • Control Module of the WSN/DTN Core-Engine (set the WSN/DTN Gateway as Sender or Receiver), • Data view module of the sensor data in table mode, • Analyze module graphical mode, • Distribute moduleDeliverable:WSN/DTN Gateway Software Architectur 10
  11. 11. WSN/DTN Gateway Set up Procedure V1.1 !• Step 6 - System Deployment & Testing, part 2In this task, we will have to make complete documentations, which is divided into 3 parts:1. Java Doc Documentation In this task, we will provide the complete Java doc for every methods and classes that are used in the code. This document can be reference to the coming developers.2. Installation Guide & User Manual In this task, we will provide the complete guidance on how to install the hardware and software and to use the application3. Verification Test In this task, we will do the verification test for all the features in the application and then documenting the result into verification test document.4. WSN/DTN Gateway performance measurement This task will be optional task, which include: Bandwidth usage, Power consumption, CPU load and memory footprint measurementDeliverable:1. Java Doc of the WSN/DTN Core-Engine2. WSN/DTN Gateway Installation Guide & User Manual document3. WSN/DTN Gateway Verification Test Report 11

×