Sometimes I make some stupid mistakes. Lately, I chalk that up to working too late at night at this SunSPOT stuff. However, after a full "engineer" work day, there's little time left but late at night to do anything.
SpotClientCommands holds all the commands available in a SpotClient, and provides a means for the execution of these commands whether the SPOT is PC-tethered or out in the wireless wild. The details of my inquiry can be found here. Notice, someone posted a link to a good project-sized examples of how SpotClientCommands is used to create a SPOT shell.
I took a few important lessons from this problem:
1) SpotClientCommands has two different constructors (as of the blue SDK). The first, with 6 arguments, commands directly-connected SPOTs. The second, with 8 arguments, commands SPOTs wirelessly over a basestation.
2) The OTA command server must be enabled on the free range SPOTs and disabled on the basestation.
3) It's safest to execute these commands on a SPOT with the out-of-the-box dummy application installed, but others will work as long as they do not enter deep sleep.
4) Before you can execute any command except for the "hello" command, you must execute the "synchronize" command. SpotClientCommands.execute("synchronize");
Subscribe to:
Post Comments (Atom)
1 comment:
I wonder if you can help me...
I took out from the closet my old SPOT from Oct 2006.
I am trying to making to work with latest tools on Win7.
I seems that some functionality works fine but there are issues. When I tried to update the COM# are unavailable.
I wonder how can I get through it.
Thank you in advance
jD
Post a Comment