Sun Microsystems V2.0 manual Introduction

Page 5

Introduction

The purpose of this guide is to aid developers of applications for Sun SPOTs. The guide is divided into two sections.

Building and deploying Sun SPOT applications provides information about how to build, deploy and execute Sun SPOT applications. The topics covered include:

Building and deploying simple applications

Deploying applications you’ve received as jars from other developers

Including properties and external resources through the manifest

Setting up a base station to communicate with physically remote Sun SPOTs via the radio

Using the base station to deploy and execute applications on remote Sun SPOTs

Building and running your own application running on the host machine that communicates, via the base station, with remote Sun SPOTs

Managing the keys that secure your Sun SPOTs against unauthorised access

Sharing keys to allow a workgroup to share a set of Sun SPOTs.

Developing and debugging Sun SPOT applications provides information for the programmer. This includes

A quick overview of the structure of Sun SPOT applications

Using the Sun SPOT libraries to

oControl the radio

oRead and write persistent properties

oRead and write flash memory

oAccess streams across the USB connection

oUse deep sleep mode to save power

oAccess http

Debug applications

Configure your IDE

Modify the supplied library

Write your own host-side user interface for controlling Sun SPOTs

This guide does not cover these topics:

The libraries for controlling the demo sensor board

Installation of the SDK.

5

Image 5
Contents Page Page Contents Http protocol support Introduction Deploying and running a sample application Building and deploying Sun Spot applicationsBuild Successful Total time 3 seconds \MyApplication Ant -Dport=COM2 info Total time 4 seconds \MyApplication Total time 0 seconds \MyApplication Incorporating utility classes into your application Deploying a pre-existing jarOther user properties Manifest and resourcesExcluding files from the compilation Overview Using the BasestationBuilt-in properties Set up Introduction Base Station configurationRemote operation Connect a Sun Spot base station Managing keys and sharing Sun SPOTs Using short names for SPOTsTake suitable actions during over-the-air downloads BackgroundSharing Sun SPOTs Changing the owner of a Sun SpotDeploying and running a host application What is protected?Generating a new key-pair LimitationsYour own host application Configuring network featuresIncorporating pre-existing jars into your host application Mesh routingLogging Hardware configurations and USB powerTrace route Page Thread priorities Overview of an applicationThreads Device Interface Sun Spot device librariesSun Spot device library Persistent properties Overriding the Ieee address Accessing flash memoryUsart Radio communication library Program Radiogram protocol Server end Client endYou can open server radiogram connections in a similar way Broadcasting Radio properties Turning the receiver off and on Shallow Sleep Conserving power using deep sleep modeMonitoring radio activity Deep Sleep Activating deep sleep modePreconditions for deep sleeping USB inhibits deep sleepDeep sleep behaviour of the standard drivers Device Condition to permit deep sleepWriting a device driver Http protocol support Configuring the http protocolSocket Proxy GUI mode Configuring projects in an IDEDebugging Classpath configurationJavadoc/source configuration Ant selectapplication Configuring Eclipse as a debug client Configuring NetBeans as a debug clientAdvanced topics Using library suitesWith adderlib as your current directory, execute the command Use the command Using the spot client SpotSerialPortException other exception in serial port comms Property name Meaning ReferencePersistent system properties Contents of the lib directory Contents of the arm directoryMemory usage Start address Space UseContents of the bin directory preverify.exe Contents of the tests directory Contents of the upgrade directory