Sun Microsystems V2.0 manual Total time 0 seconds \MyApplication

Page 11

-do-init:

-post-init:

init:

environment:

[java] To configure the environment for Squawk, try the following command:

 

 

[java]

set JVMDLL=C:\jdk1.5.0_06\jre\bin\client\jvm.dll

 

 

 

 

BUILD SUCCESSFUL

Total time: 0 seconds

C:\MyApplication>

6. Run the application. To run the application, use the “ant run” command.

C:\MyApplication>ant run

Buildfile: build.xml

-pre-init: -init-user: -init-system: -do-init:

-post-init:

init:

-override-warning-find-spots:

-main-find-spots:

[echo] Using Sun SPOT device on port COM45

-do-find-spots:

-pre-run:

-do-run:

-run-spotclient-with-optional-remoteId:

-run-spotclient-with-script-contents:

-run-spotclient:

[java] Waiting for target to synchronise...

[java] (please reset SPOT if you don't get a prompt)

[java] [waiting for reset]

[java] Sun SPOT bootloader (1321-20060816)

[java] SPOT serial number = 0014.4F01.0000.012E

[java] Squawk VM Starting (2006-08-16:13:21)...

[java] Detected hardware type eSPOT-P2

[java] PCTRL-1.67

[java] EDEMOBOARD_REV_0_2_0_0

[java] Starting OTACommandServer

[java] My IEEE address is 0014.4F01.0000.012E

[java] Registering protocol manager 'radiogram'

[java] Adding radiogram connection for Server on port 8

[java] Hello world!

11

Image 11
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 Background Using short names for SPOTsManaging keys and sharing Sun SPOTs Take suitable actions during over-the-air downloadsSharing Sun SPOTs Changing the owner of a Sun SpotLimitations What is protected?Deploying and running a host application Generating a new key-pairMesh routing Configuring network featuresYour own host application Incorporating pre-existing jars into your host applicationLogging 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 modeDevice Condition to permit deep sleep USB inhibits deep sleepPreconditions for deep sleeping Deep sleep behaviour of the standard driversWriting 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 Start address Space Use Contents of the arm directoryContents of the lib directory Memory usageContents of the bin directory preverify.exe Contents of the tests directory Contents of the upgrade directory