39
Sensor Network Deployment and Development Sun SPOT Paul Peng Deng

Issnip Presentation

Embed Size (px)

Citation preview

Page 1: Issnip Presentation

Sensor Network Deployment and

Development Sun SPOT

Paul Peng Deng

Page 2: Issnip Presentation

2

Agenda

• Sensor Network Analyzer– WSN characteristics– WSN deployment challenges– SNA introduction– Conclusion and future development

• Sun SPOT– What is Sun SPOT– Applications– A simple tutorial– Conclusion

Page 3: Issnip Presentation

3

Page 4: Issnip Presentation

4

Daintree /’dāāāāntr ēēēē’/ - rainforest, river and township in far north Queensland (Aus).

• Founded in 2003

• Leading provider of tools and platforms for development, management and operation of wireless embedded networks

• Located in Fremont, California• R&D Facilities in Melbourne,

Australia• Distributor in

key regions in Asia and Europe

Page 5: Issnip Presentation

5

WSN Characteristics

• Limited power, multi-hop communication• Ability to cope with node failures• Dynamic network topology• Communication failures• Heterogeneity of nodes• Large scale of deployment• …

Page 6: Issnip Presentation

6

WSN Deployment Challenges

“Development takes too long”

“Development takes too long”

“How do I integrate this network with my

enterprise?”

“How do I integrate this network with my

enterprise?”

“How do I install & commission my network?”

“How do I install & commission my network?”

“A network in the field stops working - how do I

run diagnostics?”

“A network in the field stops working - how do I

run diagnostics?”

“I want to add new features to networks in the field.”

“I want to add new features to networks in the field.”

“Some routes work better than others - I want my

networks to take advantage of these.”

“Some routes work better than others - I want my

networks to take advantage of these.”

“How do I manage security?”

“How do I manage security?”

Page 7: Issnip Presentation

7

WSN Deployment ChallengesPre-Deployment: Planning

• Buildings can have dozens to thousands of wireless devices.

• Placement, multi-path planning, interference testing, gateways-per-floor, subnets and install-BOM are all issues.

• Pre-test is often required to validate planning prior to on-site delivery

• “Network health” rules important to validate, once on-site, that network is well-constructed.

• Feedback of “real-world” data is valuable for future plans

Page 8: Issnip Presentation

8

WSN Deployment ChallengesDeployment: Commissioning

• Field personnel are rarely, if ever, experts in protocols.

• Needs to support both on-site (Laptop, PDA) and off-site (remote NOC) use cases.

• Needs to support mixed-mode (installer vs. provisioner)

• Test mode(s) necessary to validate install and “network health” rules.

• Must support both difficult-to-access and easy-to-access devices.

• Biggest Challenge: mapping device identity & location

Page 9: Issnip Presentation

9

WSN Deployment ChallengesPost-Deployment: Monitor

• Field/NOC personnel need easy red/yellow/green type monitoring visualization and diagnostic tools.

• Unobtrusive data gathering required to conserve battery.

• “Network Health” rules need to generate alarms when non-conformant.

• Remote Access critical for expert support, diagnostics.

• Multiple people/sites need to have visibility simultaneously.

• Need fairly rich set of diagnostic statistics.

Page 10: Issnip Presentation

10

WSN Deployment ChallengesPost-Deployment: Manage

• Devices have security models and so do people.

• Network performance may change due to new elements -dynamic management required.

• Device replacement needs to be easy while maintaining all of the existing-network setup.

• Devices are ideally self-locating and/or will advertise their location to field personnel.

• New device capability needs to be upload-able easily.

• Battery power needs to be maximized with dynamic info.

Page 11: Issnip Presentation

11

Sensor Network Analyzer

Page 12: Issnip Presentation

12

Overview

Industry’s most comprehensive solution for ZigBee™ and 802.15.4 testing, analysis, post development (commissioning, management, etc)– Extend traditional protocol analysis with powerful visual

network analysis.

– Multi-node capture for large and physically distributed networks.

– Ease of use features to accelerate troubleshooting tasks.

– Supports an extensive range of chipset evaluation boards/hardware.

– Committed to standard-based development and commissioning.

Page 13: Issnip Presentation

13

Analyze

• Gain complete information about your network

• Save time and effort– Find packets of interest quickly.– Full protocol decoding to the latest specs.– Security key auto-detection– Powerful filters to help search through many

thousands of packets.– Timeline view for rapid identification of events

of interest based on time.– Color coding for identification based on

protocol.

• Analyze new or custom application profiles

• Navigate and share large amounts of data

– Add breakpoints during live capture. Replay, step, fast forward to events of interest.

– Save and share capture files.– Save and restore an entire session.

Comprehensive Protocol Analysis. Packet lists, decodes and timelines, integrated with powerful filtering tools provide comprehensive packet-based analysis.

Page 14: Issnip Presentation

14

Visualize

• Obtain new perspective thru multiple network views/layout.

• Monitor the network– Find and examine devices using

discovery tools.– Obtain device types and states info.– Discover network both passively or thru

active analysis

• Customizable visual network layouts

• Analyze routing and application behaviors.

• Examine internal device information, and overlay different views for better device behavior analysis.

Visualization. Visual displays show network and device behavior. Here, a visual layout using a floor plan (above) and a radial tree view are used to observe the network.

Page 15: Issnip Presentation

15

Visual Measurements. Measurements can be shown on the visual displays. Here, the number of packets transmitted by devices and end-to-end latency on packet routes (1ms), are shown.

Measure

• For reliable networking, performance measurements are used to ensure network and device designs meet requirements.

• Measurements such as packet counts, packet delay, successful routes and packet losses provide important information about device reliability and network design.

• Daintree’s measurement systemprovides performance measurement information numerically and visually.

Numerical Measurements. Numerical measurements provide over 30 measurements in 4-20 different formats each. Here, the retransmission ratio, the number packets transmitted, packet throughput, end-to-end latency and packet loss are shown.

Page 16: Issnip Presentation

16

Commission

• Simplify configuration and commissioning during development and deployment/operation.

• Use the SNA as a commissioning tool, trust centre, router and end device.

• Commission start-up parameters (channel, security keys, etc.)

• Start/Join networks using ZigBee

• Discover overall network structure

• OTA device configuration and update.

Page 17: Issnip Presentation

17

Multi-node and Multi-channel Capture

• Multi-node capture– Simultaneously capture communication on same channel– Duplicated message filter out automatically– Nodes are distributed in large area

• Multi-channel capture– Multiple devices listen on different radio

channels– Multiple networks or frequency hopping

network

Page 18: Issnip Presentation

18

Future…support more protocols

• 6LoWPAN (IPv6 over Low power WPAN)

• TinyOS v1.x and v2.x• ISA100• WirelessHART (industrial plant applications)

• ……• Customize and decode your own protocol

through simple XML definition

Page 19: Issnip Presentation

19

Q&A

Page 20: Issnip Presentation

20

Sun SPOT

Page 21: Issnip Presentation

21

The Timeline of WSN

Microsoft: Smart Personal Objects TechnologySun: Small Programmable Object Technology

Page 22: Issnip Presentation

22

What is Sun SPOT• Embedded Development Platform

– Flexible hardware and software

• Easy to program – Java top to bottom– User programs the device entirely in Java – Using standard Java tools

• Connected – Wireless Communication– Mesh networking

– Over the Air Programming

• Mobile– Built in battery charged through USB

• Aware and Active– Able to sense and affect surroundings

• Secure– Built-in asymmetric cryptography

• Open Source– Software -- Hardware

Page 23: Issnip Presentation

23

Sun SPOT Hardware

Antenna

2.4 GHz IEEE 802.15.4 Radio Module

180 MHz 32 bit

ARM920T core512K RAM4M Flash

Daughter board connector

Power switch

USB interface with mini-B connector

Page 24: Issnip Presentation

24

Sun SPOT Hardware [cont.]

8 3-colors LEDs Switches

Light sensor 3-D

Accelerometer

Analog in 4-5

Replicated switches "High" current outputsDigital I/O

Digital I/O 0-3 Analog inputs

Temperature sensor andA/D converter

Page 25: Issnip Presentation

25

Sun SPOT Software

• Squawk Virtual Machine

– J2ME CLDC 1.1 (cellphone without display)

– Runs on bare metal (No OS)

– Designed for memory constrained devices

– Runs multiple applications (concurrently)

• IDE Supported– NetBeans, Eclipse, …… any IDE you familiar with

Page 26: Issnip Presentation

26

Applications

Page 27: Issnip Presentation

27

ApplicationsAutonomous Deployment

Page 28: Issnip Presentation

28

ApplicationsRobot

Page 29: Issnip Presentation

29

ApplicationsSwarms

Autonomous Light Air Vessels•Cell phone vibration motor to propel

•Roam around to find friend or seek food

•Spinning together

•Feed them

Page 30: Issnip Presentation

30

ApplicationsMike’s Flying Bike

Flying and Exercise!

Sun SPOT + Google Earth Flight Simulator

Page 31: Issnip Presentation

31

ApplicationsSPOTkin

Sun SPOT + Pumpkin?

Page 32: Issnip Presentation

32

My ProjectsGame Panel

Sun SPOT + Never Ball

Page 33: Issnip Presentation

33

My ProjectsVirtual Earth Controller

Sun SPOT + NASA World Wind

The earth is on your palm

Page 34: Issnip Presentation

34

My ProjectsGesture Recognition

Facts:1.Multi-attributes; 2. Data stream

Challenges:1.Recognition; 2. Segmentation

Solutions:1.Machine Learning; 2. Threshold+std dev

Accuracy: 17% ~ 97%

Page 35: Issnip Presentation

35

Simple TutorialGet Data From Sun SPOT

Sun SPOTsSun SPOTs

Sun SPOTBase StationSun SPOT

Base Station

PC(Processing)

PC(Processing)

Page 36: Issnip Presentation

36

Simple Tutorial [cont.]

Get Data From Sun SPOT

Sensor Side App:

private IAccelerometer3D accel = EDemoBoard.getInstance().getAccelerometer(); private ITemperatureInput tempSensor = EDemoBoard.getInstance().getADCTemperature(); private ILightSensor lightSensor= EDemoBoard.getInstance().getLightSensor();

String msg = String.valueOf(accel.getAccelX())+";"+ String.valueOf(accel.getAccelY())+";"+String.valueOf(accel.getAccelZ())+";"+ String.valueOf(tempSensor.getCelsius())+";"+ String.valueOf(lightSensor.getValue());

RadiogramConnection conn =(RadiogramConnection)Connector.open("radiogram://0014.4F01.0000.1455:100"); Datagram dg = conn.newDatagram(conn.getMaximumLength());dg.writeUTF(msg); conn.send(dg);conn.close();

9 lines of code!

Page 37: Issnip Presentation

37

Simple Tutorial [cont.]

Get Data From Sun SPOT

Host Side App:

RadiogramConnection conn = (RadiogramConnection) Connector.open("radiogram://:100"); Datagram dg = conn.newDatagram(conn.getMaximumLength());conn.receive(dg);

String rawData = dg.readUTF();System.out.println(rawData);conn.close();

DONE!

6 lines of code!

Page 38: Issnip Presentation

38

Conclusion

• Usage– Rapid prototype development– Experiment– Education

• Not ready for commercial deployment– Lacks support– Constraints (Battery)

• Future development– Get support from sensor providers like J2ME supported by

mobile phone companies– …

Page 39: Issnip Presentation

39

Paul Peng DengResearch Assistant

SUM Research LabCSSE University of Melbourne

Daintree Networks R&D

Thank you

November 14, 2008