SUNSpot Troubles

SunSPOTs where a cool IoT hardware from SUN/Oracle that ran JavaME. They are now dead, but this may help some that catch them again.

Some issues I had with the SunSpot and some work arounds.

Erasing the flash

If by any chance the flash is erased (either using the FlashFile.delete() or the IFlashMemoryDevice.eraseChip() (not sure on the last one as I did the previous boo) you can restore the libraries by re-upgrading the Spot: ant upgrade

USB connection turned off

If you disconnected the USB connection (see here) and didn’t reset it on the destroyApp(boolean) call, you can (from the Spot Forum):

Try doing “ant info” again (your step 5) but use -Dport (not -Dspotport). Also start with the SPOT not connected via USB & powered down. When you see the message “SPOT Client starting…” & “Port xxx unavailable…” then plug in your SPOT. See if that works.

What you need to do is have your computer looking for the SPOT on the correct COM port and then plug in the SPOT so that it resets and boots up. Sometimes it takes a few tries.

It did work in my case (after I disconnected the USB port… ).

USB Driver lost

If by any chance the USB driver is lost from the windows directory you can:

  1. Go to the SunSpot CD
  2. Extract \.SDK\sunspot-sdk.jar
  3. Use the .inf on the sdk\windows dir
Previous