Saturday, May 8, 2010

.NET API for Betabrite LED Message Display

I recently bought a used betabrite display. It has a remote control for easy programming of simple messages, but to be of any real interest I’d obviously need a library allowing programming via the serial port RS-232 interface.

I found Jeff Atwood’s library, described in an article on codeproject.com. It’s written for .NET 1.1, so I did some slight refactoring to ensure it would compile in VS2005+ and replaced the included class for serial communication with the built-in .NET 2.0+ support. Also implemented a few tweaks/fixes removing a few hardcoded values.

I got Jeff’s approval to put the updated code on googlecode. I initially committed Jeff’s original code, and then committed changes incrementally to ensure anyone can easily identify the changes made using SVN DIFF. I captured the list of enhancements/fixes in the Googlecode issue tracker (marked as done) and added a list of potential future improvements.

Feel free to request commit-status to the repo if you have enhancements.

Here are the details:

    4 comments:

    Anonymous said...

    Hello Sune,
    Just wanted to say thankyou to you and Jeff Atwood for all your work on this project. I have a Spectrum 4200c board which I have managed to communicate with, I am still unclear on how a few things work as I am not a programmer but will persevere. Thanks Again regards smithyc

    David said...

    How do you get this class working with the USB models?

    Sune Kaae said...

    @David; assuming you mean betabrite USB models, I really don't know. If the communication protocol is similar, then it'll probably make sense to amend/extend this code-base. Though, I'd imagine that they'll have evolved their spec by then - the betabrite I was playing with was waayyy before usb ;)

    Anonymous said...

    Adaptive have finally released a working set of .net examples including a USB driver. -Stonie

    http://www.adaptivedisplays.com/Documentation/questions.php?questionid=149