Friday, September 9, 2016

DGSerial: a serial port library for .NET

DGSerial is a serial port library for .NET.

It's a wrapper built on top of System.IO.Ports.SerialPort class. It adds some usefull methods to the default .NET library.
Some of them are the:
  • ReadBytes with a timeout
  • ReadBytesTo read until a byte, with an esape byte function and eventually a timeout
  • WriteBytes with timeout
Also a few Helpers are priveded like:

  • CRC8721, a CRC poly X^8 + X^7 + X^2 + 1 builder, for which there's also the ANSI C code
  • String to Byte and Byte to String methods

It is really a simple library.

Code & Binary

  • read risk disclaimer
  • excuse my bad english