Presentation is loading. Please wait.

Presentation is loading. Please wait.

Project #2 Mobile Multiplayer Game: Tic-Tac-Toe Project #3 TinyOS Sensing Application EE194WIR Matt Magpayo

Similar presentations


Presentation on theme: "Project #2 Mobile Multiplayer Game: Tic-Tac-Toe Project #3 TinyOS Sensing Application EE194WIR Matt Magpayo"— Presentation transcript:

1 Project #2 Mobile Multiplayer Game: Tic-Tac-Toe Project #3 TinyOS Sensing Application EE194WIR Matt Magpayo Matthew.magpayo@tufts.edu

2 Project#2 Mobile Tic-Tac-Toe Language: Java Language: Java Emulator: Nokia S60 prototype emulator Emulator: Nokia S60 prototype emulator –Multiple instances –Nokia Connectivity Framework Short Message Service (SMS) communication Short Message Service (SMS) communication

3 Implementation Midlet format Midlet format Game loop Game loop SMS Messagehandler SMS Messagehandler

4 Screenshots

5 Screenshots (cont.)

6

7 Project#3 TinyOS Sensing Application Application: Light/Temperature Sensing Application: Light/Temperature Sensing Language = NesC Language = NesC Testing: TOSSIM Testing: TOSSIM GUI: TinyViz, GraphViz GUI: TinyViz, GraphViz

8 Implementation Sensor nodes and 1 Base Station Sensor nodes and 1 Base Station Sensor node Sensor node –periodically takes light readings and sends a group of readings over radio to base station Base Station Base Station –Forwards packets through serial port to PC Led Module used Led Module used –yellow LED is toggled when new packet sent –red LED is on when the light sensor reading is above some constant value (0x0300 or 768)

9 Routing Scheme Base Station simply broadcasts a beacon packet. Base Station simply broadcasts a beacon packet. Those who hear it Those who hear it –Set one hop neighbor as base station. –Broadcast beacon packet. Those who hear that Those who hear that –Add to list of all neighbors who have path to base station –Broadcast beacon packet. Etc…Tree network topology is created. Etc…Tree network topology is created. When routing, node forwards data to random neighbor out the its list. When routing, node forwards data to random neighbor out the its list.

10 Simulation TOSSIM/TinyViz TinyOS simulator TOSSIM/TinyViz TinyOS simulator –Normally allows simulation of only ONE type of application. –Fix: Make code dependant upon the local address of node. IF TOS_LOCAL_ADDRESS = 0, use base station code IF TOS_LOCAL_ADDRESS = 0, use base station code ELSE use sensor code ELSE use sensor code SerialFowarder SerialFowarder –Connects to TOSSIM MOTECOM address = tossim-serial@localhost port:0 MOTECOM address = tossim-serial@localhost port:0 Listens to Node 0 (base station) Listens to Node 0 (base station) Oscilloscope GUI Oscilloscope GUI –Extracts/Displays data received from SerialFowarder packets. –Allows graphing of multiple node data.

11 TinyViz Node 0 as base station. Node 0 as base station. “ADC Readings” Plug-in used to preset light data for testing. “ADC Readings” Plug-in used to preset light data for testing. –Used Values 0-700

12 Serial Forwarder Read packets sent from Base Station (node 0) Read packets sent from Base Station (node 0)

13 Oscilloscope GUI Preset Values Preset Values All motes seen using channel 1 All motes seen using channel 1 Possibility to add more data channels (ex. temp) Possibility to add more data channels (ex. temp)

14 Questions?


Download ppt "Project #2 Mobile Multiplayer Game: Tic-Tac-Toe Project #3 TinyOS Sensing Application EE194WIR Matt Magpayo"

Similar presentations


Ads by Google