![](/images/new-backgrounds/1311413/31141333x1.webp)
To configure the SPOT so that this thread is started each time the SPOT starts issue this command via a USB connection:
ant enableota
The SPOT remembers this setting in its configuration area in flash memory.
To configure the SPOT so that the OTA Command Server is not started each time the SPOT starts issue this command:
ant disableota
Although the OTA Command Server thread runs at maximum Thread priority, parts of the radio stack run at normal priority. This means that if an application runs continuously in parallel with the OTA Command Server, it should not run at a priority greater than normal, otherwise OTA Command Server commands may not be processed.
Connect a Sun SPOT base station
For details, see the section Using the Basestation.
Launch the spot client to control a remote Sun SPOT via the base station
To deploy an application use:
ant
To run the deployed application use:
ant
Unless the feature has been explicitly disabled, any output generated by the application using System.out or System.err will be redirected
spot.remote.print.disabled=true
In these commands, <IEEE_ADDRESS> is the
ant info
which will print the serial number, for example:
...
[java] Sun SPOT bootloader
[java] SPOT serial number = 0014.4F01.0000.02ED
...
It is also possible to specify which radio channel and pan id the base station should use to communicate with the remote SPOT. To do this, set the ant properties remote.channel and
2The streams are not forwarded to the host until handshaking is complete. As a result, any output generated by your application before this point will not be displayed. Handshaking is usually completed within 100ms of
17