Sensor Module Mamma Sim 695430070 Outline n Introduction

  • Slides: 31
Download presentation
Sensor Module - Mamma. Sim 李俊廷 695430070

Sensor Module - Mamma. Sim 李俊廷 695430070

Outline n Introduction n Motivation n Sensor module (Manna. Sim) n Extension

Outline n Introduction n Motivation n Sensor module (Manna. Sim) n Extension

Outline n Introduction n Motivation n Sensor module (Manna. Sim) n Extension

Outline n Introduction n Motivation n Sensor module (Manna. Sim) n Extension

Introduction n Wireless Sensor Network (WSN), an emerging technology comprising of sensing, computing, and

Introduction n Wireless Sensor Network (WSN), an emerging technology comprising of sensing, computing, and internetworking, was nominated as one of the ten most potential technologies changing our world by MIT technology Review. A WSN tends to be composed of hundreds or thousand of sensor nodes, which are launched over an environment to form a wireless ad hoc network. The goal of a WSN is to monitor and sometimes to control an environment.

Wireless Sensor Nodes

Wireless Sensor Nodes

Ubiquitous

Ubiquitous

Outline n Introduction n Motivation n Sensor module (Manna. Sim) n Extension

Outline n Introduction n Motivation n Sensor module (Manna. Sim) n Extension

Wireless multimedia sensor networks n Is it feasible ? n High bandwidth demand n

Wireless multimedia sensor networks n Is it feasible ? n High bandwidth demand n Power consumption n Application-specific Qo. S requirements n Ex: picture, media stream, real-time … n Multimedia coverage n Integration with other wireless technologies n …

WSN is application-specific 小 大 高 低

WSN is application-specific 小 大 高 低

Wireless multimedia sensor networks n If it is feasible. n Task scheduling n In-network

Wireless multimedia sensor networks n If it is feasible. n Task scheduling n In-network processing n Multimedia source coding techniques n …

Scenario Internet ?

Scenario Internet ?

Outline n Introduction n Motivation n Sensor module (Manna. Sim) n Extension

Outline n Introduction n Motivation n Sensor module (Manna. Sim) n Extension

Why Manna. Sim ? n n 安裝簡單 提供 Script Generator Tool 自動產生TCL程式碼 (use Java,

Why Manna. Sim ? n n 安裝簡單 提供 Script Generator Tool 自動產生TCL程式碼 (use Java, like ns. Bench) n 有提供 flat 跟 hierarchical 的網路架構 n 容易擴充

Downloading and installing Manna. Sim Framework n The Manna. Sim Framework is provided in

Downloading and installing Manna. Sim Framework n The Manna. Sim Framework is provided in two flavors : n ns-2. 29 Patch n Manna. Sim Source Code

ns-2. 29 Patch n 1. This is the simplest way to install Mannasim in

ns-2. 29 Patch n 1. This is the simplest way to install Mannasim in an unmodified ns-2. 29 distribution. Get ns-2. 29 all-in-one package from ns site. http: //sourceforge. net/project/showfiles. php? group_id=149743&package_id=169689&re lease_id=371538 2. Get Manna. Sim Framework ns-2. 29 patch. http: //www. mannasim. dcc. ufmg. br/download/mannasim-patch-ns 2. 29. tar. gz 3. Type the following command on the ns-allinone-2. 29 folder: patch -p 1 < mannasim-patch. diff 4. Install ns-2. 29 as usual typing ns-allinone-2. 29 folder: . /install

Manna. Sim Source Code n This version is intended for users whose NS-2. 29

Manna. Sim Source Code n This version is intended for users whose NS-2. 29 distribution has already been changed. 1. Get ns-2. 29 all-in-one package from ns site. 2. Get Manna. Sim Framework tar. gz file. http: //www. mannasim. dcc. ufmg. br/download/mannasim-src-ns 2. 29. tar. gz 3. Unpack the tar. gz file into ns-2. 29 main folder (if using ns all-in-one distribution ns-allinone-2. 29/ns-2. 29 folder). Inside mannasim/ folder just created look for a ns-modifiedfiles/ folder. where ns-2. 29 modified files are stored.

Manna. Sim Source Code Substitue ns-2. 29 files listed bellow by it's Manna. Sim

Manna. Sim Source Code Substitue ns-2. 29 files listed bellow by it's Manna. Sim version stored in ns-modified-files/ folder in mannasim/ directory. 4. n n n n 5. (con. ) ns-2. 29/apps/udp. cc ns-2. 29/common/ns-process. h ns-2. 29/common/packet. cc ns-2. 29/common/packet. h ns-2. 29/mac-802_11. cc ns-2. 29/tcl/lib/ns-lib. tcl ns-2. 29/tcl/lib/ns-default. tcl ns-2. 29/Makefile. in In ns-2. 29 main folder re-run configuration script and then recompile the system: . /configure. /make

Install problem n Manna. Sim 附的 mac-802_11. cc 可能有問題,如果安 裝失敗,用原始的 mac-802_11. cc 覆蓋過去,再重新 make

Install problem n Manna. Sim 附的 mac-802_11. cc 可能有問題,如果安 裝失敗,用原始的 mac-802_11. cc 覆蓋過去,再重新 make This code permits that MAC still uses backoff in the case of MAC idles and broadcasting. void Mac 802_11: : send(Packet *p, Handler *h) { Guarantee in an On Demand network. . . simulation the sensor nodes don't loose if(mh. Backoff_. busy() == 0) { broadcast messages. if(is_idle()) {. . . if((u_int 32_t)ETHER_ADDR(dh->dh_ra) == MAC_BROADCAST){ mh. Backoff_. start(cw_, is_idle()); }else{ if(mh. Defer_. busy() == 0) { r. Time = (Random: : random() % cw_) * (phymib_. get. Slot. Time()); mh. Defer_. start(phymib_. get. DIFS() + r. Time); }. . .

Manna. Sim Scripts Generator

Manna. Sim Scripts Generator

Next test n Install Manna. Sim n 利用 Scripts Generator 產生 tcl n 執行

Next test n Install Manna. Sim n 利用 Scripts Generator 產生 tcl n 執行 tcl 是否成功

Manna. Sim classes n Sensor Node n On. Demand. Data n Data. Generator n

Manna. Sim classes n Sensor Node n On. Demand. Data n Data. Generator n On. Demand. Parameter n Temperature. Data. Generator n Sensor. Base. App n Temperature. App. Data n Common. Node. App n Processing n Cluster. Head. App n Sensed. Data

Important Class n Sensor Node Class n n It extends NS-2 Mobile. Node class

Important Class n Sensor Node Class n n It extends NS-2 Mobile. Node class adding specific sensor nodes characteristics as power consumption for sensing and processing activities. Data. Generator Class n With methods to adjusts sensing interval and sensing type. n n Type : PROGRAMED、CONTINUOUS、ON_DEMAND、EVENT_DRIVEN Temperature. Data. Generator and Carbon. Monoxide. Data. Generator inherit Data. Generator class.

Important Class n Battery Class n n n (con. ) It extends NS-2 Energy.

Important Class n Battery Class n n n (con. ) It extends NS-2 Energy. Model class. The class contains methods to turn sensor node on and off, put it into sleep and wake it up. Also contains methods to decrease energy when a sensing, processing or disseminating job is performed by the sensor node. Sensed. Data Class n n n It acts as dissemination message for processed data witch is stored in a data buffer. The class provides networking information such as source node identification, message type, message priority among others. On. Demand. Data inherit Sensed. Data

Outline n Introduction n Motivation n Sensor module (Manna. Sim) n Extension

Outline n Introduction n Motivation n Sensor module (Manna. Sim) n Extension

Extension n 將簡單環境擴展到複雜環境 Intern et Internet

Extension n 將簡單環境擴展到複雜環境 Intern et Internet

Extension n (con. ) 加入 real-time scheduling n n Techniques for allocating and scheduling

Extension n (con. ) 加入 real-time scheduling n n Techniques for allocating and scheduling tasks on processors to ensure that deadlines are met. Ex: rate-monotonic (RM) scheduling algorithm、earliest deadline first (EDF) algorithm …

Eval. Vid l Source (video raw data) l VS (Video Sender) l ET (Evaluate

Eval. Vid l Source (video raw data) l VS (Video Sender) l ET (Evaluate Trace) l FV (Fix Video) l PSNR