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

Page 8

-post-init:

init:

-override-warning-find-spots:

-main-find-spots:

[echo] Using Sun SPOT device on port COM45

-do-find-spots:

slots:

-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 (1514-20060824) [java] SPOT serial number = 0014.4F01.0000.011D

[java] Application slot contents:

[java] 0: C:\arm9\BounceDemo-OnSPOT/suite/image (Thu Aug 24 12:51:22 BST 2006)

[java]

28196

bytes at 0x10140000

[java] 1: /home/Syntropy/SunSPOT/sdk-21Aug2006/tests/spottests/suite/image

(Thu Aug 24

16:39:14

BST 2006)

 

 

[java]

115452 bytes at 0x101a0000 (current)

 

 

 

[java] OTA Command Server is enabled

[java] Not ignoring application suite at startup

[java] Squawk startup command line:

[java] -Xmx:470000

[java] -Xmxnvm:128

[java] -isolateinit:com.sun.spot.peripheral.Spot

[java] -MIDlet-1

[java] Library suite hash:

[java] 0x50b227

[java] Exiting

[delete] Deleting: C:\SunSPOT\dev\temp\spot-temp-1808154274

info:

BUILD SUCCESSFUL

Total time: 3 seconds

C:\MyApplication>

If you don't see the expected output, try pressing the Sun SPOT’s control button.

You will notice that the communication port has been automatically detected (COM45 in this example). If you have more than one Sun SPOT detected, the ant scripts will present you with a menu of connected Sun SPOTs and allow you to select one.

You may not wish to use the interactive selection process each time you run a script. As an alternative, you can specify the port yourself on the command line:

ant -Dspotport=COM2 info

8

Image 8
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 applicationOther 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 Using short names for SPOTs Managing keys and sharing Sun SPOTsTake suitable actions during over-the-air downloads BackgroundChanging the owner of a Sun Spot Sharing Sun SPOTsWhat is protected? Deploying and running a host applicationGenerating a new key-pair LimitationsConfiguring network features Your own host applicationIncorporating 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 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 Shallow Sleep Conserving power using deep sleep modeMonitoring radio activity Activating deep sleep mode Deep SleepUSB inhibits deep sleep Preconditions for deep sleepingDeep sleep behaviour of the standard drivers Device Condition to permit deep sleepWriting a device driver Configuring the http protocol Http protocol supportConfiguring projects in an IDE Socket Proxy GUI modeDebugging Classpath configurationJavadoc/source configuration 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 Property name Meaning ReferencePersistent system properties Contents of the arm directory Contents of the lib directoryMemory usage Start address Space UseContents of the bin directory preverify.exe Contents of the upgrade directory Contents of the tests directory