Sun Microsystems V2.0 manual Contents of the upgrade directory, Contents of the tests directory

Page 54

Contents of the src directory: multihoplib_source.jar

sdproxylauncher_source.jar singlehoplib_source.jar

spotclient_source.jar spotlib_host_source.jar

spotlib_source.jar spotselector_source.jar

transducerlib_source.jar

Contents of the doc directory: spot-developers-guide.pdf

README.txt

javadoc

Source code for the radio communications stack.

Source code for the debugger proxy program.

Source code for the old single-hop-only radio communications stack.

Source code for the SpotClient program.

Source code for the Sun SPOT base library (the part that is specific to host applications).

Source code for the Sun SPOT base library.

Source code for the program that selects which SPOT to use with ant commands.

Source code for the Demo Sensor Board library.

This manual

A pointer to the index.html file in the SDK directory.

A sub-directory containing Javadoc for the Squawk base classes (a superset of the J2ME standard), the demo sensor board library and for the SPOT base library.

Contents of the upgrade directory:

demosensorboardfirmware.jar

Current version of the firmware for the eDemo board.

pctrlfirmware.jar

Current version of the firmware for the main board power

 

controller.

Contents of the tests directory:

 

spottests.jar

 

BasestationTests.jar

 

RadioStackTests.jar

 

The installer also creates a .sunspot.properties file and a sunspotkeystore folder in your user home directory (whose location is operating-system specific). The main purpose of

.sunspot.properties is to specify the location of the SDK itself, but you can edit

.sunspot.properties and insert user-specific property settings. Any such settings override settings

in an application's build.properties file and those in the default.properties file. sunspotkeystore

contains the public-private key pair used to sign library and application suites flashed onto your SunSPOTs (for more information, see the section Managing keys and sharing Sun SPOTs).

54

Image 54
Contents Page Page Contents Http protocol support Introduction Building and deploying Sun Spot applications Deploying and running a sample applicationBuild Successful Total time 3 seconds \MyApplication Ant -Dport=COM2 info Total time 4 seconds \MyApplication Total time 0 seconds \MyApplication Deploying a pre-existing jar Incorporating utility classes into your applicationManifest and resources Excluding files from the compilationOther user properties Using the Basestation Built-in propertiesOverview Set up Base Station configuration Remote operationIntroduction Connect a Sun Spot base station Take suitable actions during over-the-air downloads Using short names for SPOTsManaging keys and sharing Sun SPOTs BackgroundChanging the owner of a Sun Spot Sharing Sun SPOTsGenerating a new key-pair What is protected?Deploying and running a host application LimitationsIncorporating pre-existing jars into your host application Configuring network featuresYour own host application Mesh routingHardware configurations and USB power Trace routeLogging Page Overview of an application ThreadsThread priorities Sun Spot device libraries Sun Spot device libraryDevice Interface Persistent properties Accessing flash memory Overriding the Ieee addressUsart Radio communication library Program Radiogram protocol Client end Server endYou can open server radiogram connections in a similar way Broadcasting Radio properties Turning the receiver off and on Conserving power using deep sleep mode Monitoring radio activityShallow Sleep Activating deep sleep mode Deep SleepDeep sleep behaviour of the standard drivers USB inhibits deep sleepPreconditions for deep sleeping Device Condition to permit deep sleepWriting a device driver Configuring the http protocol Http protocol supportConfiguring projects in an IDE Socket Proxy GUI modeClasspath configuration Javadoc/source configurationDebugging Ant selectapplication Configuring NetBeans as a debug client Configuring Eclipse as a debug clientUsing library suites Advanced topicsWith adderlib as your current directory, execute the command Use the command Using the spot client SpotSerialPortException other exception in serial port comms Reference Persistent system propertiesProperty name Meaning Memory usage Contents of the arm directoryContents of the lib directory Start address Space UseContents of the bin directory preverify.exe Contents of the upgrade directory Contents of the tests directory