Tesugen

Beaming stuff

Since I got my new cellphone (lunar grey) I’ve been toying with a project in my spare time, writing an app to sync stuff over IR. It’s been an interesting challenge to do this test-first.

First, I came to the conclusion that the design on the protocol level must match the entities in the protocol specification, which is a set of AT commands on the one hand, and the IrOBEX binary protocol on the other.

In the layers above the protocol layer, I’m free to plunge ahead doing test-first programming as usual, and my spike has yielded in a design which centers around a Communicator class, which has a Device it speaks to. The Communicator encapsulates a state machine and is has methods for initiating dialogs with the cellphone, and whenever a result is received (or it times out) it notifies its owner by callback.

I’m pleased with this design and I hope I will have time to continue writing this app. There are very few apps available for this.

The above was posted to my personal weblog on March 22, 2002. My name is Peter Lindberg and I am a thirtysomething software developer and dad living in Stockholm, Sweden. Here, you’ll find posts in English and Swedish about whatever happens to interest me for the moment.

Posted around the same time:

The seven most recent posts:

  1. Tesugen Replaced (October 7)
  2. My Year of MacBook Troubles (May 16)
  3. Tesugen Turns Five (March 21)
  4. Gustaf Nordenskiöld om keramik kontra kläddesign (December 10, 2006)
  5. Se till att ha två buffertar för oförutsedda utgifter (October 30, 2006)
  6. Bra tips för den som vill börja fondspara (October 7, 2006)
  7. Light-Hearted Parenting Tips (September 16, 2006)
Bloggtoppen.se