Sun Microsystems V2.0 Welding System User Manual


 
44
where xxxx is the id of the SPOT running the application being debugged and yyyy is the id
of your base station. Note that xxxx can be a short name, as described in the Remote
section, but yyyy cannot. If you regularly use the same basestation you can define the
basestation.addr property in the .sunspot.properties file in your user root folder and then
omit it from the command line.
The SPOT will be restarted with the SDA running; your application will not start. Then the
SDP will be started and will communicate with the SPOT. This takes a few seconds. The
output should look something like this:
C:\arm9\AirText>ant debug -DremoteId=spot1
Buildfile: build.xml
. . .
-main-find-spots:
[echo] Using Sun SPOT basestation on port COM7
. . .
-run-spotclient:
[java] My IEEE address is 0000.0000.0000.0001
[java] Waiting for target to synchronise...
[java] (please wait for remote SPOT spot1 to respond)
[java] (if no response ensure SPOT is running OTACommandServer)
[java] Remote Monitor (1443-20060717)
[java] SPOT serial number = 0014.4F01.0000.0080
[java] Writing Configuration(1080 bytes) to remote Spot
[java] ............
[java] Exiting
[delete] Deleting: C:\SunSPOT\dev\temp\spot-temp-1157051385
. . .
-do-debug-proxy-run:
[java] Starting hostagent...
[java] My IEEE address is 0000.0000.0000.0001
[java] Done starting hostagent
[java] Trying to connect to VM on radio://spot1:9
[java] Established connection to VM (handshake took 62ms)
[java] Waiting for connection from debugger on serversocket://:2900
5. Start a remote debug session using your preferred debug client. The process for doing this
varies from client to client, but you need to use a socket connection on port 2900. When the
connection from the debug client to the SDP is closed at the end of the debug session the
SDP will exit and return to the command prompt. Output generated by the application using
System.out
or
System.err
will be displayed in the proxy window.
6. To take the remote SPOT out of debug mode so that it just runs your application do:
ant selectapplication
Limitations
The current version of the debugger has some limitations that stem from the fact that when using
the debugger, the application runs in a child isolate.