This project is read-only.

Serial Port Wrapper Lib v1.0.0.0 in C Sharp

Rating: No reviews yet
Downloads: 690
Change Set: 25159
Released: Sep 12, 2013
Updated: Sep 13, 2013 by EricJiang
Dev status: Stable Help Icon

Recommended Download

Application Eric Serial Port Wrapper Test
application, 22K, uploaded Sep 13, 2013 - 494 downloads

Other Available Downloads

Application EricSerialPortWrapper_V1.0
application, 13K, uploaded Sep 12, 2013 - 196 downloads

Release Notes

Finish a flexible library about serial port communication.

It wraps the System.IO.Ports.SerialPort class and provides a mechanism to make the data from serial port unbroken by using starting a new thread , and to control the invoking by using System.Threading.AutoResetEvent class.

You can use it for free.

The Logic of test project:
This test project use "Virtual Serial Port Driver (http://www.eltima.com/products/vspdxp/)" to create a pair of serial ports (COM1 and COM2) for communication. It implement two commands :add two bytes ,and reduce two bytes. The protocol is below.

The common command from client format is :
【Data Header( 0xEE 0x44 ) - Command Type - Byte 1 - Byte 2】

The common command from server format is :
【Data Header ( 0xEE 0x44) - Command Type - Calculate Result(2 bytes)】

Command types definitions:
Add: 0x01
Reduce: 0x02

The Business Logic
After the client get started, it send a command to calculate the sum of 1 and 2. After several seconds the server will returns the result. After receives the result, the client will send a command to calculate the difference of 2 and 1. After several seconds, the server will returns the result.

Reviews for this release

No reviews yet for this release.