Project #2 Mobile Multiplayer Game: Tic-Tac-Toe Project #3 TinyOS Sensing Application EE194WIR Matt Magpayo [email protected] Project#2 Mobile Tic-Tac-Toe • Language: Java • Emulator: Nokia S60 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 TinyOS Sensing Application • Application: Light/Temperature Sensing • Language = NesC • Testing: TOSSIM • GUI: TinyViz, GraphViz 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 (0x0300 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/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 • ELSE use sensor code • SerialFowarder – Connects to TOSSIM • MOTECOM address = tossim-serial@localhost port:0 • Listens to Node 0 (base station) • Oscilloscope GUI – Extracts/Displays data received from SerialFowarder packets. – Allows graphing of multiple node data. TinyViz • 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?
© Copyright 2026 Paperzz