[link] 2008-05-30T23:38:37 Communicating with sunspots: I finally found that my SunSPOT manager wouldn't find its devices correctly because a shell script (!) that's supposed to gather the device names wasn't working on linux. Neither were two other alternative shell scripts I found in the forums, so I ported the best-looking one to python. Now it doesn't error, and it actually got a few lines shorter during the port. There's really no reason to write 75-line shell scripts when the target machine is a modern OS with the usual stuff (e.g. python) working. My prize for getting the device communication working was that I was able to run netbeans, open the AirText project, and deploy it to a sunspot. BTW, the demo code is over at https://spots-sdk-demos.dev.java.net/servlets/ProjectDocumentList, which was surprisingly hard to find. I really thought that when I was at Maker Faire, one of the Sun guys was saying "all the sunspot stuff is free and open, all the code, firmware, schematics, etc." But apparently that's not the case-- even the device manager code is still closed-source, which made it all the harder to figure out that a "StringIndexException: -1" was the tool's way of saying that it was choking on some extra stdout verbosity from my spotfinder python port, even though the comments in other spotfinder versions suggest that only the output on stderr matters.
![]() | Unless otherwise noted, all content licensed by Drew Perttula under a Creative Commons License. |