Project 2 Mobile Multiplayer Game TicTacToe Project 3
Project #2 Mobile Multiplayer Game: Tic-Tac-Toe Project #3 Tiny. OS Sensing Application EE 194 WIR Matt Magpayo Matthew. magpayo@tufts. edu
Project#2 Mobile Tic-Tac-Toe • Language: Java • Emulator: Nokia S 60 prototype emulator – Multiple instances – Nokia Connectivity Framework • Short Message Service (SMS) communication
Implementation • • • Midlet format Game loop SMS Messagehandler
Screenshots
Screenshots (cont. )
Screenshots (cont. )
Project#3 Tiny. OS Sensing Application • Application: Light/Temperature Sensing • Language = Nes. C • Testing: TOSSIM • GUI: Tiny. Viz, Graph. Viz
Implementation • Sensor nodes and 1 Base Station • Sensor node – periodically takes light readings and sends a group of readings over radio to base station • Base Station – Forwards packets through serial port to PC • 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 (0 x 0300 or 768)
Routing Scheme • Base Station simply broadcasts a beacon packet. • Those who hear it – Set one hop neighbor as base station. – Broadcast beacon packet. • 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. • When routing, node forwards data to random neighbor out the its list.
Simulation • TOSSIM/Tiny. Viz Tiny. OS 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 • ELSE use sensor code • Serial. Fowarder – Connects to TOSSIM • MOTECOM address = tossim-serial@localhost port: 0 • Listens to Node 0 (base station) • Oscilloscope GUI – Extracts/Displays data received from Serial. Fowarder packets. – Allows graphing of multiple node data.
Tiny. Viz • Node 0 as base station. • “ADC Readings” Plug-in used to preset light data for testing. – Used Values 0 -700
Serial Forwarder • Read packets sent from Base Station (node 0)
Oscilloscope GUI • Preset Values • All motes seen • using channel 1 Possibility to add more data channels (ex. temp)
Questions?
- Slides: 14