onsdag 27 februari 2008

Communication Wednesday

Today was a day about communication on several levels. One half of the group worked on communicating the project ideas to other people (the presentation) and the other half worked on getting devices to communicate to each other.

I was in the half that tried to find a good way to get the information out of the Sun SPOT and into a separate Java application. At first I had a hard time to figure out how this whole SPOT thing worked. I based my work on the demo application SunSpotHostApplication and tried to get sounds and other things (generics) to work, but quickly ran into several problems as that whole demo actually runs ON the base station SPOT using java microedition. After wasting an hour or so on trying to understand the collection of ANT build scripts that the demos uses, I asked Cristi about it and he purposed the solution that we ended up on [illustrated below].



The communication model for extracting the data from the bagged SPOT. In retro-perspective i feel that we should just have gone with the serial communication (or the Arduino ;)) despite having to get a pretty long USB cable.

The software work today was divided into three parts. Jesper put together a class that should handle the playing of the sound files. David worked on programming the SPOTs (the bagged SPOT and the base station). I was in charge of writing game logic. As my work depended on both Davids and Jespers, today was mostly a day to understand how things worked before putting them together. I spent the late hours of the day at home writing the application (using an emulator for the bag). I feel pretty comfortable with how things are going and I think we'll definitely finish in time.

The other half of the group worked hard on the presentation the whole day. At the end of the day they even found time to put design a logo for the BeatBox!