This code is to work with serial interface using C#
http://www.dreamincode.net/forums/showtopic35775.htm