Friday, June 13, 2008

Sun SPOT Development TroubleShooting

Problem:Applications can NOT run on a SPOT.
Solution:
1) To turn on or off OTA mode by "ant enableota" or "ant disableota"

2) To specify the main class as MIDlet-1 in MANIFEST.MF


Problem:Applications die and can NOT reset the SPOT.
Solution:
1)To execute the command "ant -Dport=COMn slots" to detect the SPOT
COMn : the port connected your SPOT
You can check the troubleshooting part of Sun SPOT User's Guide

2)To reboot your computer


Problem: Base Station SPOT does NOT response.
Solution:
1)To unplug the base station SPOT and connect with it by USB cable again.
2)To execute command "ant selectbasestation"

Problem: Can't use the Console to run a host application
1. To attach require jars' path to the current classpath
2. To enable the base station by executing the command "ant selectbasestation"
3. To run "ant host-run"

Updating...