Architectures and Applications for Wireless Sensor Networks (01204525) Sensor Network Programming and MoteLib Simulator Chaiporn Jaikaeo

Slides:



Advertisements
Similar presentations
Quick Installation Guide for Hurricane8800P
Advertisements

© 2008 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice OpenVMS Guests Under HPVM Barry Kierstein.
Copyright 2014 Kenneth M. Chipps Ph.D. Software Defined Networking Lab Using Mininet and the POX Controller Last Update
Ad Hoc and Sensor Networks4/1 Ad Hoc and Sensor Networks Exercise 4 Sensor Network programming.
Slides created by: Professor Ian G. Harris PIC Development Environment MPLAB IDE integrates all of the tools that we will use 1.Project Manager -Groups.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.1 Module 6 Switch Configuration.
© 2004 Cisco Systems, Inc. All rights reserved. Operating and Configuring Cisco IOS Devices Starting a Switch INTRO v2.0—8-1.
BETTER INTERACTION FOR BETTER COMMUNICATION. A little preview of the PowerVote Quizz toolbar.
Chapter 11 Exploring Windows XP Vol. 1 Part One - Windows XP Professional: The Basics.
Accurate Emulation of Wireless Sensor Networks Hejun Wu Joint work with Qiong Luo, Pei Zheng*, Bingsheng He, and Lionel M. Ni Department of Computer Science.
Wireless Ad Hoc and Sensor Networks Lab5 2007/05/30.
7/13/2007AIIT Summer Course - D#1 Wireless Embedded Systems and Networking Lab Day 5: Part 1: TinyOS Programming on Open Source Distribution Jaein Jeong.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
SCHOOL OF ELECTRICAL AND COMPUTER ENGINEERING | SCHOOL OF COMPUTER SCIENCE | GEORGIA INSTITUTE OF TECHNOLOGY MANIFOLD Back-end Timing Models Core Models.
1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641.
1 Semester 2 Module 2 Introduction to Routers Yuda college of business James Chen
1 Semester 2 Module 3 Configuring a Router Yuda college of business James Chen
Thrive Installation.
Starting the switch Configuring the Switch
Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.
Architectures and Applications for Wireless Sensor Networks ( ) Sensor Node Programming II (UART and Radio) Chaiporn Jaikaeo
1 A System for Simulation, Emulation, and Deployment of Heterogeneous Wireless Sensor Networks Lewis Girod, Thanos Stathopoulos, Nithya Ramanathan, Jeremy.
Learningcomputer.com SQL Server 2008 Configuration Manager.
Introduction to Network Programming Asst. Prof. Chaiporn Jaikaeo, Ph.D. Computer Engineering Department.
FTP Client Application CSC 8560 Brian Jorgage 4/27/2004.
By Rashid Khan Lesson 10-From Here to There: Remote Installation of the Windows XP Professional Client.
Avaya Wireless Installation (hands-on). Hands-on tasks overview  Choice of the following (depending on type of system present). Multiple tasks allowed.
VirtualBox What you need to know to build a Virtual Machine.
1. Insert the Resource CD into your CD-ROM drive, click Start and choose Run. In the field that appears, enter F:\XXX\Setup.exe (if “F” is the letter of.
1 Installation When this module is complete, you will be able to:  Set a static IP address for your laptop  Install the snom ONE software  Navigate.
Wireless Embedded System ( x) Course Introduction Chaiporn Jaikaeo Department of Computer Engineering Kasetsart University.
Local Alarm Station Data Acquisition, Storage and Visualization for Radiation Portal Monitor (RPM).
Basic Router Configuration 1.1 Global configuration Cisco allows us to configure the router to support various protocols and interfaces. The router stores.
ENTC-489 Embedded Real Time Software Development Embedded Real Time Software Development Week 11 Design Examples.
L ILY P AD T RAINING C ENTENNIAL E LEMENTARY 2012 Material by Linz Craig Revision by Sarah Bloms Additional images by Modkit & Adam Meyer.
Architectures and Applications for Wireless Sensor Networks (204525) Sensor Node Programming Chaiporn Jaikaeo Department of Computer.
Slide 1 Project 1 Task 2 T&N3311 PJ1 Information & Communications Technology HD in Telecommunications and Networking Task 2 Briefing The Design of a Computer.
Connecting LANs, Backbone Networks, and Virtual LANs : Data Communication and Computer Networks Asst. Prof. Chaiporn Jaikaeo, Ph.D.
Linux services troubleshooting. If you cannot connect to your service.. When you start service, check that it says ok (most services say that when starting.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 2: Introduction to Switched Networks Routing And Switching 2.0.
RT-LAB Electrical Applications 1 Opal-RT Technologies Use of the “Store Embedded” mode Solution RT-LAB for PC-104.
IMetos Wireless sensor Networks. Definitions I : Radio WAP(W ireless A ccess P oint ) The WAP is the radio interface needed to command the iMetos3 radio.
CCNA2 Chapter 2 Cisco IOS Software. Cisco’s operating system is called Cisco Internetwork Operating System (IOS) IOS provides the following network services:
1. 2 INDEX MAIN DISPLAYS3-4 SYSTEM LAYOUT 5-6 ROOM P-109 DISPLAY7 ROOM P-108 DISPLAY8 ROOM P-107 DISPLAY 9 ROOM P-106 DISPLAY 10 ROOM P-105 DISPLAY 11.
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
Sem 2v2 Chapter 5 Router Startup and Setup. A router initializes by loading the bootstrap, the operating system, and a configuration file. If the router.
Final Presentation Smart-Home Smart-Switch using Arduino
Instructor Materials Chapter 8 Configuring Cisco Devices
2007/11/16 Dinh Trong Thuy RTLab
6. The Open Network Lab Overview and getting started
Lec 3: Introduction to Switched Networks
Java on the LEGO Mindstorms EV3
Router Startup and Setup
Chapter 5: Switch Configuration
Brother Printer Support Helpline Number Ireland:
Introduction to Networking
Connecting hardware and Booting the computer
Chapter 2: Introduction to Switched Networks
Chapter 2: Introduction to Switched Networks
Chapter 5: Switch Configuration
Chapter 5: Switch Configuration
Radoslaw Jedynak, PhD Poland, Technical University of Radom
OS Sim (Operating System Concepts Simulator)
Developing different types of Motes in WSN
Network Models CCNA Instructor Training Course October 12-17, 2009
Router Startup and Setup
Discrete-Event Simulation and Performance Evaluation
Course Orientation Chaiporn Jaikaeo
LEGO Education - Mindstorms EV3 - Computer/control center – The Brick
Presentation transcript:

Architectures and Applications for Wireless Sensor Networks ( ) Sensor Network Programming and MoteLib Simulator Chaiporn Jaikaeo Department of Computer Engineering Kasetsart University

2 Outline Network programming with MoteLib Network programming with MoteLib MoteSim – MoteLib's Simulator MoteSim – MoteLib's Simulator

3 Mote and Network Emulator Virtual Mote

4 Mote and Network Simulation Motes are modeled with standard C program Motes are modeled with standard C program  Exact same code as used for the actual hardware Network is modeled with Python program Network is modeled with Python program from motesim import Simulator, Mote MOTEAPP = 'build/sim/count-radio.elf' sim = Simulator() sim.addNode(Mote(MOTEAPP), (100,100)) sim.addNode(Mote(MOTEAPP), (200,100)) sim.run()

5 Creating Executable for Simulator Executable for simulator can be built by running Executable for simulator can be built by running  Executable will be stored under build/sim directory make PLATFORM=sim

6 Modeling Network Network is modeled with Python Network is modeled with Python Make sure the following directories are part of PYTHONPATH Make sure the following directories are part of PYTHONPATH Try the following program sim-blink.py Try the following program sim-blink.py  Can be found in examples/ directory $MOTELIB_DIR/platforms/sim/python $MOTELIB_DIR/lib/python from motesim import Simulator, Mote sim = Simulator() sim.addNode(Mote('build/sim/blink.elf'), (100,100)) sim.addNode(Mote('build/sim/blink.elf'), (200,100)) sim.run()

7 Virtual Mote Creation Virtual mote object can be instantiated from class Virtual mote object can be instantiated from class Mote Each virtual mote instance must be added to the simulation using method Each virtual mote instance must be added to the simulation using addNode method from motesim import Simulator, Mote sim = Simulator() m1 = Mote('build/sim/blink.elf') m2 = Mote('build/sim/count.elf') sim.addNode(m1, (100,100)) sim.addNode(m2, (200,100)) sim.run() Create a mote running 'blink' app Create a mote running 'count' app Add m2 to the simulation at position (200,100)

8 Enabling Python Console IPython is recommended for better interaction IPython is recommended for better interaction from motesim import Simulator, Mote sim = Simulator() sim.addNode(Mote('build/sim/blink.elf'), (100,100)) sim.addNode(Mote('build/sim/blink.elf'), (200,100)) sim.run(script=sim.console) $ sudo apt-get install ipython

9 Accessing Node Objects Node objects are stored in the node list inside object Node objects are stored in the node list inside sim object >>> n = sim.nodes[2] >>> dir(n)

10 Turning Node On and Off Node can be turned off using method Node can be turned off using shutdown() method method turns node back on boot() method turns node back on >>> sim.nodes[3].shutdown() >>> sim.nodes[3].boot()

11 Emulating Button Button pressing can be emulated by two methods: Button pressing can be emulated by two methods:   pressButton()   releaseButton() >>> n = sim.nodes[3] >>> n.pressButton() >>> n.releaseButton()

12 Emulating UART Node's UART interface can be emulated via TCP socket Node's UART interface can be emulated via TCP socket  Not activated by default  Use inside node's object to activate  Use activateSocket() inside node's uart object to activate >>> n = sim.nodes[3] >>> n.uart.activateSocket() (' ', 32345) >>> Listening port $ telnet localhost Trying Connected to 0. Escape character is '^]'. ^] telnet> mode c switch to character mode

13 Exercise: Voting Machine Reimplement the wireless voting application Reimplement the wireless voting application  Allow user to cast a vote using the USER button  Voting choices are: Red (1), Yellow (2), Green (3), or No Vote (0)  When the USER button is pressed,  Set LED status accordingly  Report current vote to the base station (#0) with message type 50  Integrate base station functionality into your app

14 Exercise (cont'd) Create a virtual network with 5 nodes Create a virtual network with 5 nodes  Activate UART at base station (node #0)  Telnet to the open port  Emulate button pressing at other nodes